/*
 * HH Neon Gateway
 * Final presentation and resilience layer for the authentication experience.
 * It intentionally stays unlayered so late-loaded decorative modules cannot
 * move the real brand and authentication card out of the viewport.
 */

body.home-neon.auth-locked {
  overflow: hidden;
  background: #050713;
}

body.home-neon.auth-unlocked > :where(
  main#top,
  .scroll-meter,
  .ambient-canvas,
  .neon-grid-bg,
  .cursor-glow,
  .site-header,
  section#music,
  .neon-footer
) {
  display: none !important;
}

body.home-neon.auth-locked #authGate {
  --gateway-bg: #050713;
  --gateway-panel: rgba(12, 17, 32, .78);
  --gateway-cyan: #55e6ff;
  --gateway-pink: #ff4fd8;
  --gateway-violet: #8b5cf6;
  --gateway-lime: #b8ff65;
  --gateway-amber: #ffd166;
  --gateway-pointer-x: 50vw;
  --gateway-pointer-y: 46vh;
  isolation: isolate;
  display: flex !important;
  flex-direction: column;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-flow: row;
  align-items: start !important;
  gap: clamp(26px, 4vw, 68px) !important;
  width: 100%;
  height: 100dvh;
  padding: 24px max(24px, calc((100vw - 1540px) / 2)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  color: #f7f8ff;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 79, 216, .2), transparent 34%),
    radial-gradient(circle at 94% 6%, rgba(85, 230, 255, .17), transparent 34%),
    radial-gradient(circle at 64% 108%, rgba(139, 92, 246, .12), transparent 35%),
    linear-gradient(135deg, #090512 0%, #050713 48%, #04151c 100%) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 230, 255, .35) transparent;
}

/*
 * A single column is the safe first paint. The split gateway is enabled only
 * when the viewport is genuinely wide enough, so zoom cannot push the login
 * card outside the visible screen.
 */
@media (min-width: 1101px) {
  body.home-neon.auth-locked #authGate {
    display: grid !important;
    grid-template-columns: minmax(0, 58fr) minmax(430px, 42fr) !important;
  }
}

body.home-neon.auth-locked #authGate[data-auth-viewport-mode="single"] {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start !important;
  align-items: stretch !important;
  gap: 18px !important;
  padding: 16px !important;
}

body.home-neon.auth-locked #authGate[data-auth-viewport-mode="single"] .auth-gate-card {
  flex: 0 0 auto !important;
  order: 1;
  align-self: center;
  justify-self: center;
  width: min(100%, 650px) !important;
  max-height: none !important;
}

body.home-neon.auth-locked #authGate[data-auth-viewport-mode="single"] .auth-gate-brand {
  flex: 0 0 auto !important;
  order: 2;
  align-self: center;
  justify-self: center;
  width: min(100%, 760px);
}

/*
 * auth-experience.css defines its original grid inside the `pages` cascade
 * layer. Important layered declarations outrank unlayered important rules, so
 * mirror the viewport contract in that same layer to make the fix deterministic.
 */
@layer pages {
  body.home-neon.auth-locked #authGate {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  @media (min-width: 1101px) {
    body.home-neon.auth-locked #authGate {
      display: grid !important;
      grid-template-columns: minmax(0, 58fr) minmax(430px, 42fr) !important;
    }
  }

  body.home-neon.auth-locked #authGate[data-auth-viewport-mode="single"] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Decorative runtimes are always a visual layer, never a grid item. */
body.home-neon.auth-locked #authGate > [aria-hidden="true"],
body.home-neon.auth-locked #authGate > .auth-emotional-live {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.home-neon.auth-locked #authGate > :where(.hh-identity-constellation, .auth-living-background, .auth-spatial-aurora, .auth-motion-field, .auth-spectrum) {
  display: none !important;
}

body.home-neon.auth-locked #authGate .auth-gate-brand,
body.home-neon.auth-locked #authGate .auth-gate-card {
  grid-row: 1 !important;
  inset: auto !important;
  z-index: 10 !important;
  margin: 0 !important;
}

