/* ════════════════════════════════════════════
   LOGIN — layout do Portal FUNDEF
   Header azul + corpo claro + card central
════════════════════════════════════════════ */

#screen-login.screen.active {
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.login-header {
  background: var(--c-brand);
  color: var(--c-white);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.login-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 80px;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.login-header-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: inherit;
}
.login-header-logo {
  width: 46px;
  height: 46px;
  background: var(--c-white);
  color: var(--c-brand);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 900;
  flex-shrink: 0;
}
/* Header institucional só com a marca "C" (wordmark e tag removidos). */

/* ── Corpo claro ── */
.login-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-12) var(--sp-4) var(--sp-8);
  background: var(--c-bg);
}

/* ── Card ── */
.login-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--sh-md);
  text-align: center;
}
@media (max-width: 480px) {
  .login-card { padding: var(--sp-6) var(--sp-5); }
}

.login-card-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
  line-height: 1.25;
}
.login-card-desc {
  font-size: var(--text-base);
  color: var(--c-muted);
  margin-bottom: var(--sp-6);
  line-height: 1.6;
}

/* Inputs alinhados à esquerda dentro do card centralizado */
#screen-login .form-group { text-align: left; }

/* ── Footer ── */
.login-footer {
  margin-top: var(--sp-6);
  font-size: var(--text-sm);
  color: var(--c-muted);
  text-align: center;
}
.login-footer a { color: var(--c-brand); text-decoration: none; font-weight: 600; }
.login-footer a:hover { text-decoration: underline; }

/* ── Bloqueio de login: caixa com cronômetro regressivo ── */
.bloqueio-box {
  background: var(--c-error-bg);
  border: 1px solid var(--c-error-bd);
  border-left: 4px solid var(--c-error);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  text-align: center;
}
.bloqueio-titulo {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--c-error);
  margin-bottom: 2px;
}
.bloqueio-texto {
  font-size: var(--text-xs);
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}
.bloqueio-cronometro {
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-error);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* ── Popup verde: liberação após o bloqueio ── */
.popup-sucesso {
  position: fixed;
  top: var(--sp-5);
  left: 50%;
  transform: translate(-50%, -16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: 92vw;
  background: var(--c-success-bg);
  border: 1px solid var(--c-success-bd);
  border-left: 4px solid var(--c-success);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: 0 8px 24px rgba(21, 128, 61, .18);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.popup-sucesso.is-visivel {
  opacity: 1;
  transform: translate(-50%, 0);
}
.popup-sucesso-ic { color: var(--c-success); flex-shrink: 0; }
.popup-sucesso-titulo {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--c-success-fg);
}
.popup-sucesso-texto {
  font-size: var(--text-xs);
  color: var(--c-success);
}

/* ── Ponto de Apoio: bloco de atendimento presencial (CPF não encontrado) ── */
.ponto-apoio {
  margin-bottom: var(--sp-4);
  background: var(--c-brand-light);
  border: 1px solid #c3d3ec;
  border-left: 4px solid var(--c-brand);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  text-align: left;
}
.ponto-apoio-titulo {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--c-brand-dk);
  margin-bottom: var(--sp-2);
}
.ponto-apoio-texto {
  font-size: var(--text-xs);
  color: var(--c-text);
  line-height: 1.55;
  margin-bottom: var(--sp-3);
}
.ponto-apoio-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: var(--c-brand);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.ponto-apoio-link:hover { background: var(--c-brand-lt); }
.ponto-apoio-aviso {
  font-size: var(--text-xs);
  color: var(--c-muted);
  margin-top: var(--sp-3);
  line-height: 1.5;
}
