/* ===================================================================== */
/* Eluria — skin do login/reset do Chatwoot (atendimento.eluria.com.br)  */
/* Design: docs/design/login-handoff (hi-fi aprovado). Ativa apenas      */
/* quando o eluria-login.js marca <html class="elu-auth"> nas rotas      */
/* /app/login e /app/auth/*. Rollback: remover as 2 tags do nginx.conf.  */
/* ===================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/elu-fonts/pjs-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@keyframes elu-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes elu-float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes elu-glow { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes elu-msg-cycle {
  0% { opacity: 0; transform: translateY(28px) scale(.9); }
  2.5% { opacity: 1; transform: translateY(0) scale(1.03); }
  4.5% { transform: translateY(0) scale(1); }
  21% { opacity: 1; transform: translateY(0) scale(1); }
  25% { opacity: 0; transform: translateY(-20px) scale(.95); }
  100% { opacity: 0; transform: translateY(28px) scale(.9); }
}

/* ---------- layout split-screen ---------- */
html.elu-auth, html.elu-auth body { background: #F4F6FB !important; }

.elu-panel {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  margin-left: auto !important;
  width: clamp(360px, 42vw, 600px) !important;
  min-height: 100vh !important;
  background: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: clamp(28px, 4vw, 56px) !important;
}

#elu-brand {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  right: clamp(360px, 42vw, 600px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 64px);
  background: radial-gradient(130% 120% at 8% 4%, #1B2470 0%, #0A1040 45%, #030B30 100%);
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  z-index: 0;
}
html:not(.elu-auth) #elu-brand { display: none; }

@media (max-width: 1023px) {
  #elu-brand { display: none !important; }
  .elu-panel { width: 100% !important; }
}

/* ---------- painel de marca ---------- */
.elu-fu { opacity: 0; animation: elu-fade-up .6s cubic-bezier(.4,0,.2,1) forwards; }
.elu-glow-a { position: absolute; top: -160px; right: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(53,56,205,.55) 0%, rgba(53,56,205,0) 68%); filter: blur(6px); animation: elu-glow 7s ease-in-out infinite; pointer-events: none; }
.elu-glow-b { position: absolute; bottom: -180px; left: -100px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.28) 0%, rgba(56,189,248,0) 70%); pointer-events: none; }
.elu-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 80%); mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 80%); pointer-events: none; }

