/* ============ AUTH identity ============
   Shared layout for Sign in / Sign up / Forgot password.
   Visual signature:
   - Stripped header — brand mark + "Back to wayhopper.com"
   - Split-screen: form card on left, "operator console preview" panel on right
   - Right panel = always-dark product surface, showing what you sign into:
     a small live event card (leaderboard, weather strip, recent checks-in)
   - Form card: mono labels, big single-column inputs, primary CTA full-width
   - Quiet auth options (OAuth) below the divider line
   - Footer: thin legal strip, no full sitemap
   - On 760px, the right panel hides and the form fills the screen
 */

html, body { min-height: 100%; }
body { background: var(--bg); display: flex; flex-direction: column; }

/* stripped header */
.auth-head {
  padding: 22px 0;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  background: var(--bg);
}
.auth-head-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.auth-head .back {
  font-family: "Geist Mono", monospace; font-size: 12px;
  color: var(--fg-mute); letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 8px;
}
.auth-head .back::before { content: "←"; color: var(--accent); }
.auth-head .back:hover { color: var(--fg); }

/* main split layout */
.auth-shell { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 200px); }
@media (max-width: 1000px) { .auth-shell { grid-template-columns: 1fr; } .auth-shell .auth-side { display: none; } }

/* LEFT — form card */
.auth-form-wrap {
  display: grid; place-items: center;
  padding: 64px 32px;
}
.auth-form {
  width: 100%; max-width: 420px;
}
.auth-form .doc-id {
  font-family: "Geist Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute);
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; margin-bottom: 22px;
  border-bottom: 1px dashed var(--border);
}
.auth-form .doc-id .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.auth-form .doc-id b { color: var(--fg); font-weight: 500; }

.auth-form h1 {
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1;
  letter-spacing: -0.03em; font-weight: 600;
  margin: 0 0 12px;
}
.auth-form h1 em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--accent); }
.auth-form .sub {
  font-size: 15px; color: var(--fg-dim); margin: 0 0 32px;
  max-width: 38ch;
}

/* fields */
.field { margin-bottom: 16px; }
.field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: "Geist Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: 8px;
}
.field label .hint { letter-spacing: 0; text-transform: none; font-family: "Geist", sans-serif; font-size: 12px; }
.field label .hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 14px 16px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--fg); font: inherit; font-size: 15.5px; letter-spacing: -0.005em;
  transition: 120ms ease;
}
.field input:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 18%, transparent);
}
.field input::placeholder { color: var(--fg-mute); }

.field.pwd { position: relative; }
.field.pwd .reveal {
  position: absolute; right: 12px; top: 36px;
  background: none; border: 0; padding: 6px;
  font-family: "Geist Mono", monospace; font-size: 11px;
  color: var(--fg-mute); letter-spacing: 0.08em;
}
.field.pwd .reveal:hover { color: var(--accent); }

.checkrow {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 24px;
  font-size: 13.5px; color: var(--fg-dim);
}
.checkrow input { width: 16px; height: 16px; accent-color: var(--accent); }
.checkrow a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.submit {
  width: 100%; padding: 14px 18px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid color-mix(in oklch, var(--accent) 80%, black 10%);
  font: inherit; font-weight: 500; font-size: 15px;
  letter-spacing: -0.005em;
  box-shadow: 0 8px 22px -10px color-mix(in oklch, var(--accent) 70%, transparent);
  transition: 140ms ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.submit:hover { background: color-mix(in oklch, var(--accent) 90%, white 8%); transform: translateY(-1px); }
.submit .arrow { transition: transform 160ms ease; }
.submit:hover .arrow { transform: translateX(3px); }

/* divider */
.or {
  margin: 28px 0; display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 14px; align-items: center;
  font-family: "Geist Mono", monospace; font-size: 10.5px;
  color: var(--fg-mute); letter-spacing: 0.14em;
}
.or::before, .or::after { content: ""; height: 1px; background: var(--border); }

/* oauth */
.oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 28px; }
@media (max-width: 480px) { .oauth { grid-template-columns: 1fr; } }
.oauth button {
  padding: 11px 14px; border-radius: 9px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--fg); font: inherit; font-size: 13.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: 120ms ease;
}
.oauth button:hover { background: color-mix(in oklch, var(--bg-card) 80%, var(--fg) 5%); border-color: var(--border-strong); }
.oauth .logo {
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--bg-elev); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: "Geist Mono", monospace; font-size: 9px; color: var(--fg-mute);
}