body.home-neon.auth-locked #authGate .auth-gate-brand {
  grid-column: 1;
  align-content: start !important;
  gap: 15px !important;
  width: min(100%, 780px);
  max-width: none !important;
  padding: 10px 0 22px;
}

body.home-neon.auth-locked #authGate .auth-gate-card {
  grid-column: 2;
  justify-self: stretch;
  gap: 11px !important;
  width: 100% !important;
  max-width: 640px !important;
  max-height: calc(100dvh - 48px) !important;
  padding: 20px 22px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 1px solid transparent !important;
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(18, 23, 42, .94), rgba(7, 12, 24, .9)) padding-box,
    linear-gradient(125deg, var(--gateway-cyan), var(--gateway-violet) 28%, var(--gateway-pink) 55%, var(--gateway-amber) 76%, var(--gateway-lime)) border-box !important;
  background-size: auto, 260% 260% !important;
  box-shadow:
    0 42px 110px rgba(0, 0, 0, .58),
    -24px 14px 70px rgba(255, 79, 216, .12),
    24px -18px 68px rgba(85, 230, 255, .1),
    inset 0 1px rgba(255, 255, 255, .08) !important;
  backdrop-filter: blur(24px) saturate(145%);
  transform:
    perspective(1400px)
    rotateX(var(--gateway-card-x, 0deg))
    rotateY(var(--gateway-card-y, 0deg));
  transform-origin: center;
  animation:
    gateway-card-arrive 1.08s cubic-bezier(.16, 1, .3, 1) both,
    gateway-border-flow 9s 1.1s ease infinite !important;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 230, 255, .34) transparent;
}

body.home-neon.auth-locked #authGate .auth-gate-card::before {
  inset: 0 7% auto !important;
  z-index: 2;
  width: auto !important;
  height: 2px !important;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gateway-cyan), var(--gateway-violet), var(--gateway-pink), var(--gateway-lime), transparent) !important;
  background-size: 220% 100% !important;
  box-shadow: 0 0 20px rgba(85, 230, 255, .42);
  animation: gateway-border-tracer 4.2s linear infinite !important;
  pointer-events: none;
}

body.home-neon.auth-locked #authGate .auth-gate-card::after {
  position: absolute;
  inset: 1px !important;
  z-index: 0;
  width: auto;
  height: auto !important;
  border-radius: 23px;
  background:
    radial-gradient(420px circle at var(--gateway-card-spot-x, 50%) var(--gateway-card-spot-y, 0%), rgba(85, 230, 255, .1), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 26%) !important;
  content: "";
  pointer-events: none;
}

body.home-neon.auth-locked #authGate .auth-gate-card > * {
  position: relative;
  z-index: 1;
}

/* Controlled rich background: aurora, depth grid, portal and slow particles. */
body.home-neon.auth-locked #authGate .auth-gateway-scene {
  z-index: 1 !important;
  opacity: 1;
  perspective: 900px;
  transition: opacity .45s ease;
}

