/* tokens.css com versao na URL: o @import nao passa pelo asp-append-version, e sem isso o navegador usa a copia antiga quando um token novo aparece. Troque a versao ao mudar tokens.css. */
@import url('tokens.css?v=20261106');
/* Login e telas de segurança (body.lock): mesma família visual do sistema, sobre os tokens de tokens.css. */

body.lock, .auth-card h1, .auth-card input.auth-input, .auth-submit, .auth-button { font-family: 'Nunito', Arial, sans-serif; }

.auth-page { min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-logo { width: 240px; max-width: 70%; margin-bottom: 24px; }
.auth-card { width: 100%; max-width: 400px; box-sizing: border-box; padding: 32px; background: #fff; border-radius: var(--dv-r-cartao) !important; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); color: var(--dv-ink); }
.auth-card-wide { max-width: 460px; }
.auth-icon { display: block; width: 52px; height: 52px; margin: 0 auto 16px; padding: 12px; box-sizing: border-box; border-radius: 50%; background: var(--dv-tint-marca); color: var(--dv-brand); }
.auth-card h1 { margin: 0 0 8px; font-size: 22px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--dv-ink); }
.auth-hint { margin: 0 0 24px; font-size: 15px; line-height: 1.5; text-align: center; color: var(--dv-mute); }
.auth-error { display: flex; gap: 8px; margin-bottom: 20px; padding: 10px 12px; border-radius: var(--dv-r) !important; background: var(--dv-alerta-erro-fundo); color: var(--dv-brand-dark); font-size: 15px; line-height: 1.4; }
.auth-error ul { margin: 0; list-style: none; }
.auth-error .validation-summary-errors, .auth-error .validation-summary-errors ul { margin: 0; padding: 0; }
.auth-label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 400; color: var(--dv-ink-2); }
.auth-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.auth-code-wrap { position: relative; margin-bottom: 20px; }
.auth-card input.auth-field { display: block; width: 100%; height: 52px; box-sizing: border-box; margin: 0; padding: 0 12px; border: 1px solid var(--dv-campo-borda); border-radius: var(--dv-r) !important; box-shadow: none; background: #fff; color: var(--dv-ink); font-family: Consolas, Menlo, monospace; font-size: 22px; line-height: 52px; letter-spacing: 4px; text-align: center; }
.auth-card input.auth-field:focus { border-color: var(--dv-brand); outline: 0; box-shadow: var(--dv-ring); }
.auth-boxes { display: none; }

.js .auth-boxes { display: flex; justify-content: space-between; gap: 8px; }
.js .auth-box { flex: 1 1 0; min-width: 0; height: 56px; border: 1px solid var(--dv-field); border-radius: var(--dv-r) !important; background: var(--dv-hover); color: var(--dv-ink); font-family: Consolas, Menlo, monospace; font-size: 26px; line-height: 54px; text-align: center; transition: border-color .12s, box-shadow .12s, background-color .12s; }
.js .auth-box.is-filled { border-color: var(--dv-field); background: #fff; }
.js .auth-box.is-active { border-color: var(--dv-brand); background: #fff; box-shadow: var(--dv-ring); }
.js .auth-card input.auth-field-code { position: absolute; top: 0; left: 0; height: 100%; opacity: 0; cursor: text; }
.js .is-recovery .auth-mode-code, .js .is-code .auth-mode-recovery { display: none; }

.auth-submit { display: block; width: 100%; height: 46px; border: 0; border-radius: var(--dv-r) !important; background: var(--dv-brand); color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color .12s; }
.auth-submit:hover, .auth-submit:focus { background: var(--dv-brand-dark); }
.auth-submit:focus { outline: 2px solid var(--dv-ink); outline-offset: 2px; }
.auth-submit[disabled] { background: #d9a6a6; cursor: not-allowed; }
a.auth-submit-link { box-sizing: border-box; line-height: 46px; text-align: center; text-decoration: none; }
a.auth-submit-link:hover, a.auth-submit-link:focus { color: #fff; text-decoration: none; }
.auth-toggle { display: none; width: 100%; margin-top: 16px; padding: 4px; border: 0; background: none; color: var(--dv-brand); font-family: inherit; font-size: 15px; line-height: 1.4; text-align: center; cursor: pointer; }
.js .auth-toggle { display: block; }
.auth-toggle:hover, .auth-toggle:focus { text-decoration: underline; }
.auth-divider { margin: 20px 0 16px; border: 0; border-top: 1px solid var(--dv-rule); }
.auth-back { display: block; font-size: 15px; text-align: center; color: var(--dv-mute); }

.auth-group { margin-bottom: 16px; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.auth-label-row .auth-label { margin-bottom: 0; }
.auth-link { font-size: 15px; color: var(--dv-brand); }
.auth-link:hover, .auth-link:focus { color: var(--dv-brand-dark); }
.auth-card input.auth-input { display: block; width: 100%; height: 46px; box-sizing: border-box; margin: 0; padding: 0 12px; border: 1px solid var(--dv-campo-borda); border-radius: var(--dv-r) !important; box-shadow: none; background: #fff; color: var(--dv-ink); font-family: inherit; font-size: 16px; line-height: 46px; }
.auth-card input.auth-input:focus { border-color: var(--dv-brand); outline: 0; box-shadow: var(--dv-ring); }
.auth-password { position: relative; }
.js .auth-card input.auth-password-input { padding-right: 76px; }
.auth-password-toggle { display: none; position: absolute; top: 5px; right: 5px; height: 36px; padding: 0 10px; border: 0; border-radius: 6px !important; background: none; color: var(--dv-mute); font-family: inherit; font-size: 14px; font-weight: 400; cursor: pointer; }
.js .auth-password-toggle { display: block; }
.auth-password-toggle:hover, .auth-password-toggle:focus { background: var(--dv-hover); color: var(--dv-ink); }
.auth-field-hint { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--dv-mute); }
.auth-success { margin-bottom: 20px; padding: 12px; border-radius: var(--dv-r) !important; background: var(--dv-alerta-ok-fundo); color: var(--dv-alerta-ok-texto); font-size: 15px; line-height: 1.5; text-align: center; }
.auth-tagline { width: 100%; max-width: 360px; margin-top: 22px; opacity: .92; }
.auth-card { box-shadow: 0 20px 50px rgba(50, 0, 0, .45) !important; }

.auth-step { display: flex; gap: 12px; margin-bottom: 20px; }
.auth-step-number { flex: 0 0 26px; height: 26px; border-radius: 50% !important; background: var(--dv-brand); color: #fff; font-size: 14px; font-weight: 400; line-height: 26px; text-align: center; }
.auth-step-body { flex: 1 1 auto; min-width: 0; }
.auth-step-title { margin: 3px 0 4px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--dv-ink); }
.auth-step-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--dv-mute); }
.auth-qr { display: block; width: 180px; height: 180px; margin: 12px auto; padding: 8px; box-sizing: border-box; border: 1px solid var(--dv-rule); border-radius: var(--dv-r) !important; background: #fff; }
.auth-manual { font-size: 15px; color: var(--dv-mute); }
.auth-manual summary { padding: 2px 0; color: var(--dv-brand); text-align: center; cursor: pointer; }
.auth-copy-row { display: flex; gap: 8px; margin-top: 10px; }
.auth-card input.auth-secret { flex: 1 1 auto; min-width: 0; height: 40px; box-sizing: border-box; margin: 0; padding: 0 8px; border: 1px solid var(--dv-campo-borda); border-radius: var(--dv-r) !important; box-shadow: none; background: var(--dv-hover); color: var(--dv-ink); font-family: Consolas, Menlo, monospace; font-size: 14px; }
.auth-button { flex: 0 0 auto; height: 40px; padding: 0 14px; border: 1px solid var(--dv-field); border-radius: var(--dv-r) !important; background: #fff; color: var(--dv-ink); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.auth-button:hover, .auth-button:focus { border-color: var(--dv-field); background: var(--dv-hover); }
.auth-step .auth-code-wrap { margin: 12px 0 0; }

.auth-warning { margin-bottom: 20px; padding: 10px 12px; border-radius: var(--dv-r) !important; background: var(--dv-alerta-aviso-fundo); color: var(--dv-alerta-aviso-texto); font-size: 15px; line-height: 1.4; }
.auth-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 12px; padding: 16px; border-radius: var(--dv-r) !important; background: var(--dv-hover); }
.auth-code { font-family: Consolas, Menlo, monospace; font-size: 16px; line-height: 1.4; text-align: center; color: var(--dv-ink); }
.auth-actions { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-actions .auth-button { flex: 1 1 0; }
.auth-actions { display: none; }
.js .auth-actions { display: flex; }
.auth-confirm { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 16px; font-size: 15px; line-height: 1.4; color: var(--dv-ink); cursor: pointer; }
.auth-confirm input { flex: 0 0 auto; margin: 2px 0 0; }

@media (max-width: 400px) {
    .auth-card { padding: 24px 16px; }
    .js .auth-boxes { gap: 6px; }
    .js .auth-box { height: 50px; font-size: 22px; line-height: 48px; }
    .auth-codes { padding: 12px; gap: 8px; }
    .auth-code { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .js .auth-box, .auth-submit { transition: none; }
}

@media print {
    body.lock { background: #fff !important; }
    .auth-logo, .auth-actions, .auth-confirm, .auth-submit, .auth-icon, .auth-warning { display: none !important; }
    .auth-card { box-shadow: none; max-width: none; }
}
