/* ============================================================
   HERBNET — Central do Assinante: Login Styles
   Design: Premium Modern Dark Glassmorphism
   ============================================================ */

#root {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════════════
   1. TELA DE LOGIN — FUNDO DA PÁGINA COM DUPLO GLOW ORANGE
   ════════════════════════════════════════════════════════════ */
div.min-h-screen.bg-slate-100 {
  background:
    radial-gradient(circle 350px at -10% -10%, rgba(255, 107, 0, 0.16) 0%, transparent 100%),
    radial-gradient(circle 350px at 110% 110%, rgba(255, 107, 0, 0.16) 0%, transparent 100%),
    linear-gradient(180deg, #020628 0%, #050b3a 100%) !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 32px 16px !important;
}

/* Malha de pontos */
div.min-h-screen.bg-slate-100::after {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  pointer-events: none;
  z-index: 0;
}

/* Linha de destaque no topo (desativada para o novo design limpo) */
div.min-h-screen.bg-slate-100::before {
  display: none !important;
}

/* Logo no card de login */
div.w-full.max-w-md.bg-white.rounded-3xl img {
  display: block !important;
  height: 48px !important;
  width: auto !important;
  margin: 0 auto 20px auto !important;
  filter: drop-shadow(0 0 16px rgba(255, 107, 0, 0.35)) brightness(1.05) !important;
}

/* ════════════════════════════════════════════════════════════
   2. CARD DE LOGIN — glassmorphism dark premium
   ════════════════════════════════════════════════════════════ */
div.w-full.max-w-md.bg-white.rounded-3xl {
  background: rgba(8, 14, 61, 0.72) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-top-color: rgba(255, 255, 255, 0.10) !important;
  border-radius: 28px !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  padding: 32px 28px !important;
  width: 100% !important;
  max-width: 448px !important;
  animation: hbCardIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

@keyframes hbCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Título no login */
div.w-full.max-w-md.bg-white.rounded-3xl h1 {
  font-size: 24px !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.02em !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
  text-align: center !important;
}

/* Textos no login */
div.w-full.max-w-md.bg-white.rounded-3xl p.text-slate-500 {
  color: #7d8bb4 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  margin-top: 4px !important;
  margin-bottom: 24px !important;
  text-align: center !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl .text-slate-800 { color: #FFFFFF !important; }
div.w-full.max-w-md.bg-white.rounded-3xl .text-slate-700 { color: #E9ECFF !important; }
div.w-full.max-w-md.bg-white.rounded-3xl .text-slate-400 { color: #9BA3CF !important; }

/* Banner nome do cliente no login */
div.w-full.max-w-md.bg-white.rounded-3xl .bg-slate-50 {
  background: rgba(30, 107, 255, 0.07) !important;
  border-color: rgba(30, 107, 255, 0.18) !important;
}
div.w-full.max-w-md.bg-white.rounded-3xl .text-brand-blue {
  color: #3DA5FF !important;
}

/* Mensagem de Erro no login */
div.w-full.max-w-md.bg-white.rounded-3xl .bg-red-50 {
  background: rgba(239, 68, 68, 0.10) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
}

/* Labels no login */
div.w-full.max-w-md.bg-white.rounded-3xl label {
  color: #7d8bb4 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}

/* Inputs no login */
div.w-full.max-w-md.bg-white.rounded-3xl input[type="text"],
div.w-full.max-w-md.bg-white.rounded-3xl input[type="password"] {
  background: rgba(4, 8, 48, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  caret-color: #FF6B00 !important;
  border-radius: 14px !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  padding-left: 44px !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl input[type="text"]:focus,
div.w-full.max-w-md.bg-white.rounded-3xl input[type="password"]:focus {
  border-color: rgba(255, 107, 0, 0.50) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12) !important;
  background: rgba(4, 8, 48, 0.8) !important;
  outline: none !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl input::placeholder {
  color: rgba(125, 139, 180, 0.40) !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl .absolute.inset-y-0 svg,
div.w-full.max-w-md.bg-white.rounded-3xl .pointer-events-none svg {
  color: #7d8bb4 !important;
}

/* Botão principal de Avançar/Entrar */
div.w-full.max-w-md.bg-white.rounded-3xl button[type="submit"] {
  background: #FF6B00 !important;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.28) !important;
  border-radius: 14px !important;
  color: white !important;
  font-weight: 700 !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  font-size: 15px !important;
  letter-spacing: 0.01em !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl button[type="submit"]:hover:not(:disabled) {
  background: #FF7B1A !important;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.38) !important;
  transform: translateY(-1px) !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl button[type="submit"]::after {
  content: '→' !important;
  position: absolute !important;
  right: 20px !important;
  font-size: 18px !important;
  transition: transform 0.2s ease !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl button[type="submit"]:hover::after {
  transform: translateX(4px) !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl button[type="submit"]:active:not(:disabled) {
  transform: translateY(0) !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl button:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Cards de seleção de contratos no login */
div.w-full.max-w-md.bg-white.rounded-3xl button.border-slate-200 {
  background: rgba(4, 8, 52, 0.40) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  transition: all 0.2s ease !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl button.border-slate-200:hover {
  background: rgba(12, 18, 75, 0.60) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl button.border-brand-blue {
  background: rgba(255, 107, 0, 0.08) !important;
  border-color: rgba(255, 107, 0, 0.48) !important;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.15) !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl .border-slate-300.bg-white.rounded-full {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: transparent !important;
}

div.w-full.max-w-md.bg-white.rounded-3xl .border-brand-blue.bg-brand-blue {
  border-color: #FF6B00 !important;
  background: #FF6B00 !important;
}

/* ════════════════════════════════════════════════════════════
   3. NOVO CARD DO WHATSAPP (Abaixo do login)
   ════════════════════════════════════════════════════════════ */
#login-whatsapp-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 448px !important;
  background: rgba(8, 14, 61, 0.70) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 20px !important;
  padding: 16px 20px !important;
  margin-top: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  animation: hbCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
  z-index: 10 !important;
}

#login-whatsapp-card:hover {
  transform: translateY(-2px) !important;
  background: rgba(12, 20, 80, 0.80) !important;
  border-color: rgba(34, 197, 94, 0.30) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28) !important;
}

.wa-card-left {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.wa-icon-wrapper {
  width: 42px; height: 42px;
  background: rgba(34, 197, 94, 0.12) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #22c55e !important;
  flex-shrink: 0 !important;
}

.wa-icon-wrapper svg {
  width: 22px !important;
  height: 22px !important;
}

.wa-card-info {
  display: flex !important;
  flex-direction: column !important;
}

.wa-card-info h4 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  margin: 0 0 2px 0 !important;
}

.wa-card-info p {
  font-family: 'Poppins', sans-serif !important;
  font-size: 11.5px !important;
  color: #7d8bb4 !important;
  margin: 0 !important;
}

.wa-card-right {
  color: #7d8bb4 !important;
  display: flex !important;
  align-items: center !important;
}

.wa-card-right svg.chevron-icon {
  width: 18px !important;
  height: 18px !important;
  transition: transform 0.2s ease !important;
}

#login-whatsapp-card:hover .chevron-icon {
  transform: translateX(2px) !important;
  color: #22c55e !important;
}

#login-first-access-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 448px !important;
  background: rgba(8, 14, 61, 0.70) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 20px !important;
  padding: 16px 20px !important;
  margin-top: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  animation: hbCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
  z-index: 10 !important;
}

#login-first-access-card:hover {
  transform: translateY(-2px) !important;
  background: rgba(12, 20, 80, 0.80) !important;
  border-color: rgba(255, 107, 0, 0.30) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28) !important;
}

.fa-icon-wrapper {
  width: 42px; height: 42px;
  background: rgba(255, 107, 0, 0.08) !important;
  border: 1px solid rgba(255, 107, 0, 0.28) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #FF6B00 !important;
  flex-shrink: 0 !important;
}

.fa-icon-wrapper svg {
  width: 22px !important;
  height: 22px !important;
}

#login-first-access-card:hover .chevron-icon {
  transform: translateX(2px) !important;
  color: #FF6B00 !important;
}

/* ════════════════════════════════════════════════════════════
   4. RODAPÉ DE SEGURANÇA E CRIPTOGRAFIA
   ════════════════════════════════════════════════════════════ */
#login-security-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 32px !important;
  color: rgba(125, 139, 180, 0.5) !important;
  font-size: 11.5px !important;
  font-family: 'Poppins', sans-serif !important;
  animation: hbFadeIn 0.8s ease both !important;
}

#login-security-footer svg.lock-icon {
  width: 14px !important;
  height: 14px !important;
  color: rgba(125, 139, 180, 0.5) !important;
}

/* ════════════════════════════════════════════════════════════
   5. CORREÇÃO FORÇADA — LINK "ESQUECI MINHA SENHA" (LARANJA)
      O CSS global do React/Tailwind pode sobrescrever com preto.
      Usamos máxima especificidade para garantir laranja sempre.
   ════════════════════════════════════════════════════════════ */
body #hb-forgot-password-link,
body #hb-forgot-password-link:link,
body #hb-forgot-password-link:visited,
html body #hb-forgot-password-link {
  color: #FF8C2B !important;
  -webkit-text-fill-color: #FF8C2B !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  font-family: 'Poppins', sans-serif !important;
  background: none !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
}
body #hb-forgot-password-link:hover {
  color: #FFAA55 !important;
  -webkit-text-fill-color: #FFAA55 !important;
}

/* ════════════════════════════════════════════════════════════
   6. LINHA LEMBRAR / ESQUECI — LABEL BRANCA
   ════════════════════════════════════════════════════════════ */
#hb-remember-forgot-row label,
#hb-remember-forgot-row label span {
  color: rgba(155, 163, 207, 0.85) !important;
  -webkit-text-fill-color: rgba(155, 163, 207, 0.85) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* ════════════════════════════════════════════════════════════
   7. BOXES CLIENTE / CONTRATO SELECIONADO (injetados via JS)
      Garantem cores corretas mesmo com overrides do Tailwind
   ════════════════════════════════════════════════════════════ */
#hb-cliente-box,
#hb-contrato-box {
  position: relative;
  z-index: 1;
}
#hb-cliente-box .hb-box-label,
#hb-contrato-box .hb-box-label {
  color: #FF8C2B !important;
  -webkit-text-fill-color: #FF8C2B !important;
}
#hb-cliente-box .hb-box-value {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
#hb-contrato-box .hb-status-label {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
#hb-contrato-box .hb-contrato-id {
  color: rgba(155, 163, 207, 0.85) !important;
  -webkit-text-fill-color: rgba(155, 163, 207, 0.85) !important;
}
#hb-contrato-box .hb-endereco-row {
  color: rgba(155, 163, 207, 0.60) !important;
  -webkit-text-fill-color: rgba(155, 163, 207, 0.60) !important;
}
#hb-contrato-box .hb-sep {
  color: rgba(255, 255, 255, 0.25) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.25) !important;
}

