/* Telas de acesso do Arquivo SMECD (Educação) — copiado do modelo aprovado do painel_pref/Frota em 2026-11-17.
   Login ÍNDIGO + amarelo-lápis; telas auxiliares (cadastro/recuperar/nova senha) em VERDE-PETRÓLEO. */
:root {
  --verde-900: #15163f;
  --verde-800: #1f2160;
  --verde-700: #2c2f8a;
  --verde-600: #3a3fb5;
  --verde-500: #5458d0;
  --verde-100: #ebecfb;
  --ambar: #fbbf24;
  --texto: #1b1d3a;
  --suave: #5d5f78;
  --linha: #dcdcec;
  --fundo: #f4f4fa;
  --erro: #b42318;
  --erro-fundo: #fdecea;
  --ok-fundo: #e7f5ec;
  --raio: 8px;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--sans); color: var(--texto); background: var(--fundo); }

.acesso { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

/* ---------- Painel verde ---------- */
.painel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 40px;
  padding: 48px 56px 32px;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(160deg, var(--verde-700), var(--verde-800) 55%, var(--verde-900));
  color: #fff;
}
.marca, .marca-movel { display: flex; align-items: center; gap: 16px; }
.marca img { filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.prefeitura { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.sistema { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.15; }

.chamada { margin-top: auto; max-width: 480px; }
.chamada h1 { margin: 0 0 22px; font-size: 2.1rem; font-weight: 700; line-height: 1.2; }
.chamada ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.chamada li { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; opacity: .92; }
.chamada li i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.1); color: var(--ambar); font-size: 1.05rem; }

.estrada { width: calc(100% + 112px); max-width: none; height: auto; margin: 8px -56px 0; display: block; }
.rodape-painel { margin: 0; font-size: .85rem; opacity: .7; }

/* ---------- Formulário ---------- */
.formulario { display: grid; place-items: center; padding: 40px 24px; }
.caixa { width: 100%; max-width: 400px; }
.marca-movel { display: none; margin-bottom: 28px; color: var(--verde-800); }
.marca-movel .sistema { font-size: 1.35rem; }

.caixa h2 { margin: 0; font-size: 2rem; font-weight: 700; color: var(--verde-800); }
.caixa .sub { margin: 4px 0 26px; color: var(--suave); }

