/* =============================================================================
   Portal CPD — Autenticação e erros (telas standalone)
   -----------------------------------------------------------------------------
   Complementa tokens/base/components para as páginas sem layout: login e erro.
   O painel de marca mantém a expressão da identidade (faixa azul da marca) e
   funciona igual nos dois temas; o formulário usa as superfícies do tema.
   ============================================================================= */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

/* ---------- Painel de marca ------------------------------------------------- */
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding: var(--sp-8);
  color: #eaf2ff;
  background:
    radial-gradient(120% 90% at 10% -10%, rgba(94, 168, 246, .34), transparent 55%),
    radial-gradient(95% 80% at 100% 110%, rgba(46, 144, 238, .24), transparent 60%),
    linear-gradient(160deg, #0d1c30 0%, #0a1220 58%, #070c14 100%);
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 80% at 20% 20%, #000 30%, transparent 80%);
  pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }

.auth-logo {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
}
.auth-logo img { display: block; height: 44px; width: auto; }

.auth-brand-body { margin-top: auto; max-width: 46ch; }
.auth-brand-body h2 {
  margin: 0 0 var(--sp-3);
  color: #fff;
  font-size: var(--fs-24);
  letter-spacing: -.02em;
  line-height: var(--lh-snug);
}
.auth-brand-body p {
  margin: 0;
  color: rgba(234, 242, 255, .74);
  font-size: var(--fs-14);
  line-height: var(--lh-relaxed);
}

.auth-features {
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: rgba(234, 242, 255, .88);
  font-size: var(--fs-13);
}
.auth-features .ico { color: #7db4f7; margin-top: 1px; }

.auth-brand-foot {
  margin-top: auto;
  padding-top: var(--sp-6);
  color: rgba(234, 242, 255, .48);
  font-size: var(--fs-12);
}

/* ---------- Painel de formulário ------------------------------------------- */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: var(--bg);
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: var(--fs-24); margin: 0 0 var(--sp-2); }
.auth-sub { color: var(--text-2); font-size: var(--fs-13); margin: 0 0 var(--sp-5); }
.auth-card form { margin-top: var(--sp-5); }
.auth-card .btn.primary { width: 100%; justify-content: center; min-height: 44px; }

/* ---------- Aviso de privacidade (C1) -------------------------------------- */
.auth-notice { margin: var(--sp-5) 0 0; font-size: var(--fs-12); }
.auth-notice a, .privacy-card a { color: var(--brand-2); }

.privacy-panel { align-items: flex-start; padding-block: var(--sp-8); }
.privacy-card { max-width: 680px; }
.privacy-card h1 { font-size: var(--fs-24); }
.privacy-card .auth-sub { margin-bottom: var(--sp-3); }
.privacy-card h2 { font-size: var(--fs-16); margin: var(--sp-5) 0 var(--sp-2); }
.privacy-card p {
  color: var(--text-2);
  font-size: var(--fs-13);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--sp-2);
}
.privacy-card .auth-foot { margin-top: var(--sp-6); }

.auth-mobile-logo {
  display: none;
  align-items: center;
  margin-bottom: var(--sp-5);
}
.auth-mobile-logo img { display: block; height: 28px; width: auto; }

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-logo { display: inline-flex; }
}

/* ---------- Página de erro -------------------------------------------------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}
.error-card { width: 100%; max-width: 520px; margin: 0; text-align: center; }
.error-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--sp-5);
}
.error-logo img { display: block; height: 28px; width: auto; }
.error-code {
  font-size: 56px;
  font-weight: var(--fw-bold);
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--brand-2);
}
.error-title { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--fs-18); }
.error-msg { color: var(--text-2); margin: 0 0 var(--sp-5); }