.auth-footnote {
  font-size: 13.5px; color: var(--fg-dim); text-align: center; margin: 0;
}
.auth-footnote a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* security strip — micro-trust at the very bottom of card */
.sec-strip {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px dashed var(--border);
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: "Geist Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.08em; color: var(--fg-mute); text-transform: uppercase;
}
.sec-strip span { display: inline-flex; align-items: center; gap: 6px; }
.sec-strip span::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* RIGHT — operator console preview */
.auth-side {
  background: var(--ps-bg);
  color: var(--ps-fg);
  padding: 56px 48px;
  border-left: 1px solid var(--ps-border);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 24px;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--ps-border) 50%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--ps-border) 50%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 80% 20%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 80% 20%, black 0%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.auth-side::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 90% 10%, color-mix(in oklch, var(--accent) 26%, transparent), transparent 60%),
    radial-gradient(500px 300px at 20% 90%, color-mix(in oklch, var(--gold) 14%, transparent), transparent 60%);
  pointer-events: none;
}
.auth-side > * { position: relative; z-index: 1; }

.live-tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: color-mix(in oklch, var(--ps-card) 90%, transparent);
  border: 1px solid var(--ps-border);
  font-family: "Geist Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.12em; color: var(--ps-fg); text-transform: uppercase;
}
.live-tag .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent);
  animation: pulse 1.8s ease-out infinite;
}

.side-head h2 {
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05;
  letter-spacing: -0.025em; font-weight: 500;
  color: var(--ps-fg); margin: 0 0 8px; max-width: 18ch;
}
.side-head h2 em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--accent); }
.side-head p {
  margin: 0; font-size: 14.5px; color: var(--ps-mute); max-width: 38ch;
}

/* mock event card stack */
.mock-card {
  background: color-mix(in oklch, var(--ps-card) 96%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  padding: 18px;
}
.mock-card .head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--ps-border);
}
.mock-card .head .title {
  font-size: 15px; letter-spacing: -0.01em; font-weight: 500;
}
.mock-card .head .meta {
  font-family: "Geist Mono", monospace; font-size: 10.5px;
  color: var(--ps-mute); letter-spacing: 0.08em;
}
.mock-card .head .meta b { color: var(--accent); font-weight: 500; }

.lb { display: grid; gap: 8px; }
.lb-r { display: grid; grid-template-columns: 18px 24px 1fr auto; align-items: center; gap: 12px; font-size: 13px; }
.lb-r .rk { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--ps-mute); }
.lb-r .av { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }
.lb-r .nm { color: var(--ps-fg); }
.lb-r .pt { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--accent); }
.lb-r.first .pt { color: var(--gold); }

.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.strip {
  border: 1px solid var(--ps-border); border-radius: 10px;
  padding: 12px;
  background: color-mix(in oklch, var(--ps-card) 80%, transparent);
}
.strip .l { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.08em; color: var(--ps-mute); text-transform: uppercase; }
.strip .v { font-size: 22px; letter-spacing: -0.02em; margin-top: 6px; line-height: 1; }
.strip .v small { font-size: 11px; color: var(--accent); margin-left: 4px; }

/* recent activity ticker */
.tick { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--ps-mute); }
.tick .row {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 6px 0; border-top: 1px dashed var(--ps-border);
}
.tick .row:first-child { border-top: 0; padding-top: 0; }
.tick .row b { color: var(--ps-fg); font-weight: 400; }
.tick .row .t { color: var(--accent); }

/* MICRO FOOTER */
.auth-foot {
  border-top: 1px solid var(--border); padding: 20px 0;
  background: var(--bg);
}
.auth-foot-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--fg-mute);
}
.auth-foot-inner a { color: var(--fg-mute); }
.auth-foot-inner a:hover { color: var(--fg); }
.auth-foot-inner .right { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sign-in chooser (organizer vs participant) */
.auth-chooser {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.auth-choice {
  display: block;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.auth-choice:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 32px -18px color-mix(in oklch, var(--accent) 45%, transparent);
  transform: translateY(-1px);
}
.auth-choice-kicker {
  display: block;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.auth-choice-title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
}
.auth-choice-desc {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-dim);
  margin: 0 0 10px;
}
.auth-choice-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.auth-choice-cta .arrow { transition: transform 160ms ease; }
.auth-choice:hover .auth-choice-cta .arrow { transform: translateX(3px); }
.auth-choice--organizer { border-left: 3px solid var(--accent); }
.auth-choice--participant { border-left: 3px solid oklch(0.68 0.12 220); }
.auth-footnote-sep { margin: 0 8px; opacity: 0.45; }

body.wayhopper-auth-page .nav,
body.wayhopper-auth-page .site-footer,
body.wayhopper-auth-page #site-footer {
  display: none !important;
}
body.wayhopper-auth-page main {
  padding: 0;
  margin: 0;
  max-width: none;
}