.auth-gateway-aurora {
  position: absolute;
  display: block;
  width: min(68vw, 980px);
  aspect-ratio: 1.4;
  border-radius: 50%;
  filter: blur(28px);
  opacity: .22;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.auth-gateway-aurora--pink {
  top: -25%;
  left: -18%;
  background: radial-gradient(ellipse, rgba(255, 79, 216, .9), rgba(139, 92, 246, .2) 48%, transparent 72%);
  animation: gateway-aurora-pink 17s ease-in-out infinite alternate;
}

.auth-gateway-aurora--cyan {
  top: -18%;
  right: -22%;
  background: radial-gradient(ellipse, rgba(85, 230, 255, .78), rgba(34, 211, 238, .16) 50%, transparent 72%);
  animation: gateway-aurora-cyan 19s ease-in-out infinite alternate;
}

.auth-gateway-aurora--lime {
  right: 12%;
  bottom: -45%;
  width: min(50vw, 720px);
  background: radial-gradient(ellipse, rgba(184, 255, 101, .42), rgba(255, 209, 102, .13) 48%, transparent 72%);
  animation: gateway-aurora-lime 21s ease-in-out infinite alternate;
}

.auth-gateway-grid {
  position: absolute;
  inset: -24%;
  display: block;
  opacity: .2;
  background-image:
    linear-gradient(rgba(85, 230, 255, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 79, 216, .16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 42% 38%, #000 0 28%, transparent 74%);
  transform: rotateX(64deg) translateY(25%) translateZ(-120px);
  transform-origin: center;
  animation: gateway-grid-drift 20s linear infinite;
}

.auth-gateway-scene::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(470px circle at var(--gateway-pointer-x) var(--gateway-pointer-y), rgba(85, 230, 255, .11), transparent 45%),
    radial-gradient(260px circle at var(--gateway-pointer-x) var(--gateway-pointer-y), rgba(255, 79, 216, .065), transparent 55%);
  content: "";
  opacity: var(--gateway-spot-opacity, .8);
  transition: opacity .35s ease;
}

.auth-gateway-stars {
  position: absolute;
  inset: 0;
  display: block;
}

.auth-gateway-stars i {
  --star-size: 3px;
  position: absolute;
  width: var(--star-size);
  height: var(--star-size);
  border-radius: 50%;
  background: var(--gateway-cyan);
  box-shadow: 0 0 10px currentColor;
  color: var(--gateway-cyan);
  animation: gateway-star-drift 8s ease-in-out infinite alternate;
}

.auth-gateway-stars i:nth-child(1) { top: 9%; left: 11%; --star-size: 4px; color: var(--gateway-pink); animation-delay: -1s; }
.auth-gateway-stars i:nth-child(2) { top: 17%; left: 47%; animation-delay: -5s; }
.auth-gateway-stars i:nth-child(3) { top: 25%; right: 8%; --star-size: 5px; color: var(--gateway-lime); animation-delay: -2s; }
.auth-gateway-stars i:nth-child(4) { top: 41%; left: 7%; color: var(--gateway-amber); animation-delay: -6s; }
.auth-gateway-stars i:nth-child(5) { top: 49%; left: 55%; --star-size: 2px; animation-delay: -3s; }
.auth-gateway-stars i:nth-child(6) { top: 61%; right: 11%; color: var(--gateway-pink); animation-delay: -7s; }
.auth-gateway-stars i:nth-child(7) { top: 72%; left: 16%; --star-size: 5px; color: var(--gateway-violet); animation-delay: -4s; }
.auth-gateway-stars i:nth-child(8) { top: 82%; left: 43%; color: var(--gateway-lime); animation-delay: -8s; }
.auth-gateway-stars i:nth-child(9) { top: 89%; right: 8%; --star-size: 4px; animation-delay: -2.5s; }
.auth-gateway-stars i:nth-child(10) { top: 33%; left: 29%; --star-size: 2px; color: var(--gateway-pink); animation-delay: -1.5s; }
.auth-gateway-stars i:nth-child(11) { top: 12%; right: 31%; --star-size: 2px; color: var(--gateway-amber); animation-delay: -4.5s; }
.auth-gateway-stars i:nth-child(12) { bottom: 8%; left: 67%; --star-size: 3px; color: var(--gateway-cyan); animation-delay: -6.5s; }

/* Motion control remains reachable without becoming part of the layout. */
body.home-neon.auth-locked #authGate > .auth-motion-toggle {
  position: fixed !important;
  right: 18px !important;
  bottom: 16px !important;
  z-index: 40 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(85, 230, 255, .26);
  border-radius: 999px;
  background: rgba(5, 10, 20, .82);
  color: #aab7c9;
  font: 700 10px/1 "Be Vietnam Pro", system-ui, sans-serif;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.auth-motion-toggle i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gateway-lime);
  box-shadow: 0 0 12px var(--gateway-lime);
}

.auth-motion-toggle:hover,
.auth-motion-toggle:focus-visible {
  border-color: rgba(85, 230, 255, .72);
  color: #fff;
  outline: none;
}

