/* =======================================================================
   Tela de login do Consultar Alunos.

   Card único e centralizado. CSS próprio, separado do app.css: esta página
   é servida ANTES do login, então carrega só o que precisa — e, de
   propósito, não exibe nenhum dado do Censo antes da autenticação.
   ======================================================================= */

:root {
  --azul: #1a5276;
  --azul-escuro: #123c58;
  --azul-medio: #2874a6;
  --texto: #1f2d3a;
  --texto-suave: #5b6b7b;
  --texto-fraco: #8a99a8;
  --borda: #d9e2ea;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}

.tela {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  padding: 28px 20px;
  background: linear-gradient(155deg, #1a5276 0%, #14486a 45%, #0d3049 100%);
  position: relative; overflow: hidden;
}

/* Textura discreta de pontos — profundidade sem depender de imagem externa. */
.tela::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .45;
}

.cartao {
  position: relative; z-index: 1;
  width: 100%; max-width: 424px;
  background: #fff;
  border-radius: 16px;
  padding: 34px 36px 30px;
  box-shadow: 0 20px 56px rgba(6, 26, 43, .34);
}

.logo {
  display: block;
  width: 100%; max-width: 300px; height: auto;
  margin: 0 auto 24px;
}

.cartao h1 {
  font-size: 1.42rem; font-weight: 700; letter-spacing: -.3px;
  color: var(--azul); text-align: center;
}
.cartao .sub {
  color: var(--texto-suave); font-size: .88rem;
  text-align: center; margin-top: 5px; margin-bottom: 24px;
}

.campo { margin-bottom: 16px; }
.campo label {
  display: block; font-size: .79rem; font-weight: 600;
  color: var(--texto-suave); margin-bottom: 6px;
}

.campo input {
  width: 100%; padding: 12px 14px; font-size: .95rem; font-family: inherit;
  color: var(--texto); background: #fff;
  border: 1.5px solid var(--borda); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.campo input:hover { border-color: #b9c8d6; }
.campo input:focus {
  outline: none; border-color: var(--azul-medio);
  box-shadow: 0 0 0 3.5px rgba(40, 116, 166, .16);
}

.com-botao { position: relative; }
.com-botao input { padding-right: 82px; }
.olho {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; cursor: pointer;
  color: var(--azul-medio); font: inherit; font-size: .78rem; font-weight: 600;
  padding: 7px 9px; border-radius: 7px;
}
.olho:hover { background: #eef4fa; }

.entrar {
  width: 100%; margin-top: 10px; padding: 13px;
  background: var(--azul); color: #fff;
  border: 0; border-radius: 10px;
  font: inherit; font-size: .96rem; font-weight: 650; cursor: pointer;
  transition: background .15s, transform .08s;
}
.entrar:hover { background: var(--azul-escuro); }
.entrar:active { transform: translateY(1px); }
.entrar:disabled { background: #8fa4b5; cursor: not-allowed; }

.alerta {
  background: #fdecea; border: 1px solid #f5c6c0; color: #86261c;
  border-radius: 10px; padding: 11px 14px; font-size: .86rem;
  margin-bottom: 18px; line-height: 1.45;
}

.aviso {
  margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--borda);
  font-size: .73rem; color: var(--texto-fraco); line-height: 1.55; text-align: center;
}

.rodape {
  position: relative; z-index: 1;
  color: rgba(255,255,255,.62); font-size: .74rem; text-align: center;
}

:where(a, button, input):focus-visible {
  outline: 3px solid #7fb3d9; outline-offset: 2px;
}

@media (max-width: 480px) {
  .cartao { padding: 28px 22px 24px; border-radius: 14px; }
  .logo { max-width: 218px; margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
