/**
 * assets/css/acesso.css · v2 (11/11/2026)
 * Telas anteriores ao login, marca Dossel: auth/login.php, auth/recover.php e auth/reset.php.
 * v2: página clara (#F4F7F5) e cartão branco compacto, a partir do mockup aprovado: título 19 px,
 *     rótulos 12,5 px, campos e botões de 40 px com texto 14 px (16 px nos campos em aparelho de
 *     toque, para o iPhone não ampliar), cartão de até 372 px. Botões do Google e da Microsoft no
 *     padrão claro oficial. Telas baixas (notebook) ficam mais justas para caber sem rolar.
 * v1 (10/11/2026): cartão escuro (substituído).
 */
@font-face {
    font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
    src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
}
:root {
    --ds-verde: #3DDC97;
    --ds-verde-hover: #2FCB8A;
    --ds-verde-escuro: #123C34;
    --ds-texto: #1F2937;
    --ds-rotulo: #4B5563;
    --ds-texto-2: #6B7280;
    --ds-borda-campo: #D9DEDC;
    --ds-raio: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    background: #F4F7F5;
    color: var(--ds-texto);
    overflow-x: hidden;
}
input, button, select, textarea { font-family: inherit; }

/* Página */
.ds-pagina { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.ds-centro { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.ds-pilha { width: 100%; max-width: 372px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ds-marca { display: block; line-height: 0; }
.ds-marca img { height: 36px; width: auto; display: block; }
.ds-copy { text-align: center; color: #89948E; font-size: 11px; font-weight: 500; padding: 14px 16px 18px; }

/* Cartão */
.ds-cartao {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E9EEEB;
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(20, 48, 38, .075);
    padding: 24px;
}
.ds-titulo { margin: 0 0 16px; color: var(--ds-texto); font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.ds-sub { margin: -10px 0 16px; color: var(--ds-texto-2); font-size: 13px; overflow-wrap: anywhere; }

/* Mensagens */
.ds-msg { margin: 0 0 13px; padding: 9px 11px; border-left: 3px solid; border-radius: 5px; font-size: 13px; line-height: 1.4; }
.ds-msg[hidden] { display: none; }
.ds-msg-erro { background: #FEF2F2; border-color: #DC2626; color: #991B1B; }
.ds-msg-ok   { background: #ECFDF5; border-color: #10B981; color: #065F46; }

/* Entrada pelo Google e pela Microsoft (padrão claro oficial) */
.ds-sociais { display: grid; gap: 8px; }
.ds-social {
    width: 100%; height: 40px; padding: 0 14px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 1px solid #747775; border-radius: var(--ds-raio);
    background: #FFFFFF; color: #1F1F1F;
    font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.ds-social + .ds-social { border-color: #8C8C8C; }
.ds-social:hover { background: #F8FAF9; color: #1F1F1F; }
.ds-social:focus-visible { outline: none; border-color: var(--ds-verde); box-shadow: 0 0 0 3px rgba(61, 220, 151, .17); }
.ds-social svg { width: 18px; height: 18px; flex: 0 0 18px; }
.ds-ou { display: flex; align-items: center; gap: 11px; margin: 14px 0 13px; color: #8A9290; font-size: 12px; font-weight: 500; }
.ds-ou::before, .ds-ou::after { content: ""; flex: 1; height: 1px; background: #E7EAE8; }

/* Campos */
.ds-form { display: grid; gap: 12px; }
.ds-rotulo { display: block; margin-bottom: 5px; color: var(--ds-rotulo); font-size: 12.5px; line-height: 1.25; font-weight: 650; }
.ds-campo {
    width: 100%; height: 40px; padding: 0 11px;
    border: 1px solid var(--ds-borda-campo); border-radius: var(--ds-raio);
    background: #FFFFFF; color: var(--ds-texto);
    font-size: 14px; font-weight: 500; outline: none;
    transition: border-color .14s ease, box-shadow .14s ease;
}
.ds-campo:focus { border-color: var(--ds-verde); box-shadow: 0 0 0 3px rgba(61, 220, 151, .17); }
.ds-campo:-webkit-autofill,
.ds-campo:-webkit-autofill:hover,
.ds-campo:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ds-texto);
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset;
    transition: background-color 9999s ease-out 0s;
}
@media (pointer: coarse) { .ds-campo { font-size: 16px; } }

/* Botões */
.ds-btn {
    width: 100%; height: 40px; border: 0; border-radius: var(--ds-raio);
    display: flex; align-items: center; justify-content: center;
    background: var(--ds-verde); color: #050A08;
    font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer;
    transition: background .14s ease, box-shadow .14s ease;
}
.ds-btn:hover { background: var(--ds-verde-hover); color: #050A08; box-shadow: 0 4px 11px rgba(20, 112, 77, .17); }
.ds-form > .ds-btn { margin-top: 2px; }
.ds-linha-btn { display: flex; gap: 8px; margin-top: 2px; }
.ds-linha-btn .ds-btn { flex: 1; }

/* Biometria: ícone ao lado de Entrar */
.ds-bio {
    width: 42px; flex: 0 0 42px; height: 40px; border-radius: var(--ds-raio);
    display: inline-flex; align-items: center; justify-content: center;
    background: #F4FBF7; color: var(--ds-verde-escuro); border: 1px solid #CFE7DB; cursor: pointer;
}
.ds-bio[hidden] { display: none; }
.ds-bio:hover { background: #EAF8F0; }
.ds-bio svg { width: 21px; height: 21px; display: none; }
.ds-bio-rosto .ds-bio-ic-rosto, .ds-bio-digital .ds-bio-ic-digital { display: block; }
.ds-bio-giro { display: none; width: 18px; height: 18px; border: 2px solid var(--ds-verde-escuro); border-right-color: transparent;
               border-radius: 50%; animation: ds-giro .7s linear infinite; }
.ds-bio-ocupado { cursor: wait; }
.ds-bio-ocupado svg { display: none !important; }
.ds-bio-ocupado .ds-bio-giro { display: block; }
@keyframes ds-giro { to { transform: rotate(360deg); } }

/* Links */
.ds-rodape { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; line-height: 1.35; flex-wrap: wrap; }
.ds-link-2 { color: #7B8490; font-weight: 500; text-decoration: none; }
.ds-link { color: var(--ds-verde-escuro); font-weight: 700; text-decoration: none; }
.ds-link-2:hover, .ds-link:hover { text-decoration: underline; }
.ds-voltar { display: block; text-align: center; margin-top: 15px; font-size: 13px; }

/* Celular */
@media (max-width: 480px) {
    .ds-centro { padding: 20px 12px; }
    .ds-cartao { padding: 18px; }
    .ds-pilha { gap: 12px; }
}
/* Telas baixas (notebook 1366 × 768 com barras do navegador) */
@media (max-height: 700px) and (min-width: 481px) {
    .ds-centro { padding-top: 14px; padding-bottom: 14px; }
    .ds-pilha { gap: 10px; }
    .ds-cartao { padding-top: 18px; padding-bottom: 18px; }
    .ds-titulo { margin-bottom: 12px; }
    .ds-ou { margin: 10px 0; }
    .ds-form { gap: 9px; }
    .ds-rodape { margin-top: 12px; }
    .ds-copy { padding: 8px 16px 10px; }
}