/* Brand identity and product carousel. */
body.home-neon.auth-locked #authGate .auth-brand-lockup .brand-mark {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(85, 230, 255, .56);
  border-radius: 18px;
  background: rgba(5, 7, 19, .78);
  box-shadow:
    -10px 12px 34px rgba(255, 79, 216, .24),
    10px -8px 32px rgba(85, 230, 255, .2),
    0 0 0 5px rgba(255, 255, 255, .025);
  transform:
    perspective(700px)
    rotateX(var(--gateway-logo-x, 0deg))
    rotateY(var(--gateway-logo-y, 0deg));
  transition: transform .25s ease, box-shadow .3s ease;
  animation: gateway-logo-bloom 5.8s ease-in-out infinite;
}

body.home-neon.auth-locked #authGate .auth-brand-lockup .brand-mark::before {
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 64%);
  content: "";
  transform: translateX(-70%) rotate(14deg);
  animation: gateway-logo-shine 5.5s 1.4s ease-in-out infinite;
}

body.home-neon.auth-locked #authGate .auth-gate-brand h1 {
  max-width: 760px;
  font-size: clamp(44px, 4.1vw, 68px) !important;
  line-height: .98 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(0, 0, 0, .46);
  animation: gateway-copy-arrive .9s .12s cubic-bezier(.16, 1, .3, 1) both !important;
}

body.home-neon.auth-locked #authGate .auth-gate-brand h1 > span {
  background: linear-gradient(92deg, var(--gateway-amber), #ff9ba8 28%, var(--gateway-pink) 62%, #fff 93%);
  background-clip: text;
  color: transparent !important;
  text-shadow: none !important;
}

body.home-neon.auth-locked #authGate .auth-gate-brand > p:not(.section-kicker) {
  max-width: 680px;
  color: #aeb8ca;
  font-size: 15px;
  line-height: 1.65;
  animation: gateway-copy-arrive .9s .22s cubic-bezier(.16, 1, .3, 1) both !important;
}

body.home-neon.auth-locked #authGate .auth-feature-showcase {
  width: 100%;
  max-width: 760px;
  border: 1px solid rgba(139, 92, 246, .25);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(14, 20, 37, .76), rgba(7, 11, 22, .6));
  box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 18px 50px rgba(0, 0, 0, .2);
  backdrop-filter: blur(14px);
}

body.home-neon.auth-locked #authGate .auth-feature-switcher {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.home-neon.auth-locked #authGate .auth-feature-switcher button {
  min-height: 58px;
  border-radius: 12px;
  scroll-snap-align: center;
}

body.home-neon.auth-locked #authGate .auth-feature-switcher button:nth-child(1) { --feature-color: var(--gateway-cyan); }
body.home-neon.auth-locked #authGate .auth-feature-switcher button:nth-child(2) { --feature-color: var(--gateway-pink); }
body.home-neon.auth-locked #authGate .auth-feature-switcher button:nth-child(3) { --feature-color: var(--gateway-lime); }
body.home-neon.auth-locked #authGate .auth-feature-switcher button:nth-child(4) { --feature-color: var(--gateway-amber); }

body.home-neon.auth-locked #authGate .auth-product-preview {
  width: 100%;
  max-width: 760px;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 0 50px rgba(139, 92, 246, .08);
  transform:
    perspective(1200px)
    rotateX(var(--auth-preview-y, 0deg))
    rotateY(var(--auth-preview-x, 0deg))
    translate3d(calc(var(--gateway-parallax-x, 0px) * .14), calc(var(--gateway-parallax-y, 0px) * .12), 0);
}

body.home-neon.auth-locked #authGate .auth-preview-grid {
  grid-template-columns: 142px minmax(0, 1fr);
}

body.home-neon.auth-locked #authGate .auth-preview-nav span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border-radius: 8px;
}

body.home-neon.auth-locked #authGate .auth-preview-nav span i {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(85, 230, 255, .2);
  border-radius: 7px;
  color: var(--gateway-cyan);
  font-size: 7px;
  font-style: normal;
}

