/* ============================================================
   auth.css — telas de autenticação no design "Ink & Teal".
   Mantém os mesmos nomes de classe das views antigas, então
   nenhuma view precisou ser reescrita. Acompanha o tema
   claro/escuro (todos os valores vêm de var(--…) do base.css).
   ============================================================ */

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--paper);
    padding: 24px 0;
}

.auth-wrapper { width: 100%; max-width: 430px; padding: 1.5rem 1rem; }

.auth-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    padding: 30px 28px;
}

/* ---------- Marca ---------- */
.auth-logo { text-align: center; margin-bottom: 26px; }
.auth-logo-chip {
    width: 46px; height: 46px;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 13px;
    background: var(--ink-800);
    color: #fff;
}
:root[data-theme="dark"] .auth-logo-chip { background: var(--teal-600); }
.auth-logo h1 {
    font-size: 1.4rem;
    font-family: var(--font-display);
    color: var(--heading);
}
.auth-subtitle { color: var(--t3); font-size: .8rem; margin-top: 3px; }

/* ---------- Títulos ---------- */
.auth-title {
    font-size: 1.08rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 16px;
}
.auth-description { color: var(--t2); font-size: .875rem; margin-bottom: 16px; }

/* ---------- Links de apoio ---------- */
.auth-links {
    text-align: center; margin-top: 16px; font-size: .82rem;
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    align-items: center;
}
.auth-links a { color: var(--t2); text-decoration: underline; }
.auth-links a:hover { color: var(--t1); }
.auth-links span { color: var(--t4); }

/* ---------- Divisor "ou" ---------- */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: var(--t4); font-size: .8rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; border-bottom: 1px solid var(--line);
}

.auth-icon { font-size: 3rem; margin-bottom: 8px; text-align: center; }

/* ---------- Alertas (mesma base do app.css, replicada aqui para as
     telas de auth não precisarem carregar o CSS inteiro do shell) ---------- */
.alert {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 15px;
    border-radius: var(--radius-sm);
    font-size: .84rem; font-weight: 500;
    border: 1px solid;
}
.alert a { color: inherit; text-decoration: underline; font-weight: 700; }
.alert-err { background: var(--err-bg); color: var(--err-tx); border-color: var(--err-bd); }
.alert-ok  { background: var(--ok-bg);  color: var(--ok-tx);  border-color: var(--ok-bd); }

/* ---------- Botão do Google ---------- */
.btn-google {
    background: var(--card);
    color: var(--t1);
    border: 1.5px solid var(--line-2);
    gap: 10px;
}
.btn-google:hover { border-color: var(--t4); background: var(--surface-2); }

/* ---------- Alternar tema nas telas de auth ---------- */
.auth-theme-toggle {
    position: fixed; top: 18px; right: 18px;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line-2);
    background: var(--card);
    color: var(--t2);
    z-index: 10;
}
.auth-theme-toggle:hover { color: var(--t1); border-color: var(--t4); }
.auth-theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .auth-theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .auth-theme-toggle .ico-sun  { display: block; }