.campo { display: block; margin-bottom: 18px; }
.campo > span:first-child { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.entrada { position: relative; display: flex; align-items: center; }
.entrada > i { position: absolute; left: 14px; color: var(--suave); font-size: 1.05rem; pointer-events: none; }
.entrada input {
  width: 100%; height: 50px; padding: 0 14px 0 42px;
  border: 1.5px solid var(--linha); border-radius: var(--raio); background: #fff;
  font: 400 1.05rem var(--sans); color: var(--texto); outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.entrada input::placeholder { color: #9aa4b3; }
.entrada input:focus { border-color: var(--verde-600); box-shadow: 0 0 0 3px rgba(58,63,181,.18); }
.ver-senha {
  position: absolute; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 6px;
  background: transparent; color: var(--suave); font-size: 1.15rem; cursor: pointer;
}
.ver-senha:hover, .ver-senha:focus-visible { background: var(--verde-100); color: var(--verde-700); outline: 0; }
.entrada:has(.ver-senha) input { padding-right: 50px; }
.caps[hidden] { display: none; }
.caps { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .88rem; font-weight: 600; color: #8a5a00; }

.botao {
  width: 100%; height: 52px; margin-top: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: var(--raio); background: var(--verde-600); color: #fff;
  font: 700 1.08rem var(--sans); cursor: pointer; transition: background .15s, transform .05s;
}
.botao:hover { background: var(--verde-700); }
.botao:active { transform: translateY(1px); }
.botao:focus-visible { outline: 3px solid rgba(58,63,181,.35); outline-offset: 2px; }
.botao:disabled { opacity: .75; cursor: wait; }
.giro { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: giro .7s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.links a { display: inline-flex; align-items: center; gap: 6px; color: var(--verde-700); font-weight: 600; text-decoration: none; }
.links a:hover { text-decoration: underline; }

.versao { margin: 34px 0 0; text-align: center; font-size: .85rem; color: var(--suave); }

.alerta { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px; border-radius: var(--raio); font-size: .97rem; }
.alerta i { margin-top: 2px; }
.alerta.erro { background: var(--erro-fundo); color: var(--erro); border: 1px solid #f5c2bd; }
.alerta.ok { background: var(--ok-fundo); color: #11603f; border: 1px solid #bfe3cc; }

/* ---------- Telas menores ---------- */
@media (max-width: 1000px) {
  .painel { padding: 40px 36px 28px; }
  .estrada { width: calc(100% + 72px); margin: 8px -36px 0; }
  .chamada h1 { font-size: 1.7rem; }
  .chamada ul { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .acesso { grid-template-columns: minmax(0, 1fr); }
  .painel { display: none; }
  .marca-movel { display: flex; }
  .formulario { place-items: start center; padding: 32px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ======================================================================
   Telas auxiliares (cadastro, recuperar, nova senha): body.tela-aux
   Mesma estrutura, mas painel e botão em verde-petróleo e o painel
   mostra as etapas, para ninguém confundir com o login.
   ====================================================================== */
.tela-aux {
  --aux-800: #0b4f55;
  --aux-700: #0e6670;
  --aux-600: #12808b;
  --aux-900: #06363a;
  --aux-100: #e3f3f4;
}
.tela-aux .painel {
  background:
    radial-gradient(800px 460px at 100% 0%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(160deg, var(--aux-700), var(--aux-800) 55%, var(--aux-900));
}
.tela-aux .chamada { margin-top: 56px; }
.selo-tela {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 12px;
  border: 1px solid rgba(245,200,76,.55); border-radius: 999px;
  color: var(--ambar); font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
}
.etapas { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: none; }
.etapas li { display: flex; gap: 16px; align-items: flex-start; opacity: .6; }
.etapas li span {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55); font-weight: 700; font-size: 1.1rem;
}
.etapas li strong { display: block; font-size: 1.08rem; }
.etapas li div { font-size: .98rem; line-height: 1.4; }
.etapas li.atual { opacity: 1; }
.etapas li.atual span { background: var(--ambar); border-color: var(--ambar); color: var(--aux-900); }
.etapas li.feita { opacity: .9; }
.etapas li.feita span { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.tela-aux .rodape-painel { margin-top: auto; }

.caixa.larga { max-width: 560px; }
.titulo-aux { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 2px solid var(--aux-100); }
.titulo-aux .ico {
  flex: none; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 14px;
  background: var(--aux-800); color: var(--ambar); font-size: 1.7rem;
}
.titulo-aux h2 { margin: 0; font-size: 1.9rem; line-height: 1.15; color: var(--aux-800); }
.titulo-aux .sub { margin: 4px 0 0; }
.tela-aux .caixa .sub strong { color: var(--aux-700); }

.duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.dica { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .88rem; color: var(--suave); }
.dica.boa { color: var(--verde-600); font-weight: 600; }
.dica.ruim { color: var(--erro); font-weight: 600; }
.dica[hidden] { display: none; }

.entrada select {
  width: 100%; height: 50px; padding: 0 40px 0 42px; appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--linha); border-radius: var(--raio); outline: 0; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235a6679' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  font: 400 1.05rem var(--sans); color: var(--texto); text-overflow: ellipsis;
}
.entrada select:invalid { color: #9aa4b3; }
.entrada select:focus { border-color: var(--aux-600); box-shadow: 0 0 0 3px rgba(18,128,139,.18); }
.tela-aux .entrada input:focus { border-color: var(--aux-600); box-shadow: 0 0 0 3px rgba(18,128,139,.18); }

.tela-aux .botao { background: var(--aux-600); margin-top: 10px; }
.tela-aux .botao:hover { background: var(--aux-700); }
.tela-aux .ver-senha:hover, .tela-aux .ver-senha:focus-visible { background: var(--aux-100); color: var(--aux-700); }
.tela-aux .links a { color: var(--aux-700); }
.links.centro { justify-content: center; }
a.botao { text-decoration: none; }

/* Estado "Verifique o e-mail" / "Link expirado" */
.estado { text-align: center; }
.ico-grande {
  width: 92px; height: 92px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%;
  background: var(--aux-100); color: var(--aux-700); font-size: 2.6rem;
}
.estado.erro .ico-grande { background: var(--erro-fundo); color: var(--erro); }
.estado h2 { margin: 0 0 8px; font-size: 1.9rem; color: var(--aux-800); }
.estado > p { margin: 0 0 20px; color: var(--suave); font-size: 1.05rem; }
.lembretes { list-style: none; margin: 0 0 24px; padding: 16px 18px; display: grid; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); }
.lembretes li { display: flex; gap: 10px; align-items: flex-start; }
.lembretes i { color: var(--aux-600); margin-top: 2px; }

@media (max-width: 760px) {
  .duas { grid-template-columns: minmax(0, 1fr); }
  .titulo-aux h2 { font-size: 1.6rem; }
  .titulo-aux .ico { width: 52px; height: 52px; font-size: 1.45rem; }
}

/* Requisitos da senha (assets/js/senha_forte.js) */
.requisitos { margin: 4px 0 6px; padding: 12px 14px; border: 1px solid var(--linha); border-radius: var(--raio); background: #fff; }
.requisitos small { display: block; margin-bottom: 6px; font-weight: 700; font-size: .88rem; color: var(--texto); }
.requisitos ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.requisitos li { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--suave); }
.requisitos li.ok { color: #11603f; font-weight: 600; }
.requisitos li.ok i { color: #17734d; }
.botao:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 760px) { .requisitos ul { grid-template-columns: 1fr; } }

/* Arquivo SMECD: ficha de arquivo ilustrada no painel */
.ficha-ilustra { position: relative; margin-top: 30px; max-width: 380px; }
.ficha-ilustra .pasta { position: relative; padding: 22px 22px 18px; border-radius: 4px 12px 12px 12px; background: #fff; color: var(--verde-800); box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.ficha-ilustra .pasta::before { content: ""; position: absolute; left: 0; top: -14px; width: 130px; height: 16px; border-radius: 8px 8px 0 0; background: #fff; }
.ficha-ilustra small { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.ficha-ilustra strong { display: block; margin: 2px 0 10px; font-size: 1.45rem; line-height: 1.2; }
.ficha-ilustra .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ficha-ilustra .tags span { padding: 3px 10px; border-radius: 99px; background: var(--verde-100); color: var(--verde-700); font-size: .82rem; font-weight: 700; }
.ficha-ilustra .tags span.am { background: var(--ambar); color: var(--verde-900); }
.ficha-ilustra .atras { position: absolute; inset: 10px -10px -10px 10px; border-radius: 12px; background: rgba(255,255,255,.18); z-index: -1; }

/* ================= Animações do login (2026-11-17, pedido "deixa mais animado") ================= */
.tela-login .painel > * { position: relative; z-index: 1; }

/* folhas, lápis e livros flutuando no fundo do painel */
.flutua { position: absolute; inset: 0; z-index: 0 !important; pointer-events: none; overflow: hidden; }
.flutua i { position: absolute; bottom: -60px; font-size: var(--t, 28px); color: rgba(255,255,255,.10); animation: sobe-doc var(--d, 22s) linear var(--a, 0s) infinite; }
.flutua i.am { color: rgba(251,191,36,.22); }
@keyframes sobe-doc { 0% { transform: translateY(0) rotate(var(--r, 0deg)); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-120vh) rotate(calc(var(--r, 0deg) + 160deg)); opacity: 0; } }

/* entrada */
@keyframes entra-baixo { from { opacity: 0; transform: translateY(18px); } }
@keyframes entra-lado { from { opacity: 0; transform: translateX(-22px); } }
.tela-login .marca { animation: entra-lado .7s cubic-bezier(.2,.8,.2,1) both; }
.tela-login .chamada h1 { animation: entra-baixo .8s cubic-bezier(.2,.8,.2,1) .1s both; }
.tela-login .chamada li { animation: entra-lado .6s cubic-bezier(.2,.8,.2,1) both; }
.tela-login .chamada li:nth-child(1) { animation-delay: .25s; } .tela-login .chamada li:nth-child(2) { animation-delay: .35s; }
.tela-login .chamada li:nth-child(3) { animation-delay: .45s; } .tela-login .chamada li:nth-child(4) { animation-delay: .55s; }
.tela-login .chamada li i { transition: transform .3s; }
.tela-login .chamada li:hover i { transform: rotate(-8deg) scale(1.15); }
.tela-login .caixa > * { animation: entra-baixo .6s cubic-bezier(.2,.8,.2,1) both; }
.tela-login .caixa > :nth-child(2) { animation-delay: .08s; } .tela-login .caixa > :nth-child(3) { animation-delay: .14s; }
.tela-login .caixa > :nth-child(4) { animation-delay: .2s; } .tela-login .caixa > :nth-child(5) { animation-delay: .26s; }
.tela-login .caixa > :nth-child(6) { animation-delay: .32s; } .tela-login .caixa > :nth-child(7) { animation-delay: .38s; }
.tela-login .caixa > :nth-child(8) { animation-delay: .44s; } .tela-login .caixa > :nth-child(9) { animation-delay: .5s; }

/* números reais do arquivo */
.numeros-arq { display: flex; gap: 28px; margin-top: 26px; animation: entra-baixo .8s cubic-bezier(.2,.8,.2,1) .6s both; }
.numeros-arq div { display: flex; flex-direction: column; }
.numeros-arq b { font-size: 2.2rem; line-height: 1; font-weight: 700; color: var(--ambar); font-variant-numeric: tabular-nums; }
.numeros-arq span { font-size: .9rem; opacity: .8; margin-top: 4px; }

/* ficha que troca sozinha, com carimbo */
.ficha-ilustra { animation: entra-baixo .8s cubic-bezier(.2,.8,.2,1) .75s both; }
.ficha-ilustra .pasta { transition: transform .55s cubic-bezier(.5,0,.3,1), opacity .45s; }
.ficha-ilustra .pasta.sai { transform: translateY(26px) scale(.94) rotate(-2deg); opacity: 0; }
.ficha-ilustra .pasta.chega { animation: chega-ficha .6s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes chega-ficha { from { transform: translateX(60px) rotate(4deg); opacity: 0; } }
.ficha-ilustra .ico-doc { position: absolute; right: 18px; top: 16px; font-size: 1.7rem; color: var(--verde-500); opacity: .35; }
.carimbo { position: absolute; right: 16px; bottom: 14px; padding: 4px 10px; border: 3px solid #c2410c; border-radius: 6px; color: #c2410c;
  font-weight: 800; font-size: .95rem; letter-spacing: .14em; transform: rotate(-12deg); opacity: 0; }
.carimbo.bate { animation: carimbo .55s cubic-bezier(.3,1.6,.5,1) .35s both; }
@keyframes carimbo { 0% { opacity: 0; transform: rotate(-12deg) scale(2.4); } 60% { opacity: .95; transform: rotate(-12deg) scale(.92); } 100% { opacity: .85; transform: rotate(-12deg) scale(1); } }
.ficha-ilustra .pontos { display: flex; gap: 6px; margin-top: 16px; }
.ficha-ilustra .pontos span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background .3s, width .3s; }
.ficha-ilustra .pontos span.on { width: 22px; border-radius: 99px; background: var(--ambar); }

/* formulário mais vivo */
.entrada i:first-child { transition: color .2s, transform .25s; }
.entrada:focus-within i:first-child { color: var(--verde-600); transform: scale(1.15); }
.tela-login .botao { position: relative; overflow: hidden; transition: background .2s, transform .15s, box-shadow .2s; }
.tela-login .botao::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: brilho-bt 4.5s ease-in-out 1.6s infinite; }
@keyframes brilho-bt { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.tela-login .botao:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(58,63,181,.35); }
.tela-login .links a i { transition: transform .25s; display: inline-block; }
.tela-login .links a:hover i { transform: translateX(-2px) rotate(-12deg); }
.marca img, .marca-movel img { cursor: pointer; }
.marca img.gira, .marca-movel img.gira { animation: gira-brasao 1s cubic-bezier(.3,1.3,.5,1); }
@keyframes gira-brasao { to { transform: rotateY(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .flutua, .tela-login .botao::after { display: none; }
  .tela-login *, .ficha-ilustra .pasta { animation: none !important; transition: none !important; }
  .carimbo { opacity: .85; }
}

/* ---------- Animações das telas auxiliares (recuperar, cadastro, nova senha) ---------- */
.tela-aux .painel > * { position: relative; z-index: 1; }
.tela-aux .flutua i { color: rgba(255,255,255,.09); }
.tela-aux .marca { animation: entra-lado .7s cubic-bezier(.2,.8,.2,1) both; }
.tela-aux .selo-tela { animation: entra-baixo .6s cubic-bezier(.2,.8,.2,1) .1s both; }
.tela-aux .chamada h1 { animation: entra-baixo .7s cubic-bezier(.2,.8,.2,1) .18s both; }
.tela-aux .etapas li { animation: entra-lado .6s cubic-bezier(.2,.8,.2,1) both; }
.tela-aux .etapas li:nth-child(1) { animation-delay: .3s; } .tela-aux .etapas li:nth-child(2) { animation-delay: .42s; } .tela-aux .etapas li:nth-child(3) { animation-delay: .54s; }
.tela-aux .etapas li.atual span { animation: passo-pulsa 2s ease-in-out 1s infinite; }
@keyframes passo-pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,.55); } 50% { box-shadow: 0 0 0 9px rgba(251,191,36,0); } }
.tela-aux .caixa > *, .tela-aux .estado > * { animation: entra-baixo .55s cubic-bezier(.2,.8,.2,1) both; }
.tela-aux .caixa > :nth-child(2), .tela-aux .estado > :nth-child(2) { animation-delay: .08s; }
.tela-aux .caixa > :nth-child(3), .tela-aux .estado > :nth-child(3) { animation-delay: .16s; }
.tela-aux .caixa > :nth-child(4), .tela-aux .estado > :nth-child(4) { animation-delay: .24s; }
.tela-aux .caixa > :nth-child(5), .tela-aux .estado > :nth-child(5) { animation-delay: .32s; }
.tela-aux .caixa > :nth-child(6), .tela-aux .estado > :nth-child(6) { animation-delay: .4s; }
.tela-aux .caixa > :nth-child(7) { animation-delay: .48s; }
.tela-aux .titulo-aux .ico i { display: inline-block; animation: chave-gira 3.2s ease-in-out 1s infinite; }
@keyframes chave-gira { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-28deg); } 88% { transform: rotate(14deg); } }
.tela-aux .estado .ico-grande i { display: inline-block; animation: envelope-chega .9s cubic-bezier(.3,1.4,.5,1) .2s both; }
@keyframes envelope-chega { from { transform: translate(-60px, 40px) rotate(-25deg) scale(.4); opacity: 0; } }
.tela-aux .estado .ico-grande { position: relative; }
.tela-aux .estado .ico-grande::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--aux-600); opacity: 0; animation: onda 2.4s ease-out 1.1s infinite; }
@keyframes onda { from { transform: scale(.85); opacity: .6; } to { transform: scale(1.35); opacity: 0; } }
.tela-aux .entrada:focus-within i:first-child { color: var(--aux-600); }
.tela-aux .botao { position: relative; overflow: hidden; transition: background .2s, transform .15s, box-shadow .2s; }
.tela-aux .botao::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent); transform: skewX(-20deg); animation: brilho-bt 4.5s ease-in-out 1.6s infinite; }
.tela-aux .botao:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(18,128,139,.3); }
@media (prefers-reduced-motion: reduce) {
  .tela-aux *, .tela-aux .estado .ico-grande::after, .tela-aux .botao::after { animation: none !important; }
}
