/* Login (design v1.2 "Split editorial").
   Message panel (always light, as designed) | sign-in panel (dark, network scene).
   ≥1024 px: two columns 55fr / 45fr.  <1024: stacked.  <640: the message panel
   keeps only the logo, the headline and one cycling fact. */
body.hv-bare { background: #0F0C29; }

.lg { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 55fr 45fr; }
@media (max-width: 1023.98px) { .lg { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } }

/* ── Message panel ─────────────────────────────────────────────────────── */
.lg-msg {
  position: relative; overflow: hidden; background: #F6F7FB; color: #16181D;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 56px 64px;
}
.lg-msg__glow { position: absolute; aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
.lg-msg__glow--indigo { right: -20%; bottom: -30%; width: 70%; background: radial-gradient(circle, rgba(102,126,234,.18), rgba(102,126,234,0) 65%); }
.lg-msg__glow--orange { left: -10%; top: -20%; width: 45%; background: radial-gradient(circle, rgba(247,147,30,.14), rgba(247,147,30,0) 65%); }

.lg-brand {
  position: relative; display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  background: #fff; border: 1px solid #E6E8EF; border-radius: 16px; padding: 12px 20px; gap: 16px;
  box-shadow: 0 1px 2px rgba(22,24,29,.05); animation: hv-rise .5s var(--hv-ease) both;
}
/* Already on the white tile.  56 px tall: at the shared 34 px "Hero" was ~7 px high and its H blurred. */
.lg-brand .hv-logo { --logo-h: 56px; padding: 0; background: none; box-shadow: none !important; }
.lg-brand__label { font: 400 13px var(--hv-font-sans); color: #6B7080; border-left: 1px solid #E6E8EF; padding-left: 16px; }

.lg-msg__body { position: relative; display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.lg-msg__h1 {
  color: #16181D; margin: 0; font: 700 clamp(34px, 5vw, 64px)/1.02 var(--hv-font-display);
  letter-spacing: -.03em; text-wrap: balance; animation: hv-rise .6s var(--hv-ease) .1s both;
}
.lg-msg__sub { margin: 0; font: 400 17px/1.55 var(--hv-font-sans); color: #5F6473; animation: hv-rise .6s var(--hv-ease) .2s both; }

/* Three facts, one at a time: each shows for ~4 s of a 12 s loop. */
@keyframes lg-stat {
  0%, 28% { opacity: 1; transform: none; }
  33%, 95% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: none; }
}
.lg-stats { position: relative; height: 72px; list-style: none; margin: 0; padding: 0; animation: hv-rise .6s var(--hv-ease) .3s both; }
.lg-stat { position: absolute; inset: 0; display: flex; align-items: center; gap: 16px; opacity: 0; }
.lg-stat:first-child { opacity: 1; }
.lg-stats:has(> .lg-stat:nth-child(3)) .lg-stat { animation: lg-stat 12s var(--hv-ease) infinite; animation-delay: calc(var(--i) * 4s); }
@media (prefers-reduced-motion: reduce) {
  .lg-stats .lg-stat { animation: none !important; }
  .lg-stats .lg-stat:not(:first-child) { display: none; }
}
.lg-stat__value { font: 700 clamp(30px, 3.2vw, 44px)/1 var(--hv-font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; flex: none; }
.lg-stat--indigo .lg-stat__value { color: #5547E0; }
.lg-stat--teal .lg-stat__value { color: #0E9F8E; }
.lg-stat--orange .lg-stat__value { color: #F0862E; }
.lg-stat__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lg-stat__label { font: 600 14px var(--hv-font-sans); color: #16181D; }
.lg-stat__meta { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/1.4 var(--hv-font-sans); color: #6B7080; }
.lg-stat__dot { width: 6px; height: 6px; border-radius: 50%; background: #15803D; flex: none; }

.lg-msg__foot { position: relative; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; font: 400 12px var(--hv-font-sans); color: #8A8FA0; }

/* ── Sign-in panel ─────────────────────────────────────────────────────── */
.lg-in {
  position: relative; overflow: hidden; background: var(--hv-gradient-dark); color: #fff;
  display: grid; place-items: center; padding: 48px;
}
.lg-in__scene { position: absolute; inset: 0; display: block; }
.lg-in__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(15,12,41,0) 35%, rgba(15,12,41,.6) 80%); }
.lg-in__col { position: relative; z-index: 2; width: min(100%, 360px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.lg-in__titles { display: flex; flex-direction: column; gap: 6px; animation: hv-rise .6s var(--hv-ease) .4s both; }
.lg-in__h2 { color: #fff; margin: 0; font: 700 26px/1.1 var(--hv-font-display); letter-spacing: -.02em; }
.lg-in__sub { margin: 0; font: 400 13px/1.5 var(--hv-font-sans); color: rgba(255,255,255,.7); }
.lg-in__actions { width: 100%; display: flex; flex-direction: column; gap: 12px; animation: hv-rise .6s var(--hv-ease) .55s both; }

.lg__google {
  height: 52px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: #fff; color: #16181D !important;
  font: 600 15px var(--hv-font-sans); text-decoration: none !important; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .15s var(--hv-ease), box-shadow .15s var(--hv-ease);
}
.lg__google:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0,0,0,.45); }
.lg__google:active { transform: scale(.98); }
.lg__google:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(199,194,245,.7), 0 10px 30px rgba(0,0,0,.35); }
.lg__spin { display: none; color: #5547E0; animation: hv-spin 1s linear infinite; }
.lg__google[aria-busy="true"] { cursor: progress; }
.lg__google[aria-busy="true"] .lg__spin { display: inline-block; }
.lg__note { font: 400 12px var(--hv-font-sans); color: rgba(255,255,255,.55); }
.lg__note strong { color: rgba(255,255,255,.85); font-weight: 600; }
.lg__error {
  width: 100%; box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 14px 16px; border-radius: 12px; background: rgba(185,28,28,.18); border: 1px solid rgba(248,113,113,.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: hv-scale-in .25s var(--hv-ease) both;
}
.lg__error > i { color: #FCA5A5; margin-top: 2px; }
.lg__error-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lg__error-title { font: 600 13px var(--hv-font-sans); }
.lg__error-body { font: 400 12px/1.5 var(--hv-font-sans); color: rgba(255,255,255,.78); }
.lg__error-action { align-self: flex-start; margin-top: 4px; color: #C7C2F5 !important; font: 600 12px var(--hv-font-sans); text-decoration: none; }
.lg__error-action:hover { color: #fff !important; text-decoration: underline; }

/* ── Smaller screens ───────────────────────────────────────────────────── */
@media (max-width: 1023.98px) {
  .lg-msg { padding: 40px 40px 36px; }
  .lg-in { min-height: 440px; }
}
@media (max-width: 639.98px) {
  .lg-msg { padding: 24px 20px 22px; gap: 14px; }
  .lg-msg__body { gap: 14px; }
  .lg-msg__sub, .lg-msg__foot, .lg-brand__label { display: none; }
  .lg-brand { padding: 10px 14px; }
  .lg-brand .hv-logo { --logo-h: 44px; }
  .lg-stats { height: 76px; }
  .lg-in { padding: 32px 20px 48px; min-height: 400px; }
}
