.pf-auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 21, 31, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.pf-auth-overlay.pf-auth-open { display: flex; }

.pf-auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #c9b8f5;
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    font-family: 'Inter', Arial, sans-serif;
}

.pf-auth-panel { display: none; }
.pf-auth-panel.pf-auth-active { display: block; }

.pf-auth-title {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 24px;
    color: #17151f;
}

.pf-auth-field {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8d5e2;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
    position: relative;
}

.pf-auth-field-wrap { position: relative; }
.pf-auth-field-wrap .pf-auth-field { margin-bottom: 0; }

.pf-auth-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #8a8798;
    font-size: 12px;
}

.pf-auth-field-wrap { margin-bottom: 12px; }

.pf-auth-link-row {
    text-align: center;
    margin: 10px 0 16px;
}

.pf-auth-link-row a {
    color: #7c3aed;
    font-size: 13px;
    text-decoration: none;
}

.pf-auth-link-row a:hover { text-decoration: underline; }

.pf-auth-error {
    color: #c0392b;
    font-size: 13px;
    text-align: center;
    margin: -6px 0 12px;
    display: none;
}

.pf-auth-error.pf-auth-show { display: block; }

.pf-auth-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 999px;
    background: #1e6fe0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.pf-auth-submit:disabled { opacity: 0.6; cursor: default; }

.pf-auth-switch {
    text-align: center;
    font-size: 13px;
    margin: 14px 0;
    color: #55516b;
}

.pf-auth-switch a { color: #7c3aed; text-decoration: none; font-weight: 600; }

.pf-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: #8a8798;
    font-size: 12px;
}

.pf-auth-divider::before,
.pf-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e3e0ec;
}

.pf-auth-social {
    width: 100%;
    padding: 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
    border: 1px solid #d8d5e2;
    background: #fff;
    color: #17151f;
}

.pf-auth-social-fb { background: #1877f2; color: #fff; border-color: #1877f2; }

.pf-auth-social-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.pf-auth-social-fb .pf-auth-social-icon { color: #1877f2; }
.pf-auth-social-google .pf-auth-social-icon { color: #ea4335; }

.pf-auth-terms {
    text-align: center;
    font-size: 12px;
    color: #55516b;
    line-height: 1.5;
    margin-top: 14px;
}

.pf-auth-terms a { color: #7c3aed; text-decoration: none; }

.pf-auth-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #17151f;
    margin: 4px auto 10px;
}

.pf-auth-logout-user {
    text-align: center;
    font-size: 13px;
    color: #55516b;
    margin-bottom: 20px;
}

.pf-auth-logout-user strong { display: block; color: #17151f; font-size: 14px; }

.pf-auth-secondary {
    width: 100%;
    padding: 12px;
    border-radius: 999px;
    background: #eeecf6;
    color: #17151f;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.pf-auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #8a8798;
}
