/* ===================================================
   ENVIDO — Login v3 · Full redesign 2026
   =================================================== */

@font-face {
  font-family: 'Cal Sans';
  src: url('https://envido.digital/webfonts/CalSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Host Grotesk';
  src: url('https://envido.digital/webfonts/HostGrotesk-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}


*, *::before, *::after { box-sizing: border-box; }
:root {
  --lime:    #b8ff00;
  --bg:      #070707;
  --text:    #f7f7f7;
  --muted:   rgba(247,247,247,.55);      /* [TICKET-119] era .38 → ratio ~5.1 (AA OK) */
  --font-body:    'Host Grotesk', system-ui, -apple-system, sans-serif;
  --font-display: 'Cal Sans', 'Host Grotesk', system-ui, sans-serif;
}

html, body {
  height: 100%; margin: 0; padding: 0;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
}

/* ── Body ─────────────────────────────────────────── */
.lv2-body {
  background:
    radial-gradient(1600px 900px at -5% -8%,   rgba(184,255,0,.12), transparent 55%),
    radial-gradient(1000px 700px at 108% 110%,  rgba(184,255,0,.07), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.lv2-body::before {
  content: ""; position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

/* ── Wrap: full-screen two-column ─────────────────── */
.lv2-wrap {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════
   LEFT PANEL
   ════════════════════════════════════════════════════ */
.lv2-left {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 52px;
}

/* Glows */
.lv2-glow {
  position: absolute; pointer-events: none; border-radius: 999px;
}
.lv2-glow--1 {
  width: 800px; height: 700px; top: -250px; left: -220px;
  background: radial-gradient(circle, rgba(184,255,0,.10), transparent 62%);
  animation: glowPulse 9s ease-in-out infinite;
}
.lv2-glow--2 {
  width: 500px; height: 500px; bottom: -100px; right: 0;
  background: radial-gradient(circle, rgba(184,255,0,.06), transparent 65%);
  animation: glowPulse 12s ease-in-out infinite reverse;
}
@keyframes glowPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.1); }
}

.lv2-grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

/* Top bar */
.lv2-left-top {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  animation: fadeUp .45s ease-out both;
}
.lv2-logo {
  height: 20px; width: auto; display: block;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.55));
}
.lv2-back {
  font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.35); text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
  transition: all .15s; white-space: nowrap;
}
.lv2-back:hover {
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.05);
}

/* ── Center: editorial + metric cards ── */
.lv2-center {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 36px 0;
}

/* Headline */
.lv2-headline { animation: fadeUp .55s ease-out .06s both; }
.lv2-headline-eyebrow {
  display: block; font-size: 9px; font-weight: 800;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(184,255,0,.58); margin-bottom: 14px;
}
.lv2-headline h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 950; letter-spacing: -.04em; line-height: .94;
  color: #fff; margin: 0 0 16px;
}
.lv2-headline h2 em {
  font-style: normal; color: var(--lime); display: block;
}
.lv2-headline p {
  font-size: 14px; color: rgba(255,255,255,.35);
  line-height: 1.65; margin: 0; max-width: 38ch;
}

/* ── Metric cards ── */
.lv2-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; max-width: 520px;
  animation: fadeUp .6s ease-out .14s both;
}
.lv2-mc {
  border-radius: 18px;
  background: rgba(255,255,255,.032);
  border: 1px solid rgba(255,255,255,.07);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 3px;
  backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s;
}
.lv2-mc:hover { border-color: rgba(184,255,0,.18); transform: translateY(-2px); }
.lv2-mc.wide  { grid-column: span 2; }

.lv2-mc-lbl {
  font-size: 9px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.25);
}
.lv2-mc-val {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 950;
  letter-spacing: -.04em; line-height: 1;
  color: #fff; margin: 4px 0 2px;
}
.lv2-mc-val.lime { color: var(--lime); }
.lv2-mc-foot {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,.28);
}
.lv2-mc-badge {
  font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(184,255,0,.10); border: 1px solid rgba(184,255,0,.2);
  color: var(--lime); white-space: nowrap;
}
.lv2-mc-badge.neg {
  background: rgba(255,80,80,.07); border-color: rgba(255,80,80,.18);
  color: rgba(255,120,120,.85);
}
.lv2-mc-spark {
  margin-top: 10px; height: 36px; border-radius: 8px; overflow: hidden;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.04);
}
.lv2-mc-spark svg { display: block; width: 100%; height: 100%; }

/* Bar chart row */
.lv2-bar-head {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 8px; margin-bottom: 12px;
}
.lv2-legend { display: flex; gap: 10px; }
.lv2-leg {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: rgba(255,255,255,.28); font-weight: 600;
}
.lv2-ldot { width: 5px; height: 5px; border-radius: 999px; background: var(--lime); }
.lv2-ldot.alt { background: rgba(255,255,255,.18); }
.lv2-bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.lv2-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  background: rgba(255,255,255,.08);
  animation: barRise .7s ease-out both; transform-origin: bottom;
}
.lv2-bar.on { background: rgba(184,255,0,.42); }

/* Bottom tagline */
.lv2-tagline {
  position: relative; z-index: 2;
  animation: fadeUp .6s ease-out .22s both;
}
.lv2-tagline p {
  font-size: 13px; color: rgba(255,255,255,.25);
  margin: 0 0 12px; line-height: 1.6; max-width: 34ch;
}
.lv2-dots { display: flex; gap: 5px; align-items: center; }
.lv2-dot {
  height: 3px; border-radius: 999px;
  background: rgba(255,255,255,.1); width: 20px;
  cursor: pointer;
  transition: background .3s, width .3s;
}
.lv2-dot:hover { background: rgba(255,255,255,.22); }
.lv2-dot.is-active { background: rgba(184,255,0,.6); width: 28px; }

