/* Telas de acesso do ADM (login, recuperação e redefinição de senha, desafio do 2FA) no kit Olhar.
   Só complementa o olhar.css: os tokens, campos, botões e avisos são os dele. Toda classe leva o prefixo ol-. */
.ol-acesso { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.ol-acesso-palco { position: relative; z-index: 1; display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 40px 16px; }
.ol-acesso-coluna { width: 100%; max-width: 408px; display: grid; gap: 20px; animation: ol-pop 0.4s var(--ease) both; }
.ol-acesso-marca { display: flex; justify-content: center; }
.ol-acesso-marca .ol-logo { height: 32px; }
.ol-acesso-cartao { display: grid; gap: 22px; padding: 32px 28px 28px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); }
.ol-acesso-cabeca { display: grid; gap: 6px; }
.ol-acesso-cabeca h1 { font-size: 24px; font-weight: 750; line-height: 1.15; letter-spacing: -0.02em; color: var(--fg); }
.ol-acesso-cabeca p { color: var(--fg-2); font-size: 14px; }
.ol-acesso-selo { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: var(--r-item); background: var(--accent-soft); color: var(--accent); }
.ol-acesso-selo svg { width: 22px; height: 22px; }
.ol-acesso-form { display: grid; gap: 16px; }
.ol-acesso-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.ol-acesso-linha a, .ol-acesso-rodape a { font-weight: 600; text-decoration: none; }
.ol-acesso-linha a:hover, .ol-acesso-rodape a:hover { text-decoration: underline; }
.ol-acesso .ol-input { min-height: 44px; font-size: 15px; }
.ol-acesso .ol-btn-primary { min-height: 44px; font-size: 14px; }
.ol-acesso .ol-note { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.ol-acesso .ol-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.ol-acesso-rodape { text-align: center; font-size: 13px; color: var(--fg-3); }
.ol-acesso-senha-alternar[aria-pressed='true'] { color: var(--accent); }
.ol-acesso .ol-acesso-escondido { display: none; } /* depois do .ol-acesso .ol-note, que tem o mesmo peso */
.ol-acesso-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Desafio do 2FA: seis caixas, tentativas e espera */
.ol-acesso-digitos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ol-acesso-digito { width: 100%; min-height: 52px; padding: 0; border-radius: var(--r-control); border: 1px solid var(--line-control); background: var(--surface-2); color: var(--fg); text-align: center; font: 650 22px/1 var(--mono); font-variant-numeric: tabular-nums; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.ol-acesso-digito:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.ol-acesso-digito.ol-preenchido { border-color: var(--accent); background: var(--surface); }
.ol-acesso-digito.ol-erro { border-color: var(--bad); animation: ol-acesso-tremor 0.4s var(--ease); }
.ol-acesso-tentativas { display: flex; justify-content: center; gap: 6px; }
.ol-acesso-tentativa { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); transition: background 0.2s; }
.ol-acesso-tentativa.ol-usado { background: var(--bad); }
.ol-acesso-espera { text-align: center; font-size: 13px; color: var(--fg-2); }
.ol-acesso-espera b { color: var(--bad); font-variant-numeric: tabular-nums; }
.ol-acesso .ol-btn-primary.ol-acesso-ok { background: var(--ok); box-shadow: none; }
.ol-acesso-nota { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--fg-3); }
.ol-acesso-nota svg { width: 14px; height: 14px; }
.ol-acesso-sair { padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; }
.ol-acesso-sair a { color: var(--fg-2); text-decoration: none; }
.ol-acesso-sair a:hover { color: var(--bad); }

@keyframes ol-acesso-tremor { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }

@media (max-width: 480px) {
    .ol-acesso-palco { place-items: start center; padding: 28px 16px; }
    .ol-acesso-cartao { padding: 24px 18px 20px; }
    .ol-acesso-cabeca h1 { font-size: 22px; }
    .ol-acesso-digitos { gap: 6px; }
    .ol-acesso-digito { min-height: 48px; font-size: 20px; }
    .ol-acesso .ol-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ol-acesso-coluna, .ol-acesso-digito.ol-erro { animation: none; }
    .ol-acesso-digito, .ol-acesso-tentativa { transition: none; }
}