/* The form is calm, readable and state driven even when the scene is rich. */
body.home-neon.auth-locked #authGate .auth-card-heading {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  min-height: 54px;
}

body.home-neon.auth-locked #authGate .auth-card-heading > span {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(85, 230, 255, .12), -8px 8px 24px rgba(255, 79, 216, .16);
}

body.home-neon.auth-locked #authGate .auth-card-heading strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

body.home-neon.auth-locked #authGate .auth-secure-badge {
  border-radius: 999px;
}

body.home-neon.auth-locked #authGate .auth-gate-status {
  min-height: 38px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(85, 230, 255, .075), rgba(184, 255, 101, .04));
}

body.home-neon.auth-locked #authGate .auth-mode-tabs {
  border-radius: 13px;
  background: rgba(5, 9, 18, .72);
}

body.home-neon.auth-locked #authGate .auth-mode-tabs button {
  border-radius: 10px;
}

body.home-neon.auth-locked #authGate .auth-mode-tabs button.active {
  background: linear-gradient(135deg, rgba(85, 230, 255, .13), rgba(139, 92, 246, .14));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(85, 230, 255, .13);
}

body.home-neon.auth-locked #authGate .auth-provider,
body.home-neon.auth-locked #authGate .auth-input-shell,
body.home-neon.auth-locked #authGate .auth-passkey-row > button,
body.home-neon.auth-locked #authGate .auth-guest-row > button {
  border-radius: 13px;
}

body.home-neon.auth-locked #authGate .auth-provider--google {
  min-height: 52px;
  border-color: rgba(255, 255, 255, .13);
  background: linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(85, 230, 255, .045));
}

body.home-neon.auth-locked #authGate .auth-provider--google:hover,
body.home-neon.auth-locked #authGate .auth-provider--google:focus-visible {
  border-color: rgba(85, 230, 255, .5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22), 0 0 24px rgba(85, 230, 255, .09);
  transform: translateY(-2px);
}

body.home-neon.auth-locked #authGate .auth-input-shell {
  position: relative;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(4, 8, 17, .72);
  transition: border-color .2s ease, box-shadow .25s ease, background .2s ease, transform .2s ease;
}

body.home-neon.auth-locked #authGate .auth-field:focus-within .auth-input-shell {
  border-color: rgba(85, 230, 255, .7);
  background: rgba(7, 14, 26, .9);
  box-shadow: 0 0 0 3px rgba(85, 230, 255, .085), 0 0 24px rgba(139, 92, 246, .11);
  transform: translateY(-1px);
}

body.home-neon.auth-locked #authGate .auth-field.is-invalid .auth-input-shell {
  border-color: rgba(255, 104, 143, .72);
  animation: gateway-field-nudge .28s ease;
}

body.home-neon.auth-locked #authGate .auth-field.is-valid .auth-input-shell {
  border-color: rgba(184, 255, 101, .34);
}

body.home-neon.auth-locked #authGate .auth-submit {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(105deg, #62e9ff, #9b7cff 38%, #ff5fd7 68%, #c7ff75);
  background-size: 220% 100%;
  color: #07101a;
  box-shadow: 0 14px 38px rgba(139, 92, 246, .22), 0 0 24px rgba(85, 230, 255, .12);
  animation: gateway-button-flow 6s ease infinite;
}

body.home-neon.auth-locked #authGate .auth-submit:hover,
body.home-neon.auth-locked #authGate .auth-submit:focus-visible {
  box-shadow: 0 18px 46px rgba(139, 92, 246, .3), 0 0 30px rgba(85, 230, 255, .2);
  transform: translateY(-2px);
}

body.home-neon.auth-locked #authGate .auth-passkey-row > button:hover,
body.home-neon.auth-locked #authGate .auth-guest-row > button:hover {
  border-color: rgba(85, 230, 255, .42);
  background: linear-gradient(135deg, rgba(85, 230, 255, .08), rgba(139, 92, 246, .08));
  transform: translateY(-1px);
}