.elu-logo { position: relative; display: flex; align-items: center; gap: 12px; z-index: 2; }
.elu-logo img { width: 56px; height: 56px; border-radius: 15px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.elu-logo span { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }

.elu-mid { position: relative; max-width: 520px; z-index: 2; }
.elu-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 600; color: #C7D2FE; margin-bottom: 24px; }
.elu-chip i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.elu-mid h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 0 0 18px; color: #fff; }
.elu-mid .elu-sub { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; color: #C0C6E8; margin: 0; max-width: 440px; }

.elu-preview { position: relative; margin-top: 40px; max-width: 420px; }
.elu-float-chip { position: absolute; top: -18px; right: -8px; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; background: #fff; color: #0F172A; font-size: 13px; font-weight: 700; box-shadow: 0 16px 40px rgba(10,12,40,.45); animation: elu-float-y 5s ease-in-out infinite; }
.elu-float-chip i { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; background: #DCFCE7; align-items: center; justify-content: center; }
.elu-glass { border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px rgba(8,10,35,.5); overflow: hidden; }
.elu-glass-head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.elu-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#34D399,#059669); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.elu-glass-name { font-size: 14px; font-weight: 700; }
.elu-glass-sub { font-size: 11.5px; color: #A5B4FC; }
.elu-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: rgba(53,56,205,.22); border: 1px solid rgba(129,140,248,.4); font-size: 11px; font-weight: 600; color: #C7D2FE; margin-left: auto; }
.elu-badge i { width: 6px; height: 6px; border-radius: 50%; background: #7B87F5; }
.elu-msgs { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.elu-b-in { align-self: flex-start; max-width: 82%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.12); font-size: 13px; line-height: 1.5; color: #EEF0FB; }
.elu-b-out { align-self: flex-end; max-width: 86%; padding: 10px 13px; border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg,#4653E8,#3538CD); font-size: 13px; line-height: 1.5; color: #fff; }
.elu-stats { display: flex; border-top: 1px solid rgba(255,255,255,.1); }
.elu-stat { flex: 1; padding: 13px 18px; }
.elu-stat + .elu-stat { border-left: 1px solid rgba(255,255,255,.1); }
.elu-stat-l { font-size: 11px; color: #9AA2CF; font-weight: 600; }
.elu-stat-v { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.elu-stat-v.g { color: #6EE7B7; }

.elu-msg-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.elu-bubble { position: absolute; opacity: 0; animation: elu-msg-cycle 16s cubic-bezier(.34,1.4,.5,1) infinite; }
.elu-bubble-card { background: #fff; border-radius: 16px 16px 16px 5px; padding: 12px 14px; box-shadow: 0 18px 44px rgba(2,8,35,.5); }
.elu-bubble-head { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.elu-wa { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #25D366; align-items: center; justify-content: center; }
.elu-bubble-time { font-size: 11px; font-weight: 600; color: #64748B; }
.elu-bubble-text { font-size: 13px; line-height: 1.45; color: #0F172A; font-weight: 500; }

.elu-social { position: relative; display: flex; align-items: center; gap: 14px; color: #9AA2CF; font-size: 13px; z-index: 2; }
.elu-social .a { display: flex; }
.elu-social .a span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #0A1040; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.elu-social .a span + span { margin-left: -10px; }

/* ---------- painel do formulário (reestilo do Chatwoot) ---------- */
.elu-panel > section, .elu-panel > form { width: 100% !important; max-width: 400px !important; margin: 0 auto !important; }

/* esconde o logo padrão do Chatwoot (o painel de marca já tem o nosso) */
.elu-panel > section img, .elu-panel > form img { display: none !important; }

.elu-panel h2, .elu-panel form > h1 {
  font-size: 28px !important; font-weight: 800 !important; letter-spacing: -.03em !important;
  color: #0F172A !important; text-align: left !important; margin: 0 0 8px !important;
}
#elu-subtitle { font-size: 15px; color: #64748B; margin: 0 0 12px; line-height: 1.5; text-align: left; }

.elu-panel > section.bg-white,
.elu-panel > section[class*="shadow"],
.elu-panel > form.bg-white,
.elu-panel > form[class*="shadow"] {
  background: transparent !important; box-shadow: none !important; border: none !important;
  margin-top: 0 !important; padding: 0 !important;
}

.elu-panel label { font-size: 13.5px !important; font-weight: 600 !important; color: #334155 !important; }
.elu-panel label a, .elu-panel form p a { font-size: 13px !important; font-weight: 600 !important; color: #3538CD !important; }
.elu-panel label a:hover, .elu-panel form p a:hover { color: #2B2FA8 !important; }

.elu-panel input[type="email"],
.elu-panel input[type="password"],
.elu-panel input[type="text"] {
  height: 48px !important; border-radius: 12px !important;
  background: #F8FAFC !important; border: 1.5px solid #E2E8F0 !important;
  font-size: 15px !important; color: #0F172A !important;
  transition: border-color .18s, box-shadow .18s, background .18s !important;
}
.elu-panel input:focus {
  border-color: #4653E8 !important; background: #fff !important;
  box-shadow: 0 0 0 4px rgba(53,56,205,.13) !important; outline: none !important;
}

.elu-panel button[type="submit"],
.elu-panel form button.w-full {
  height: 50px !important; border-radius: 12px !important;
  background: linear-gradient(135deg,#4653E8,#3538CD) !important;
  color: #fff !important; font-size: 15.5px !important; font-weight: 700 !important;
  box-shadow: 0 12px 26px rgba(43,47,168,.32) !important;
  transition: transform .15s, box-shadow .15s !important; border: none !important;
}
.elu-panel button[type="submit"]:hover,
.elu-panel form button.w-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(43,47,168,.4) !important;
}

#elu-below { margin-top: 26px; text-align: center; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
#elu-below .cta { font-size: 14px; color: #64748B; margin: 0; }
#elu-below .cta a { font-weight: 700; color: #3538CD; text-decoration: none; }
#elu-below .cta a:hover { color: #2B2FA8; }
#elu-below .trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; padding-top: 22px; border-top: 1px solid #F1F5F9; color: #94A3B8; font-size: 12.5px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .elu-fu { opacity: 1; animation: none; }
  .elu-bubble { opacity: .95; animation: none; }
  .elu-float-chip, .elu-glow-a { animation: none; }
}

.elu-panel form > p { font-size: 14px !important; color: #64748B !important; line-height: 1.55 !important; }
.elu-panel form > h1 { margin-bottom: 8px !important; }
