:root {
  color-scheme: dark;
  --ink: #f5f7fa;
  --muted: #929daa;
  --line: rgba(255, 255, 255, .105);
  --panel: #10161d;
  --canvas: #090d12;
  --accent: #5da8ff;
  --accent-strong: #79b7ff;
  --danger: #ff7770;
  --warning: #f2c66d;
  --success: #63c99c;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); text-underline-offset: 3px; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(420px, 640px);
  min-height: 100vh;
}

.auth-context {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 5vw, 72px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(93, 168, 255, .075), transparent 42%),
    radial-gradient(circle at 82% 77%, rgba(83, 122, 165, .09), transparent 34%),
    #0b1016;
}

.auth-context::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(112deg, rgba(8, 13, 19, .08), rgba(8, 13, 19, .36));
  content: "";
  pointer-events: none;
}

.network-constellation {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-context > :not(.network-constellation) {
  position: relative;
  z-index: 2;
}

.network-star {
  position: absolute;
  top: var(--star-y);
  left: var(--star-x);
  width: var(--star-size);
  height: var(--star-size);
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .025;
  transform: translate(-50%, -50%) scale(.88);
  animation: network-twinkle var(--star-duration) ease-in-out var(--star-delay) infinite;
  will-change: opacity, transform;
}

@keyframes network-twinkle {
  0%, 100% {
    opacity: .025;
    transform: translate(-50%, -50%) scale(.88);
  }
  44% {
    opacity: var(--star-peak);
    transform: translate(calc(-50% + var(--star-drift-x)), calc(-50% + var(--star-drift-y))) scale(1.03);
  }
  68% {
    opacity: .055;
    transform: translate(calc(-50% + var(--star-drift-x)), calc(-50% + var(--star-drift-y))) scale(.94);
  }
}

.wordmark {
  width: fit-content;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -.015em;
  text-decoration: none;
}

.context-copy { max-width: 620px; margin: auto 0; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.context-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.6rem, 5.7vw, 6.7rem);
  font-weight: 570;
  letter-spacing: -.07em;
  line-height: .94;
}

.rotating-headline {
  display: grid;
}

.rotating-headline__phrase {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(.13em);
  animation: headline-cycle 16s cubic-bezier(.22, 1, .36, 1) infinite both;
  will-change: opacity, transform;
}

.rotating-headline__phrase:nth-of-type(2) { animation-delay: 4s; }
.rotating-headline__phrase:nth-of-type(3) { animation-delay: 8s; }
.rotating-headline__phrase:nth-of-type(4) { animation-delay: 12s; }

@keyframes headline-cycle {
  0% { opacity: 0; transform: translateY(.13em); }
  4%, 21% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-.1em); }
}

.context-copy > p:last-child {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.product-strip { display: flex; flex-wrap: wrap; gap: 12px 24px; color: #c4cbd3; font-size: .78rem; }
.product-strip span { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #5f6975; }
.status-dot.live { background: var(--success); box-shadow: 0 0 0 3px rgba(99, 201, 156, .1); }
.status-dot.soon { background: #6f7c8b; }

.auth-panel { display: grid; place-items: center; padding: 32px; background: var(--panel); }
.auth-panel__inner { width: min(100%, 390px); }
.auth-heading { margin-bottom: 30px; }
.auth-heading h2 { margin: 0; font-size: 1.75rem; font-weight: 620; letter-spacing: -.035em; }
.auth-heading > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 8px; color: #c5ccd4; font-size: .78rem; font-weight: 620; }
.auth-form input {
  width: 100%;
  height: 46px;
  border: 1px solid #29333e;
  border-radius: 9px;
  outline: none;
  background: #0c1218;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  padding: 0 13px;
  transition: border-color .14s ease, box-shadow .14s ease;
}

.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(93, 168, 255, .13); }
.auth-form input::placeholder { color: #66717d; }

.primary-action {
  height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #07111d;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 720;
  transition: background .14s ease, transform .08s ease;
}

.primary-action:hover { background: var(--accent-strong); }
.primary-action:active { transform: scale(.99); }

.auth-alternate { margin: 24px 0 0; color: #b3bdc7; font-size: .84rem; text-align: center; }
.muted { color: var(--muted); }
.auth-alert { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 9px; padding: 12px 13px; font-size: .82rem; line-height: 1.45; }
.auth-alert.error { border-color: rgba(255, 119, 112, .28); background: rgba(255, 119, 112, .07); color: #ffc1bd; }
.auth-alert.warning { border-color: rgba(242, 198, 109, .27); background: rgba(242, 198, 109, .065); color: #ffe1a8; }
.auth-alert.success { border-color: rgba(99, 201, 156, .27); background: rgba(99, 201, 156, .065); color: #a9ebcd; }

.password-guidance { margin: 2px 0 4px; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.form-check { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 9px; margin-top: 10px; }
.form-check input { width: 16px; height: 16px; margin-top: 2px; }
.form-check label { margin: 0; color: var(--muted); font-weight: 450; line-height: 1.45; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.signup-page .auth-panel { padding-top: 22px; padding-bottom: 22px; }
.signup-page .auth-heading { margin-bottom: 16px; }
.signup-page .auth-form { gap: 6px; }
.signup-page .auth-form label { margin-top: 4px; }
.signup-page .auth-form > input { height: 42px; }
.signup-page .primary-action { height: 43px; margin-top: 8px; }
.signup-page .auth-alternate { margin-top: 14px; }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-context { min-height: 270px; border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .context-copy { margin: 54px 0; }
  .context-copy h1 { font-size: clamp(2.4rem, 12vw, 4.5rem); }
  .context-copy > p:last-child { margin-top: 18px; }
  .auth-panel { padding: 48px 24px 64px; }
  .signup-page .auth-panel { padding: 36px 24px 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .network-star { animation: none !important; opacity: .08; transform: translate(-50%, -50%); }
  .rotating-headline__phrase { animation: none !important; opacity: 0; transform: none; }
  .rotating-headline__phrase:first-of-type { opacity: 1; }
}
