/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES — signup, login, onboarding
   Mesmo design system do landing (glassmorphism + cosmic bg).
═══════════════════════════════════════════════════════════════ */

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 24px;
}

.auth-logo {
    display: inline-block;
    transition: opacity .25s var(--lp-easing);
}
.auth-logo:hover { opacity: .85; }
.auth-logo img { display: block; height: 32px; width: auto; }

/* ── Card central ── */
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px 36px 32px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)),
        rgba(15, 18, 27, .65);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .04) inset,
        0 24px 60px -16px rgba(0, 0, 0, .55);
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--lp-text);
    margin: 0 0 8px;
    line-height: 1.15;
}
.auth-sub {
    font-size: 14px;
    color: var(--lp-text-soft);
    margin: 0 0 28px;
    line-height: 1.5;
}
.auth-sub b { color: var(--lp-text); font-weight: 700; }

/* ── Botão Google ── */
.auth-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--lp-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s var(--lp-easing);
    cursor: pointer;
}
.auth-btn-google:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
    transform: translateY(-1px);
}
.auth-btn-google svg { flex-shrink: 0; }

/* ── Divider "ou" ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    font-size: 12px;
    color: var(--lp-text-mute);
    text-transform: lowercase;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
}

/* ── Form ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-text-soft);
    letter-spacing: .3px;
}
.auth-field input {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--lp-text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, background .2s;
    outline: none;
}
.auth-field input:focus {
    border-color: rgba(99, 102, 241, .6);
    background: rgba(0, 0, 0, .35);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}
.auth-field input::placeholder { color: rgba(255, 255, 255, .25); }

.auth-error {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(248, 81, 73, .1);
    border: 1px solid rgba(248, 81, 73, .3);
    color: #ff8a80;
    font-size: 13px;
    line-height: 1.45;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}
.auth-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none !important;
}

.auth-terms {
    margin: 14px 0 0;
    font-size: 11px;
    color: var(--lp-text-mute);
    line-height: 1.5;
    text-align: center;
}
.auth-terms a {
    color: var(--lp-text-soft);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .2);
    transition: color .2s;
}
.auth-terms a:hover { color: var(--lp-text); }

/* ── Switch entre signup/login ── */
.auth-switch {
    margin: 24px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--lp-text-mute);
}
.auth-switch a {
    color: #a78bfa;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.auth-switch a:hover { color: #c4b5fd; }

/* ── Onboarding-specific ── */
.onb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
}
.onb-step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 0 32px rgba(99, 102, 241, .4);
}

@media (max-width: 480px) {
    .auth-card { padding: 32px 24px 28px; border-radius: 20px; }
    .auth-title { font-size: 24px; }
}

/* ── Input wrapper com olhinho (mostrar/esconder senha) ── */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-wrapper input {
    width: 100%;
    padding-right: 44px;
}
.auth-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--lp-text-mute, #71717a);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    padding: 0;
}
.auth-eye:hover {
    color: var(--lp-text, #e6edf3);
    background: rgba(255, 255, 255, 0.04);
}
.auth-eye:focus {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 1px;
}
.auth-eye svg {
    pointer-events: none;
}

/* ── Language toggle (EN / PT) — top-right do auth-shell ── */
.auth-lang-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10;
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 3px;
    backdrop-filter: blur(10px);
}
.auth-lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s, background .15s;
    line-height: 1;
}
.auth-lang-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}
.auth-lang-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .35);
}
@media (max-width: 480px) {
    .auth-lang-toggle { top: 12px; right: 12px; }
    .auth-lang-btn { padding: 5px 10px; font-size: 10px; }
}
