/* ── Página de Login/Cadastro ─────────────────────────────────────────── */

.auth-page {
    min-height: 100vh;
    background: var(--grad-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Orbes de fundo decorativas */
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.auth-page::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(7,84,166,0.18), transparent 70%);
    top: -100px;
    left: -100px;
}
.auth-page::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(166,127,7,0.14), transparent 70%);
    bottom: -80px;
    right: -80px;
}

/* Card Central */
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 44px 40px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo .logo-icon {
    width: 52px;
    height: 52px;
    background: var(--grad-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(7,84,166,0.4);
}
.auth-logo h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.auth-logo p {
    color: var(--c-text-muted);
    font-size: 13px;
    margin-top: 6px;
}

/* Tabs Login / Cadastro */
.auth-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--r-md);
    padding: 4px;
    margin-bottom: 28px;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: calc(var(--r-md) - 2px);
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: all var(--t-normal);
    border: none;
    background: transparent;
    font-family: var(--font-body);
}
.auth-tab.active {
    background: var(--c-blue);
    color: #fff;
    box-shadow: 0 2px 12px rgba(7,84,166,0.4);
}

/* Formulário */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form.hidden { display: none; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-muted);
    letter-spacing: 0.02em;
}

.input-wrap {
    position: relative;
}
.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-text-dim);
    font-size: 15px;
    pointer-events: none;
}
.input-wrap .input {
    padding-left: 40px;
}
.input-wrap .input-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--c-text-dim);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color var(--t-fast);
}
.input-wrap .input-toggle:hover { color: var(--c-text-muted); }

/* Botão de submit */
.auth-submit {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    font-size: 15px;
    justify-content: center;
}

/* Mensagem de erro */
.auth-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--r-md);
    padding: 12px 16px;
    font-size: 13px;
    color: #f87171;
    display: none;
    align-items: center;
    gap: 8px;
}
.auth-error.show { display: flex; }

/* Política de senha */
.password-hint {
    font-size: 11px;
    color: var(--c-text-dim);
    margin-top: 4px;
    line-height: 1.5;
}

/* Rodapé da página */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--c-text-dim);
}
.auth-footer a {
    color: var(--c-gold-lt);
    font-weight: 500;
}

/* Timeout banner */
.timeout-banner {
    background: rgba(166,127,7,0.12);
    border: 1px solid rgba(166,127,7,0.25);
    border-radius: var(--r-md);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--c-gold-lt);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsivo */
@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; }
}