/* Authentication state machine. */
body.home-neon.auth-locked #authGate .auth-gate-card[data-auth-state="typing"] {
  box-shadow:
    0 42px 110px rgba(0, 0, 0, .58),
    -20px 18px 72px rgba(255, 79, 216, .17),
    22px -16px 74px rgba(85, 230, 255, .15) !important;
}

body.home-neon.auth-locked #authGate .auth-gate-card[data-auth-state="validating"] {
  cursor: progress;
}

body.home-neon.auth-locked #authGate .auth-gate-card[data-auth-state="validating"]::before {
  height: 3px !important;
  animation-duration: 1.2s !important;
}

body.home-neon.auth-locked #authGate .auth-gate-card[data-auth-state="error"] {
  box-shadow: 0 34px 92px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 104, 143, .48), 0 0 42px rgba(255, 104, 143, .12) !important;
}

body.home-neon.auth-locked #authGate .auth-gate-card[data-auth-state="success"] {
  border-color: rgba(184, 255, 101, .65) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .48), 0 0 0 1px rgba(184, 255, 101, .24) !important;
  animation: none !important;
}

body.home-neon.auth-locked #authGate.is-gateway-opening .auth-gate-brand,
body.home-neon.auth-locked #authGate.is-gateway-opening .auth-gate-card {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Consent stays out of the form's way on desktop. */
body.home-neon.auth-locked > aside.hh-consent-banner[data-privacy-banner]:not([hidden]) {
  right: auto !important;
  bottom: 14px !important;
  left: 14px !important;
  z-index: 90;
  width: min(410px, calc(100vw - 28px)) !important;
  border-color: rgba(85, 230, 255, .22);
  border-radius: 16px;
  background: rgba(7, 12, 23, .92);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .48);
  backdrop-filter: blur(18px);
}

/* Low viewport: preserve the full form, compact only the marketing column. */
@media (min-width: 1101px) and (max-height: 840px) {
  body.home-neon.auth-locked #authGate {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  body.home-neon.auth-locked #authGate .auth-gate-brand {
    gap: 9px !important;
    padding-top: 2px;
  }

  body.home-neon.auth-locked #authGate .auth-gate-brand > p:not(.section-kicker),
  body.home-neon.auth-locked #authGate .auth-benefits,
  body.home-neon.auth-locked #authGate .auth-tool-stream {
    display: none !important;
  }

  body.home-neon.auth-locked #authGate .auth-gate-brand h1 {
    font-size: clamp(38px, 3.5vw, 52px) !important;
  }

  body.home-neon.auth-locked #authGate .auth-feature-switcher button {
    min-height: 50px;
  }

  body.home-neon.auth-locked #authGate .auth-preview-grid {
    min-height: 224px;
  }

  body.home-neon.auth-locked #authGate .auth-gate-card {
    max-height: calc(100dvh - 36px) !important;
    padding: 17px 19px !important;
  }
}

@media (max-width: 1100px) {
  body.home-neon.auth-locked #authGate {
    display: flex !important;
    flex-direction: column;
    gap: 18px !important;
    padding: 16px !important;
  }

  body.home-neon.auth-locked #authGate .auth-gate-card {
    order: 1;
    align-self: center;
    width: min(100%, 650px) !important;
    max-height: none !important;
  }

  body.home-neon.auth-locked #authGate .auth-gate-brand {
    order: 2;
    align-self: center;
    width: min(100%, 760px);
  }

  body.home-neon.auth-locked #authGate .auth-feature-switcher {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
}

