/* Login do Admin TI — visual "central de TI" (2026-11-19, pedido: "deixa mais informática").
   Carregado DEPOIS de acesso.css e só no index.php; as telas auxiliares continuam com acesso.css. */
.tela-ti {
  --ti-fundo: #060a13;
  --ti-cartao: #0c1322;
  --ti-linha: rgba(56, 217, 245, .18);
  --ti-ciano: #38d9f5;
  --ti-verde: #5ee7fb; /* "OK" e LED: sem verde (usuário: verde é natureza) */
  --ti-texto: #e3ecf7;
  --ti-suave: #8b9bb3;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  background: var(--ti-fundo);
  color: var(--ti-texto);
}
.tela-ti::before { /* grade de fundo + brilhos */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 12% 18%, rgba(29, 95, 209, .28), transparent 70%),
    radial-gradient(600px 400px at 88% 85%, rgba(56, 217, 245, .14), transparent 70%),
    linear-gradient(rgba(56, 217, 245, .055) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(56, 217, 245, .055) 1px, transparent 1px) 0 0 / 34px 34px;
}

.ti { position: relative; z-index: 1; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px clamp(24px, 5vw, 80px); }

/* ---------- Lado esquerdo ---------- */
.ti-lado { display: flex; flex-direction: column; gap: 28px; max-width: 620px; }
.ti .marca .prefeitura { color: var(--ti-ciano); opacity: 1; font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; }
.ti .marca .sistema { color: #fff; font-size: 1.8rem; }
.ti-titulo { margin: 0; font-size: 2.3rem; line-height: 1.15; font-weight: 700; color: #fff; }
.ti-titulo em { font-style: normal; color: var(--ti-ciano); }

.terminal { border: 1px solid var(--ti-linha); border-radius: 12px; background: rgba(8, 13, 24, .88); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; }
.terminal-barra { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--ti-linha); font: 500 .8rem var(--mono); color: var(--ti-suave); }
.terminal-barra i { width: 11px; height: 11px; border-radius: 50%; background: #ec4899; }
.terminal-barra i:nth-child(2) { background: #a78bfa; }
.terminal-barra i:nth-child(3) { background: #38d9f5; margin-right: 8px; }
.terminal-corpo { margin: 0; padding: 16px 18px 18px; min-height: 268px; font: 400 .9rem/1.75 var(--mono); color: #c9d6e8; white-space: pre-wrap; }
.terminal-corpo .p { color: var(--ti-ciano); }
.terminal-corpo .ok { color: var(--ti-verde); font-weight: 700; }
.terminal-corpo .c { color: var(--ti-suave); }
.cursor { display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: -2px; background: var(--ti-ciano); animation: pisca 1s steps(1) infinite; }
@keyframes pisca { 50% { opacity: 0; } }

.ti-status { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 500 .82rem var(--mono); color: var(--ti-suave); }
.ti-status span { display: inline-flex; align-items: center; gap: 8px; }
.ti-status b { color: var(--ti-texto); font-weight: 600; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--ti-verde); box-shadow: 0 0 0 0 rgba(94, 231, 251, .6); animation: led 2s infinite; }
@keyframes led { 70% { box-shadow: 0 0 0 8px rgba(94, 231, 251, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 231, 251, 0); } }

/* ---------- Cartão do formulário ---------- */
.ti-form { display: grid; place-items: center; }
.ti .caixa {
  max-width: 430px; padding: 34px 32px 26px; border: 1px solid var(--ti-linha); border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 25, 44, .94), rgba(10, 16, 30, .94));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(56, 217, 245, .05) inset;
  backdrop-filter: blur(6px);
}
.ti-kicker { display: block; margin-bottom: 6px; font: 500 .8rem var(--mono); color: var(--ti-ciano); letter-spacing: .04em; }
.ti .caixa h2 { color: #fff; font-size: 2rem; }
.ti .caixa .sub { color: var(--ti-suave); }
.ti .campo > span:first-child { color: #c8d4e6; font-family: var(--mono); font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.ti .entrada > i { color: #6f84a3; }
.ti .entrada input { background: #070c17; border-color: #22324d; color: #fff; font-family: var(--mono); font-size: 1rem; }
.ti .entrada input::placeholder { color: #4d5f7c; }
.ti .entrada input:focus { border-color: var(--ti-ciano); box-shadow: 0 0 0 3px rgba(56, 217, 245, .18), 0 0 18px rgba(56, 217, 245, .12); }
.ti .entrada input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #070c17 inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
.ti .ver-senha { color: #6f84a3; }
.ti .ver-senha:hover, .ti .ver-senha:focus-visible { background: rgba(56, 217, 245, .1); color: var(--ti-ciano); }
.ti .caps { color: #f9a8d4; }

.ti .botao { background: linear-gradient(90deg, #22c4e6, #2f7cf0); color: #04101c; font-weight: 700; letter-spacing: .02em; box-shadow: 0 10px 26px rgba(47, 124, 240, .3); }
.ti .botao:hover { background: linear-gradient(90deg, #4fd6f2, #4b8ff5); }
.ti .botao:focus-visible { outline-color: rgba(56, 217, 245, .5); }
.ti .giro { border-color: rgba(4, 16, 28, .3); border-top-color: #04101c; }

.ti .links a { color: var(--ti-ciano); font-weight: 600; }
.ti .versao { color: #5d6f8c; font-family: var(--mono); font-size: .76rem; }

.ti .alerta.erro { background: rgba(244, 63, 94, .1); border-color: rgba(244, 63, 94, .4); color: #ffb3c0; }
.ti .alerta.ok { background: rgba(56, 217, 245, .1); border-color: rgba(56, 217, 245, .35); color: #b5f0fb; }
.ti .alerta b { color: #fff; }

.ti .marca-movel { color: #fff; }
.ti .marca-movel .prefeitura { color: var(--ti-ciano); font-family: var(--mono); font-size: .7rem; opacity: 1; }

/* ---------- Telas menores ---------- */
@media (max-width: 1050px) {
  .ti { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 24px; }
  .ti-lado { max-width: none; }
  .terminal, .ti-titulo { display: none; }
  .ti .marca { display: none; }
  .ti .marca-movel { display: flex; }
  .ti-lado { order: 2; }
  .ti-status { justify-content: center; }
}
@media (max-width: 480px) {
  .ti { padding: 20px 14px; }
  .ti .caixa { padding: 26px 18px 20px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .cursor, .led { animation: none; } }

/* ======================================================================
   Telas auxiliares (recuperar, cadastro, nova senha) no mesmo visual escuro: body.tela-ti.tela-ti-aux
   Destaque ROXO → ROSA (o login é azul/ciano; usuário: tecnologia é azul, roxo e rosa; nada de verde, amarelo ou laranja) + selo, etapas e "Isto não é o login", para ninguém confundir.
   ====================================================================== */
.tela-ti-aux { --ti-ciano: #c084fc; --ti-linha: rgba(192, 132, 252, .22); --ambar: #c084fc; --ti-verde: #e9b5ff; }
.tela-ti-aux::before {
  background:
    radial-gradient(700px 420px at 12% 18%, rgba(139, 92, 246, .26), transparent 70%),
    radial-gradient(600px 400px at 88% 85%, rgba(236, 72, 153, .14), transparent 70%),
    linear-gradient(rgba(192, 132, 252, .045) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(192, 132, 252, .045) 1px, transparent 1px) 0 0 / 34px 34px;
}
.tela-ti-aux .ti-lado { gap: 26px; }
.tela-ti-aux .chamada { margin: 0; max-width: none; }
.tela-ti-aux .chamada h1 { margin: 0 0 22px; color: #fff; font-size: 2.2rem; line-height: 1.15; }
.tela-ti-aux .selo-tela { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; background: rgba(192, 132, 252, .08); }
.tela-ti-aux .terminal-barra { color: #b4a3d6; }
.tela-ti-aux .etapas { padding: 20px 20px 22px; gap: 16px; }
.tela-ti-aux .etapas li { opacity: .55; color: #c9d6e8; }
.tela-ti-aux .etapas li strong { color: #fff; font-family: var(--mono); font-size: .98rem; font-weight: 600; }
.tela-ti-aux .etapas li span { width: 36px; height: 36px; border-color: rgba(255, 255, 255, .35); font-family: var(--mono); font-size: .95rem; color: #c9d6e8; }
.tela-ti-aux .etapas li.atual { opacity: 1; }
.tela-ti-aux .etapas li.atual span { background: var(--ti-ciano); border-color: var(--ti-ciano); color: #fff; background: linear-gradient(135deg, #8b5cf6, #ec4899); border-color: transparent; box-shadow: 0 0 18px rgba(192, 132, 252, .45); }
.tela-ti-aux .etapas li.feita { opacity: .9; }
.tela-ti-aux .etapas li.feita span { background: rgba(56, 217, 245, .12); border-color: rgba(56, 217, 245, .5); color: #38d9f5; }
.tela-ti-aux .rodape-painel { margin: 0; font: 500 .82rem var(--mono); color: var(--ti-suave); opacity: 1; }

.tela-ti-aux .caixa.larga { max-width: 580px; }
.tela-ti-aux .titulo-aux { border-bottom-color: rgba(192, 132, 252, .18); }
.tela-ti-aux .titulo-aux .ico { background: rgba(192, 132, 252, .1); border: 1px solid rgba(192, 132, 252, .45); color: var(--ti-ciano); }
.tela-ti-aux .titulo-aux h2 { color: #fff; }
.tela-ti-aux .caixa .sub strong { color: var(--ti-ciano); }

.tela-ti-aux .botao { background: linear-gradient(90deg, #8b5cf6, #ec4899); color: #fff; box-shadow: 0 10px 26px rgba(236, 72, 153, .3); }
.tela-ti-aux .botao:hover { background: linear-gradient(90deg, #9d74f8, #f062ab); }
.tela-ti-aux .botao:disabled { opacity: .4; box-shadow: none; }
.tela-ti-aux .giro { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.tela-ti-aux a.botao { color: #fff; }

.tela-ti .dica { color: var(--ti-suave); }
.tela-ti .dica.boa { color: var(--ti-verde); }
.tela-ti .dica.ruim { color: #ff8fa3; }
.tela-ti .requisitos { background: #070c17; border-color: #22324d; }
.tela-ti .requisitos small { color: #c8d4e6; font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.tela-ti .requisitos li { color: var(--ti-suave); }
.tela-ti .requisitos li.ok, .tela-ti .requisitos li.ok i { color: var(--ti-verde); }

.tela-ti .estado h2 { color: #fff; }
.tela-ti .estado > p { color: var(--ti-suave); }
.tela-ti .ico-grande { background: rgba(192, 132, 252, .1); color: var(--ti-ciano); border: 1px solid rgba(192, 132, 252, .35); }
.tela-ti .estado.erro .ico-grande { background: rgba(244, 63, 94, .1); color: #ff8fa3; border-color: rgba(244, 63, 94, .4); }
.tela-ti .lembretes { background: #070c17; border-color: #22324d; color: #c8d4e6; }
.tela-ti .lembretes i { color: var(--ti-ciano); }

@media (max-width: 1050px) {
  .tela-ti-aux .ti-lado { display: none; }
}
/* Nas auxiliares, só o CPF fica em fonte de programação (nome/e-mail/senha cortavam o exemplo) */
.tela-ti-aux .entrada input { font-family: var(--sans); font-size: 1.05rem; }
.tela-ti-aux .entrada input#cpf { font-family: var(--mono); font-size: 1rem; }
.tela-ti-aux .caixa { max-width: 470px; }
.tela-ti-aux .selo-tela { border-color: rgba(192, 132, 252, .5); }
.tela-ti-aux .etapas li.atual span { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.tela-ti .dica.ruim { color: #fca5a5; }
