/* Portal Realess: mesmas cores, fonte e raio do site institucional (New/styles.css). */
:root {
  --navy-deep: #0f1c2e;
  --navy: #172437;
  --navy-light: #22344d;
  --gold: #c5a880;
  --gold-light: #dfc195;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(197, 168, 128, 0.42);
  --erro: #f0a3a3;
  --radius: 16px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font); background: var(--navy-deep); color: var(--text); line-height: 1.6; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(197, 168, 128, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(34, 52, 77, 0.9), transparent 60%),
    var(--navy-deep);
}
a { color: var(--gold-light); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.marca img { display: block; height: 46px; width: auto; }
.topo-acoes { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.quem { color: var(--muted); max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-discreto { color: var(--text); text-decoration: none; }
.link-discreto:hover { color: var(--gold-light); }

h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 18px; }

/* Entrada: texto à esquerda, formulário à direita */
.entrada {
  max-width: 1180px; margin: 0 auto; padding: clamp(40px, 9vh, 110px) 24px 64px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.entrada-texto h1 { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 2px solid var(--gold); display: inline-block; }
.entrada-texto p { font-size: 18px; color: var(--text); max-width: 34em; }
.entrada-texto .nota { margin-top: 14px; font-size: 15px; color: var(--muted); }

.cartao {
  background: rgba(23, 36, 55, 0.82);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
form { display: grid; gap: 6px; }
label { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 10px; }
input {
  width: 100%; font: inherit; font-size: 16px; color: #fff;
  background: rgba(11, 20, 32, 0.7); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px;
  padding: 12px 14px;
}
input:focus { outline: none; border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.25); }
.senha-campo { position: relative; }
.senha-campo input { padding-right: 92px; }
.ver-senha {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: inherit; font-size: 13px; color: var(--gold-light); background: none; border: 0; padding: 8px 10px; cursor: pointer;
}
.botao {
  margin-top: 18px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  color: var(--navy-deep); background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 0; border-radius: 10px; padding: 13px 18px;
}
.botao:hover { filter: brightness(1.06); }
.botao[disabled] { opacity: 0.6; cursor: progress; }
.botao-linha { font: inherit; font-size: 14px; color: var(--text); background: none; border: 1px solid var(--border-gold); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.botao-linha:hover { color: #fff; border-color: var(--gold-light); }
.mensagem { margin-top: 10px; font-size: 14px; color: var(--erro); }
.mensagem.ok { color: #9fe0b5; }
.ajuda { margin-top: 20px; font-size: 14px; color: var(--muted); }
.nota { color: var(--muted); }

/* Sistemas */
.pagina { max-width: 1180px; margin: 0 auto; padding: 56px 24px 72px; }
.pagina.estreita { max-width: 520px; }
.pagina.estreita h1 { font-size: 28px; margin-bottom: 8px; }
.pagina.estreita .nota { margin-bottom: 10px; }
.aviso { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(197, 168, 128, 0.08); border-radius: 0 10px 10px 0; max-width: 680px; }
.sistemas { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.sistema {
  display: flex; flex-direction: column; gap: 12px; min-height: 210px;
  padding: 28px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: rgba(23, 36, 55, 0.82); border: 1px solid var(--border-gold);
  transition: border-color 0.2s, transform 0.2s;
}
a.sistema:hover { border-color: var(--gold-light); transform: translateY(-2px); color: var(--text); }
.sistema h2 { margin: 0; font-size: 22px; }
.sistema p { color: var(--muted); font-size: 15px; }
.sistema .abrir { margin-top: auto; font-weight: 700; color: var(--gold-light); }
.sistema svg { width: 34px; height: 34px; color: var(--gold); }
.sistema.reservado { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.22); }
.sistema.reservado svg { color: var(--muted); }
.sistema.reservado .abrir { color: var(--muted); font-weight: 600; }

@media (max-width: 860px) {
  .entrada { grid-template-columns: 1fr; padding-top: 36px; }
  .entrada-texto p { font-size: 16px; }
}
@media (max-width: 560px) {
  .topo { padding: 14px 16px; flex-wrap: wrap; }
  .marca img { height: 38px; }
  .topo-acoes { gap: 12px; flex-wrap: wrap; }
  .quem { display: none; }
  .entrada, .pagina { padding-left: 16px; padding-right: 16px; }
  .cartao, .sistema { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
