/* ============================================================
   IMPER CREDI BRASIL — FUNDO DAS TELAS PÚBLICAS (Grupo 33)
   ------------------------------------------------------------
   Mesmo brilho vermelho da tela inicial, reaproveitado em todas as
   telas antes do login: Login, Cadastro, Portal do Parceiro,
   Quem Somos, Termos e Privacidade.
   Depois do login o fundo continua preto (esta camada só existe
   nas telas públicas).

   Uso: <div class="public-glow" aria-hidden="true"></div> logo no
   início do <body> (ou do container da tela, no caso do Login).
   A camada é fixa: acompanha a rolagem em páginas longas.
   ============================================================ */

.public-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* fica atrás de tudo, sem mexer no posicionamento de mais nada */
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0a 0%, #0d0d0f 40%, #0a0a0a 100%);
}

/* Brilho principal — canto superior direito (igual à tela inicial) */
.public-glow::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -200px;
  width: 980px;
  height: 980px;
  max-width: 160vw;
  max-height: 160vw;
  background: radial-gradient(ellipse at center, rgba(200, 16, 46, 0.55) 0%, rgba(200, 16, 46, 0.2) 32%, rgba(200, 16, 46, 0) 68%);
  transform: rotate(-16deg);
}

/* Brilho de apoio — canto inferior esquerdo */
.public-glow::after {
  content: '';
  position: absolute;
  bottom: -420px;
  left: -320px;
  width: 1080px;
  height: 1080px;
  max-width: 170vw;
  max-height: 170vw;
  background: radial-gradient(ellipse at center, rgba(200, 16, 46, 0.38) 0%, rgba(200, 16, 46, 0.14) 35%, rgba(200, 16, 46, 0) 68%);
  transform: rotate(14deg);
}

/* Containers com fundo sólido próprio ficam transparentes para o brilho aparecer */
.login-page.has-public-glow,
body.has-public-glow .landing { background: transparent; }

@media (max-width: 640px) {
  .public-glow::before { top: -160px; right: -260px; }
  .public-glow::after  { bottom: -300px; left: -360px; }
}

@media (prefers-reduced-motion: no-preference) {
  .public-glow { animation: public-glow-in .5s ease-out both; }
}
@keyframes public-glow-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Login (Grupo 33): voltar ao início + acesso do parceiro ---------- */
.login-back-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  color: #bbb;
  text-decoration: none;
  background: rgba(20, 20, 20, .75);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  transition: color .2s, border-color .2s;
}
.login-back-link:hover { color: #c9a84c; border-color: #c9a84c; }
.login-page.has-public-glow { padding-top: 64px; }

.login-partner-link {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}
.login-partner-link a { color: #c9a84c; text-decoration: none; font-weight: 600; white-space: nowrap; }
.login-partner-link a:hover { text-decoration: underline; }

/* ---------- Telas de login separadas (Grupo 40 + 34.X, 2026-09-29) ---------- */
.login-portal-badge {
  display: block;
  width: fit-content;
  margin: -6px auto 18px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-portal-badge-client { color: #c9a84c; background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.35); }
.login-portal-badge-admin  { color: #f0f0f0; background: rgba(200,16,46,.18); border: 1px solid rgba(200,16,46,.55); }
.login-staff-forgot {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  font-size: 12px;
  line-height: 1.5;
  color: #999;
}
.login-staff-forgot strong { color: #ddd; }
.login-staff-link { display: inline-block; margin-top: 8px; color: #666; font-size: 11px; text-decoration: none; }
.login-staff-link:hover { color: #c9a84c; }
.login-portal-badge-lojista { color: #0a0a0a; background: linear-gradient(135deg,#e8c96e,#b08a30); border: 1px solid #c9a84c; }
.cadastro-card .login-portal-badge { margin: -4px auto 18px; }

/* ── Portal do Lojista — login (Grupo 51) ── */
.lj-benefits { list-style: none; margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(201,168,76,.25); border-radius: 12px; background: rgba(201,168,76,.05); display: flex; flex-direction: column; gap: 8px; }
.lj-benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #c8c8c8; line-height: 1.45; }
.lj-benefits li span { flex-shrink: 0; }
.lj-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -6px 0 14px; flex-wrap: wrap; }
.lj-remember { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #aaa; cursor: pointer; }
.lj-remember input { width: 16px; height: 16px; accent-color: #c9a84c; }
.lj-caps { font-size: 11.5px; color: #f59e0b; margin-top: 4px; }
.lj-install { margin-top: 16px; }
.lj-install-help { margin-top: 10px; font-size: 12.5px; color: #bbb; line-height: 1.55; padding: 12px; border: 1px solid #2a2a2a; border-radius: 10px; }
.lj-install-help ol { margin: 6px 0 0; padding-left: 18px; }
.lj-trust { margin-top: 18px; padding-top: 14px; border-top: 1px solid #1e1e1e; text-align: center; font-size: 11.5px; color: #777; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lj-trust > div { width: 100%; }
.lj-trust a { color: #999; text-decoration: none; }
.lj-trust a:hover { color: #c9a84c; }
