/* Telas de senha do Login Unico — mesmo desenho da Administracao do Portal:
   Arial, azul-marinho institucional (#0b2947) dos demais projetos, visual limpo
   (fundo claro, cartao branco, cantos arredondados, sombra suave). */
:root {
  --navy: #0b2947; --azul: #1c5c99; --azul-2: #174d82; --anel: rgba(28, 92, 153, .22);
  --fundo: #f5f6f8; --cartao: #fff; --linha: #e4e7eb; --txt: #1d1d1f; --txt-2: #5f6670; --txt-3: #8e949c;
  --ok: #1e7d46; --ok-bg: #eaf6ef; --erro: #c0392b; --erro-bg: #fdeeec; --aviso: #8a5a00; --aviso-bg: #fff5dc;
  --sombra: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 30px rgba(11, 41, 71, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Arial, Helvetica, sans-serif; font-size: 15px; color: var(--txt); background: var(--fundo);
  -webkit-font-smoothing: antialiased; line-height: 1.45;
}
.centro { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.cartao { width: 100%; max-width: 420px; background: var(--cartao); border-radius: 20px; box-shadow: var(--sombra); padding: 36px 32px 30px; }
.marca { font-weight: 700; letter-spacing: .14em; color: var(--azul); font-size: 11px; text-transform: uppercase; margin-bottom: 22px; }
h1 { font-size: 26px; line-height: 1.15; margin: 0 0 8px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.sub { color: var(--txt-2); margin: 0 0 24px; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--txt-2); margin: 16px 0 7px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--linha); background: #fbfbfc;
  color: var(--txt); font-size: 15px; font-family: inherit; transition: border-color .15s, box-shadow .15s, background .15s;
}
input[readonly] { color: var(--txt-2); background: var(--fundo); }
input:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 4px var(--anel); }
button {
  font-family: inherit; font-size: 15px; font-weight: 700; border: 0; border-radius: 12px; height: 46px; padding: 0 20px;
  background: var(--azul); color: #fff; cursor: pointer; transition: background .15s, transform .05s;
}
button:hover { background: var(--azul-2); }
button:active { transform: scale(.99); }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--anel); }
.largo { width: 100%; margin-top: 24px; }
.msg { display: none; margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.msg.ok { display: block; background: var(--ok-bg); color: var(--ok); }
.msg.erro { display: block; background: var(--erro-bg); color: var(--erro); }
.msg.aviso { display: block; background: var(--aviso-bg); color: var(--aviso); }
.regras { margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--txt-3); display: grid; gap: 4px; }
.regras li { display: flex; align-items: center; gap: 8px; transition: color .15s; }
.regras li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #c7ccd3; flex: none; transition: all .15s; }
.regras li.ok { color: var(--ok); }
.regras li.ok::before { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px #fff; }
.links { margin-top: 20px; font-size: 14px; text-align: center; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
.rodape { margin-top: 22px; font-size: 12px; color: var(--txt-3); }
.escondido { display: none !important; }
/* botao "Entrar no Portal" depois de criar a senha */
.botao-link {
  display: block; margin-top: 18px; height: 46px; line-height: 46px; text-align: center; border-radius: 12px;
  background: var(--azul); color: #fff; font-weight: 700; text-decoration: none; transition: background .15s;
}
.botao-link:hover { background: var(--azul-2); text-decoration: none; }
.botao-link:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--anel); }
/* olhinho de mostrar/esconder senha */
.campo-senha { position: relative; }
.campo-senha input { padding-right: 50px; }
.olho {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 38px; padding: 0;
  background: transparent; color: var(--txt-3); border-radius: 10px; display: grid; place-items: center;
}
.olho:hover { background: var(--fundo); color: var(--navy); }
.olho:active { transform: translateY(-50%); }
@media (max-width: 480px) { .cartao { padding: 28px 22px 24px; border-radius: 18px; } h1 { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