/* Carousel headline transitions */
.lv2-headline h2,
.lv2-headline p {
  transition: opacity .32s ease, transform .32s ease;
}
.lv2-headline.is-fading h2,
.lv2-headline.is-fading p {
  opacity: 0;
  transform: translateY(6px);
}

/* Ilustrative data badge — marks decorative numbers */
.lv2-mc-ilustrativo {
  font-size: 9px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.18);
  margin-top: 10px; display: block;
}

/* ════════════════════════════════════════════════════
   RIGHT PANEL
   ════════════════════════════════════════════════════ */
.lv2-right {
  display: flex; align-items: center;
  padding: 52px 52px 52px 48px;
  border-left: 1px solid rgba(255,255,255,.055);
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.lv2-form-wrap {
  width: 100%;
  animation: fadeUp .5s ease-out .06s both;
}

/* Heading block */
.lv2-heading { margin-bottom: 38px; }
.lv2-heading-eyebrow {
  display: block; font-size: 9px; font-weight: 800;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(184,255,0,.55); margin: 0 0 12px;
}
.lv2-heading h1 {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 950;
  letter-spacing: -.055em; line-height: .88;
  color: #fff; margin: 0;
}
.lv2-heading h1 em { font-style: normal; color: var(--lime); }
.lv2-heading p {
  font-size: 14px; color: rgba(255,255,255,.30);
  margin: 14px 0 0; line-height: 1.55;
}

/* Alert */
.lv2-alert {
  margin-bottom: 24px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(255,80,80,.22);
  background: rgba(255,80,80,.06);
  font-size: 13px; color: rgba(255,155,155,.9);
  line-height: 1.45;
  display: flex; align-items: flex-start; gap: 9px;
}
.lv2-alert.ok {
  border-color: rgba(184,255,0,.2);
  background: rgba(184,255,0,.05);
  color: rgba(184,255,0,.85);
}
.lv2-alert-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

/* Field groups */
.lv2-field-group { margin-bottom: 16px; }
.lv2-label {
  display: block; font-size: 9px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.28); margin: 0 0 8px 2px;
}

/* Input field */
.lv2-field {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.lv2-field:focus-within {
  border-color: rgba(184,255,0,.32);
  box-shadow: 0 0 0 4px rgba(184,255,0,.07);
  background: rgba(255,255,255,.038);
}
.lv2-field-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  color: rgba(255,255,255,.22); stroke-width: 1.6;
  transition: color .2s;
}
.lv2-field:focus-within .lv2-field-icon { color: rgba(184,255,0,.62); }
.lv2-field input {
  flex: 1; border: 0; outline: none; background: transparent;
  color: var(--text); font-family: var(--font-body);
  font-size: 14px; font-weight: 400; min-width: 0;
}
.lv2-field input::placeholder { color: rgba(255,255,255,.18); }
.lv2-toggle {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 9px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.24); padding: 4px;
  white-space: nowrap; transition: color .15s;
}
.lv2-toggle:hover { color: rgba(255,255,255,.65); }

/* Primary CTA */
.lv2-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 24px;
  padding: 17px 20px; border-radius: 16px; border: 0; cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 950; letter-spacing: -.02em;
  color: #070707; background: var(--lime);
  box-shadow: 0 12px 40px rgba(184,255,0,.22), 0 0 0 1px rgba(184,255,0,.28);
  transition: transform .16s, filter .16s, box-shadow .16s;
}
.lv2-btn-primary:hover {
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.04);
  box-shadow: 0 20px 58px rgba(184,255,0,.30), 0 0 0 1px rgba(184,255,0,.35);
}
.lv2-btn-primary:active { transform: translateY(0); }

.lv2-btn-arrow {
  font-size: 19px; line-height: 1; margin-top: 1px;
  transition: transform .16s; display: inline-block;
}
.lv2-btn-primary:hover .lv2-btn-arrow { transform: translateX(3px); }

/* Ghost */
.lv2-btn-ghost {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 10px;
  padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  background: transparent; cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.38);
  transition: background .15s, border-color .15s, color .15s;
}
.lv2-btn-ghost:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
}

/* Note */
.lv2-note {
  margin-top: 24px; font-size: 11px;
  color: rgba(255,255,255,.18); line-height: 1.65; text-align: center;
}

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes barRise {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 920px) {
  .lv2-body { overflow: auto; }
  .lv2-wrap  { grid-template-columns: 1fr; min-height: auto; }
  /* H14: Form first on mobile — invert visual order */
  .lv2-right { order: -1; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.06); padding: 40px 28px 36px; }
  .lv2-left  {
    padding: 30px 28px 36px;
    border-bottom: none;
  }
  .lv2-metrics { max-width: none; }
  .lv2-heading h1 { font-size: 42px; }
}
@media (max-width: 520px) {
  .lv2-left, .lv2-right { padding: 24px 20px; }
  .lv2-metrics { grid-template-columns: 1fr; }
  .lv2-mc.wide { grid-column: span 1; }
  .lv2-headline h2 { font-size: 32px; }
  .lv2-heading h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
