/* Página de acesso (/entrar/) e telas irmãs (acesso bloqueado). Modelo aprovado pelo professor em 29/11/2026
   (saas/output/modelo_entrar/entrar_v3.html). Cores das telas internas: menu #0b1a38, azul #0d47a1, âmbar. */
:root {
  --noite: #0b1a38; --azul: #0d47a1; --azul-escuro: #0a3a85; --ambar: #f5a623;
  --tinta: #0f172a; --texto: #334155; --suave: #475569; --linha: #cfd8e6; --branco: #fff;
  --erro: #b42318; --erro-fundo: #fef3f2; --erro-linha: #fecdca;
  --info: #1e3a8a; --info-fundo: #eff4ff; --info-linha: #c7d7fe;
  --aviso: #8a4b00; --aviso-fundo: #fff8eb; --aviso-linha: #fcd9a1;
  --fonte: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { font-family: var(--fonte); font-size: 16px; line-height: 1.5; color: var(--texto); caret-color: var(--azul);
       background: linear-gradient(160deg, #e4eefb 0%, #d6e5f7 55%, #e9f1fb 100%); -webkit-font-smoothing: antialiased; }
::selection { background: #c9dafc; color: var(--tinta); }
a { color: var(--azul); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; border-radius: 6px; }

.palco { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 40px 24px; }
.cartao { width: 100%; max-width: 1080px; display: grid; grid-template-columns: 42% 58%; background: var(--branco);
          border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px -28px rgba(15,35,80,.45), 0 2px 6px rgba(15,35,80,.06); }

/* ── Painel da marca ─────────────────────────────────────────── */
.painel { position: relative; background: var(--noite); min-height: 640px; padding: 64px 48px; overflow: hidden; }
.marca { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 18px; color: #fff; text-decoration: none; }
.marca .capelo { font-size: 4.6rem; line-height: 1; color: var(--ambar); }
.marca .traco { width: 2px; align-self: stretch; margin: 10px 0; background: rgba(255,255,255,.85); border-radius: 2px; }
.marca .nome { font-size: 2.15rem; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.frase { position: relative; z-index: 1; margin-top: 36px; max-width: 22rem; font-size: 1.12rem; line-height: 1.55;
         color: #cbd5e1; text-wrap: pretty; }
.frase strong { display: block; color: #fff; font-size: 1.3rem; line-height: 1.3; margin-bottom: 6px; font-weight: 700; }
.livro { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; display: block; }

/* ── Formulário ──────────────────────────────────────────────── */
.acesso { padding: 64px 72px 56px; display: flex; flex-direction: column; justify-content: center; }
.caixa { width: 100%; max-width: 470px; }
h1 { font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; color: var(--tinta); }
.sub { margin: 8px 0 30px; font-size: 1.12rem; color: var(--suave); }

.aviso { display: flex; gap: 10px; align-items: flex-start; border: 1px solid; border-radius: 12px;
         padding: 12px 14px; font-size: .95rem; margin: -10px 0 22px; }
.aviso i { font-size: 1.1rem; line-height: 1.35; }
.aviso a { color: inherit; font-weight: 600; }
.aviso.erro { color: var(--erro); background: var(--erro-fundo); border-color: var(--erro-linha); }
.aviso.info { color: var(--info); background: var(--info-fundo); border-color: var(--info-linha); }
.aviso.alerta { color: var(--aviso); background: var(--aviso-fundo); border-color: var(--aviso-linha); }

.campo { margin-bottom: 20px; }
.campo label { display: block; font-weight: 700; color: var(--tinta); margin-bottom: 8px; font-size: 1.05rem; }
.entrada { position: relative; }
.entrada input { width: 100%; height: 54px; padding: 0 54px 0 18px; font: inherit; font-size: 1.05rem; color: var(--tinta);
                 background: #fff; border: 1.5px solid var(--linha); border-radius: 10px;
                 transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.entrada input::placeholder { color: #64748b; }
.entrada input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(13,71,161,.14); }
.entrada input[aria-invalid="true"] { border-color: #d92d20; }
.erro-campo { margin-top: 6px; font-size: .9rem; color: var(--erro); }
.olho { position: absolute; right: 6px; top: 6px; width: 42px; height: 42px; border: 0; border-radius: 8px;
        background: none; color: var(--suave); cursor: pointer; font-size: 1.3rem; }
.olho:hover { background: #eef2f7; color: var(--tinta); }
.dica { margin-top: 6px; font-size: .9rem; color: var(--aviso); display: flex; align-items: center; gap: 6px; }
.dica[hidden] { display: none; }
.rotulo-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.rotulo-linha label { margin-bottom: 0; }
.esqueci { padding: 4px 0; font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.esqueci:hover { text-decoration: underline; }
.campo-ultimo { margin-bottom: 26px; }

.botao { width: 100%; height: 56px; border: 0; border-radius: 10px; background: var(--azul); color: #fff; font: inherit;
         font-weight: 700; font-size: 1.15rem; cursor: pointer; display: inline-flex; align-items: center;
         justify-content: center; gap: 10px; box-shadow: 0 8px 18px -10px rgba(13,71,161,.8);
         transition: background .15s ease-out; text-decoration: none; }
.botao:hover { background: var(--azul-escuro); color: #fff; }
.botao[disabled] { background: #5b7fbf; cursor: progress; box-shadow: none; }
.gira { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff;
        animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.separador { height: 1px; background: var(--linha); margin: 30px 0 26px; }
.botao-familia { display: flex; align-items: center; justify-content: center; gap: 12px; height: 60px; border-radius: 12px;
                 border: 2px solid var(--azul); color: var(--azul); background: #fff; font-weight: 700; font-size: 1.12rem;
                 text-decoration: none; transition: background .15s ease-out; }
.botao-familia:hover { background: #f2f6ff; }
.botao-familia i { font-size: 1.55rem; }
.apoio { margin-top: 22px; font-size: .95rem; color: var(--suave); text-align: center; }
.apoio a { font-weight: 600; }

/* ── Celular ─────────────────────────────────────────────────────
   Meta (29/11/2026): a família vê tudo sem rolar num celular comum (360×640 visíveis no Chrome
   com as barras). Campos com 16 px de letra (o iPhone não dá zoom) e toque com 44 px ou mais. */
@media (max-width: 860px) {
  .palco { padding: 0; place-items: stretch; }
  .cartao { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; min-height: 100vh; min-height: 100dvh;
            align-content: start; grid-template-rows: auto 1fr; }
  .painel { min-height: 0; padding: 12px 18px 12px; padding-top: max(12px, env(safe-area-inset-top)); }
  .marca { gap: 10px; }
  .marca .capelo { font-size: 1.75rem; }
  .marca .nome { font-size: 1.12rem; line-height: 1.1; }
  .marca .nome br { display: none; }
  .marca .traco { margin: 4px 0; }
  .frase { margin-top: 6px; max-width: calc(100% - 92px); font-size: .86rem; line-height: 1.35; }
  .frase strong { display: inline; font-size: inherit; margin: 0; font-weight: 600; color: #e2e8f0; }
  .frase .dois-pontos, .frase-resto { display: none; }
  .livro { left: auto; right: -30px; bottom: auto; top: -30px; width: 118px; }
  .acesso { padding: 22px 20px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); justify-content: flex-start; }
  h1 { font-size: 1.55rem; letter-spacing: -0.02em; }
  .sub { font-size: .95rem; margin: 2px 0 18px; }
  .aviso { margin: -4px 0 14px; padding: 10px 12px; font-size: .9rem; }
  .campo { margin-bottom: 14px; }
  .campo label { font-size: .95rem; margin-bottom: 5px; }
  .rotulo-linha { margin-bottom: 5px; }
  .esqueci { font-size: .9rem; padding: 6px 0; margin: -6px 0; }
  .entrada input { height: 48px; font-size: 16px; padding-left: 14px; }
  .olho { top: 2px; right: 2px; width: 44px; height: 44px; }
  .campo-ultimo { margin-bottom: 16px; }
  .botao { height: 50px; font-size: 1.05rem; }
  .separador { margin: 16px 0 14px; }
  .botao-familia { height: 50px; font-size: 1rem; gap: 10px; border-radius: 10px; }
  .botao-familia i { font-size: 1.3rem; }
  .apoio { margin-top: 12px; font-size: .86rem; line-height: 1.45; }
}
/* Telas baixas (celular pequeno ou com teclado aberto): aperta mais um pouco. */
@media (max-width: 860px) and (max-height: 620px) {
  .painel { padding-bottom: 10px; }
  .frase { display: none; }
  .livro { width: 96px; top: -34px; }
  .acesso { padding-top: 14px; }
  .sub { margin-bottom: 12px; }
  .separador { margin: 12px 0 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
