/* ============================================================================
   VH Intelligence — shared auth screens (login + OTP).
   Split layout: left half = brand video, right half = themed form card.
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --accent: #69FF94; }

html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #07090c;
  color: #e7eaf0;
  overflow: hidden;            /* page never scrolls — content fits the viewport */
}

.auth-split { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }

/* ── Left: brand video ────────────────────────────────────────────────────── */
.auth-video {
  position: relative;
  flex: 1 1 auto;          /* grows to fill the space the form column doesn't use */
  min-width: 0;
  overflow: hidden;
  background: #05070a;
}
.auth-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Nudge the framing rightward so the logo sits toward the form side
     instead of hugging the far-left edge. Tune this % if needed. */
  object-position: 35% center;
}
/* Fade the video toward the form side so the split reads as one surface */
.auth-video::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,9,12,0.10) 0%, rgba(7,9,12,0.35) 55%, rgba(7,9,12,0.95) 100%);
}
.auth-video-overlay {
  position: absolute; z-index: 2;
  left: 52px; bottom: 52px; right: 52px;
}
.auth-video-overlay .vv-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: #fff;
}
.auth-video-overlay .vv-brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}
.auth-video-overlay .vv-brand .accent { color: var(--accent); }
.auth-video-overlay .vv-tag {
  margin-top: 14px; font-size: 15px; line-height: 1.5; color: #c8cedb; max-width: 360px;
}

/* ── Right: form panel ────────────────────────────────────────────────────── */
.auth-panel {
  position: relative;
  /* Only as wide as the card needs, so it hugs the video instead of
     floating in a big empty half. */
  flex: 0 0 clamp(420px, 34%, 560px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.auth-panel-aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 45% at 80% 20%, rgba(105,255,148,0.12), transparent 70%),
    radial-gradient(40% 45% at 60% 90%, rgba(56,189,248,0.10), transparent 70%);
  filter: blur(36px);
}

.card {
  position: relative; z-index: 2;
  width: 100%; max-width: 400px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;            /* only this card scrolls, and only on very short screens */
  padding: 32px 34px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: #fff;
  margin-bottom: 6px;
}
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}
.brand .accent { color: var(--accent); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(3%,-2%,0) scale(1.05); } }

h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin: 16px 0 6px; }
.sub { font-size: 14px; color: #9aa3b2; margin-bottom: 20px; line-height: 1.5; }
.sub strong { color: #e7eaf0; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: #c8cedb; margin-bottom: 7px; font-weight: 500; }
.field input {
  width: 100%; height: 46px; padding: 0 14px;
  border-radius: 11px; font-size: 14px; color: #fff;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  outline: none; transition: border-color 0.18s ease, background 0.18s ease;
}
.field input:focus { border-color: var(--accent); background: rgba(105,255,148,0.05); }

.err {
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5; font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-bottom: 18px;
}
.forgot { display: inline-block; font-size: 12.5px; color: #9aa3b2; text-decoration: none; margin-bottom: 22px; }
.forgot:hover { color: var(--accent); }

.submit {
  width: 100%; height: 48px; border: none; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #07090c;
  background: linear-gradient(100deg, #69FF94, #34d399);
  box-shadow: 0 10px 30px rgba(105,255,148,0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.submit:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(105,255,148,0.4); }

.foot { margin-top: 18px; text-align: center; font-size: 12px; color: #6b7280; }
.foot .pills { display: flex; gap: 6px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.foot .pill {
  font-size: 10.5px; color: #9aa3b2; padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
}

/* ── OTP cells ────────────────────────────────────────────────────────────── */
.otp-row { display: flex; gap: 10px; margin-bottom: 24px; }
.otp-row input {
  width: 100%; aspect-ratio: 1 / 1; max-height: 56px;
  text-align: center; font-size: 22px; font-weight: 700; color: #fff;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  outline: none; transition: border-color 0.15s ease, background 0.15s ease;
}
.otp-row input:focus { border-color: var(--accent); background: rgba(105,255,148,0.06); }

/* ── Responsive: drop the video, center the card ──────────────────────────── */
@media (max-width: 880px) {
  .auth-video { display: none; }
  .auth-panel { flex: 1 1 100%; }
}
