/* =====================================================================
   PETIÇÃO INICIAL — PÁGINAS DE AUTENTICAÇÃO  (auth.css)
   Login, cadastro, recuperação, MFA, verificação de e-mail.
   Depende de base.css.
   ===================================================================== */

.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: var(--sp-5);
    position: relative;
    overflow: hidden;
}

/* Brilho atmosférico ao fundo */
.auth-page::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(620px 420px at 50% -10%, rgba(214,168,91,.1), transparent 60%),
        radial-gradient(520px 520px at 100% 110%, rgba(107,163,214,.06), transparent 55%);
    pointer-events: none;
}

.auth-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-6);
}
.auth-card--wide { max-width: 520px; }

/* Marca no topo do card */
.auth-brand {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; margin-bottom: var(--sp-5);
}
.auth-brand__mark {
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-lo));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 22px rgba(214,168,91,.25);
}
.auth-brand__mark svg { width: 27px; height: 27px; stroke: var(--brand-ink); stroke-width: 2; }
.auth-brand__name {
    font-family: var(--font-serif);
    font-size: 21px; font-weight: 600; color: var(--ink);
}

.auth-card h1 {
    font-size: 23px; text-align: center; margin-bottom: 4px;
}
.auth-card__subtitle {
    font-size: 13.5px; color: var(--ink-mute);
    text-align: center; margin-bottom: var(--sp-5);
    line-height: 1.55;
}

.auth-card form { display: flex; flex-direction: column; }

/* Link "esqueci senha" alinhado à direita do label */
.auth-label-row {
    display: flex; align-items: baseline; justify-content: space-between;
}
.auth-label-row a { font-size: 12px; font-weight: 600; }

/* Rodapé do card */
.auth-foot {
    margin-top: var(--sp-5);
    text-align: center;
    font-size: 13px; color: var(--ink-mute);
}
.auth-foot a { font-weight: 600; }

/* Link de voltar */
.auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--sp-4);
    font-size: 13px;
    color: var(--ink-mute);
    white-space: nowrap;
}
.auth-back:hover { color: var(--brand); }
.auth-back svg {
    width: 15px; height: 15px;
    stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

/* Tela de "e-mail enviado / confirme seu e-mail" */
.auth-email-sent { text-align: center; }
.auth-email-sent__icon {
    width: 64px; height: 64px; margin: 0 auto var(--sp-4);
    border-radius: 50%;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    display: flex; align-items: center; justify-content: center;
}
.auth-email-sent__icon svg { width: 30px; height: 30px; stroke: var(--brand); }

/* Aguardando confirmação — com spinner */
.auth-waiting {
    display: flex; align-items: center; gap: 10px;
    justify-content: center;
    font-size: 13px; color: var(--ink-mute);
    margin-top: var(--sp-3);
}

/* Caixa de QR code (setup 2FA) */
.auth-qr {
    display: flex; justify-content: center;
    padding: var(--sp-4);
    background: #fff;
    border-radius: var(--r-md);
    margin: 0 auto var(--sp-3);
    width: fit-content;
}
.auth-qr svg, .auth-qr canvas, .auth-qr img { display: block; }

/* Responsivo */
@media (max-width: 460px) {
    .auth-card { padding: var(--sp-5) var(--sp-4); }
}

/* =====================================================================
   ALIASES — nomes de classe usados pelas páginas de autenticação
   (login, registrar, esqueci-senha, redefinir-senha, mfa, verificar-email)
   Mapeiam para o mesmo visual das classes canônicas acima.
   ===================================================================== */

/* Marca/logo no topo do card */
.auth-card__brand {
    display: flex; justify-content: center;
    margin-bottom: var(--sp-5);
}
.auth-card__brand a { color: inherit; }
.auth-logo {
    display: inline-flex; align-items: center;
}
.auth-logo__img {
    height: 40px; width: auto; display: block;
}

/* Rodapé do card */
.auth-card__footer {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 13px; color: var(--ink-mute);
}
.auth-card__footer a { font-weight: 600; }

/* Ícone circular de confirmação (e-mail enviado, sucesso, etc.) */
.auth-confirm-icon {
    width: 64px; height: 64px; margin: 0 auto var(--sp-4);
    border-radius: 50%;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
}
.auth-confirm-icon svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Mensagem e dica nas telas de confirmação */
.auth-confirm-msg {
    text-align: center; font-size: 13.5px;
    color: var(--ink-soft); line-height: 1.6;
}
.auth-confirm-msg strong { color: var(--ink); }
.auth-confirm-hint {
    text-align: center; font-size: 12.5px;
    color: var(--ink-mute); margin-top: var(--sp-2);
}