@media (max-width: 760px) {
  body.home-neon.auth-locked #authGate {
    box-sizing: border-box;
    padding: 8px !important;
  }

  body.home-neon.auth-locked #authGate .auth-gate-card {
    display: grid !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 14px 12px 16px !important;
    border-radius: 18px !important;
  }

  body.home-neon.auth-locked #authGate :where(
    .auth-card-heading,
    .auth-gate-status,
    .auth-mode-tabs,
    .auth-provider,
    .auth-gate-forms,
    .auth-gate-forms form,
    .auth-field,
    .auth-input-shell,
    .auth-form-options,
    .auth-passkey-row,
    .auth-guest-row,
    .auth-privacy-panel
  ) {
    box-sizing: border-box;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.home-neon.auth-locked #authGate .auth-mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home-neon.auth-locked #authGate .auth-mode-tabs button,
  body.home-neon.auth-locked #authGate .auth-provider,
  body.home-neon.auth-locked #authGate .auth-input-shell,
  body.home-neon.auth-locked #authGate .auth-submit,
  body.home-neon.auth-locked #authGate .auth-guest-row > button {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.home-neon.auth-locked #authGate .auth-form-options {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  body.home-neon.auth-locked #authGate .auth-guest-row > button {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  body.home-neon.auth-locked #authGate .auth-guest-row > button > strong {
    display: none;
  }

  body.home-neon.auth-locked #authGate .auth-gate-brand {
    display: grid !important;
    gap: 10px !important;
    padding: 8px 2px 80px;
  }

  body.home-neon.auth-locked #authGate .auth-gate-brand > :where(h1, p, .auth-benefits, .auth-product-preview, .auth-tool-stream) {
    display: none !important;
  }

  body.home-neon.auth-locked #authGate .auth-brand-lockup {
    justify-content: center;
  }

  body.home-neon.auth-locked #authGate .auth-feature-showcase {
    display: block !important;
    width: 100%;
    padding: 7px;
  }

  body.home-neon.auth-locked #authGate .auth-feature-showcase > header {
    display: flex !important;
  }

  body.home-neon.auth-locked #authGate .auth-feature-switcher {
    display: grid !important;
    grid-template-columns: repeat(4, 174px) !important;
  }

  body.home-neon.auth-locked #authGate .auth-feature-switcher button {
    min-height: 58px;
  }

  body.home-neon.auth-locked #authGate .auth-feature-switcher button small {
    display: block;
  }

  body.home-neon.auth-locked #authGate .auth-card-heading {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  body.home-neon.auth-locked #authGate .auth-card-heading > span {
    width: 44px;
    height: 44px;
  }

  body.home-neon.auth-locked #authGate .auth-secure-badge {
    display: none;
  }

  body.home-neon.auth-locked #authGate > .auth-motion-toggle {
    right: 10px !important;
    bottom: 10px !important;
  }

  body.home-neon.auth-locked > aside.hh-consent-banner[data-privacy-banner]:not([hidden]) {
    right: 8px !important;
    bottom: 54px !important;
    left: 8px !important;
    width: auto !important;
    max-height: 42dvh;
    overflow: auto;
  }
}

@media (max-width: 420px) {
  body.home-neon.auth-locked #authGate .auth-card-heading p,
  body.home-neon.auth-locked #authGate .auth-divider,
  body.home-neon.auth-locked #authGate .auth-trust-row {
    display: none;
  }

  body.home-neon.auth-locked #authGate .auth-card-heading strong {
    font-size: 15px;
  }
}

/* User preference and automatic performance fallback. */
body.home-neon.auth-locked #authGate[data-motion-level="soft"] > :where(.hh-identity-constellation, .auth-living-background, .auth-spatial-aurora) {
  opacity: .2;
}

body.home-neon.auth-locked #authGate[data-motion-level="soft"] .auth-gateway-scene {
  opacity: .56;
}

body.home-neon.auth-locked #authGate[data-motion-level="soft"] :where(.auth-gateway-grid, .auth-gateway-stars i) {
  animation-duration: 30s !important;
}

html.hh-page-hidden body.home-neon.auth-locked #authGate :where(
  .auth-gateway-aurora,
  .auth-gateway-grid,
  .auth-gateway-stars i,
  .auth-gate-card,
  .auth-submit
) {
  animation-play-state: paused !important;
}

html.hh-page-hidden body.home-neon.auth-locked #authGate .auth-gate-card::before {
  animation-play-state: paused !important;
}

body.home-neon.auth-locked #authGate[data-motion-level="off"] > :where(.hh-identity-constellation, .auth-living-background, .auth-spatial-aurora, .auth-gateway-scene, .auth-motion-field, .auth-spectrum) {
  display: none !important;
}

body.home-neon.auth-locked #authGate[data-motion-level="off"] *,
body.home-neon.auth-locked #authGate[data-motion-level="off"] *::before,
body.home-neon.auth-locked #authGate[data-motion-level="off"] *::after {
  scroll-behavior: auto !important;
  animation: none !important;
  transition-duration: .01ms !important;
}

@media (prefers-reduced-motion: reduce) {
  body.home-neon.auth-locked #authGate {
    scroll-behavior: auto;
  }

  body.home-neon.auth-locked #authGate > :where(.hh-identity-constellation, .auth-living-background, .auth-spatial-aurora, .auth-motion-field, .auth-spectrum),
  body.home-neon.auth-locked #authGate .auth-gateway-scene {
    display: none !important;
  }

  body.home-neon.auth-locked #authGate *,
  body.home-neon.auth-locked #authGate *::before,
  body.home-neon.auth-locked #authGate *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  body.home-neon.auth-locked #authGate .auth-gate-card,
  body.home-neon.auth-locked #authGate .auth-product-preview,
  body.home-neon.auth-locked #authGate .auth-brand-lockup .brand-mark {
    transform: none !important;
  }
}

@keyframes gateway-card-arrive {
  0% { opacity: 0; transform: perspective(1400px) translate3d(46px, 22px, -80px) rotateY(-5deg) scale(.96); filter: blur(8px); }
  100% { opacity: 1; transform: perspective(1400px) rotateX(var(--gateway-card-x, 0deg)) rotateY(var(--gateway-card-y, 0deg)); filter: none; }
}

@keyframes gateway-copy-arrive {
  0% { opacity: 0; transform: translate3d(-28px, 20px, 0); filter: blur(7px); }
  100% { opacity: 1; transform: none; filter: none; }
}

@keyframes gateway-border-flow {
  0%, 100% { background-position: 0 0, 0 50%; }
  50% { background-position: 0 0, 100% 50%; }
}

@keyframes gateway-border-tracer {
  to { background-position: -220% 0; }
}

@keyframes gateway-button-flow {
  0%, 100% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes gateway-aurora-pink {
  0% { transform: translate3d(-4%, -3%, 0) rotate(-4deg) scale(.95); }
  100% { transform: translate3d(13%, 9%, 0) rotate(8deg) scale(1.12); }
}

@keyframes gateway-aurora-cyan {
  0% { transform: translate3d(4%, -5%, 0) rotate(6deg) scale(1); }
  100% { transform: translate3d(-12%, 11%, 0) rotate(-8deg) scale(1.14); }
}

@keyframes gateway-aurora-lime {
  0% { transform: translate3d(0, 4%, 0) scale(.9); }
  100% { transform: translate3d(-16%, -11%, 0) scale(1.08); }
}

@keyframes gateway-grid-drift {
  to { background-position: 48px 48px; }
}

@keyframes gateway-star-drift {
  0% { opacity: .35; transform: translate3d(-8px, -4px, 0) scale(.75); }
  100% { opacity: 1; transform: translate3d(13px, 16px, 0) scale(1.12); }
}

@keyframes gateway-logo-bloom {
  0%, 100% { box-shadow: -10px 12px 34px rgba(255, 79, 216, .24), 10px -8px 32px rgba(85, 230, 255, .2), 0 0 0 5px rgba(255, 255, 255, .025); }
  50% { box-shadow: -13px 14px 44px rgba(255, 79, 216, .34), 13px -10px 42px rgba(85, 230, 255, .3), 0 0 0 6px rgba(255, 255, 255, .04); }
}

@keyframes gateway-logo-shine {
  0%, 62% { transform: translateX(-75%) rotate(14deg); }
  82%, 100% { transform: translateX(78%) rotate(14deg); }
}

@keyframes gateway-field-nudge {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
}

@keyframes gateway-success-card {
  0% { transform: scale(1); }
  48% { transform: scale(1.018); }
  100% { transform: scale(1); }
}
