@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&family=Outfit:wght@300..700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --wine:      oklch(0.22 0.09 18);
  --wine-deep: oklch(0.15 0.07 18);
  --bubble:    oklch(0.86 0.07 15);
  --rose:      oklch(0.92 0.04 15);
  --rose-hot:  oklch(0.55 0.22 22);
  --milk:      oklch(0.96 0.02 20);
  --font-serif: 'Fraunces', ui-serif, Georgia, serif;
  --font-sans:  'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100vh; background: var(--wine); }
body { color: var(--rose); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }

/* ── Page layout ────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Split layout: branding left, form right */
.auth-page.split {
  align-items: stretch;
  padding: 0;
}

/* ── Left branding panel ────────────────────────────────────────── */
.auth-brand {
  display: none;
  flex-direction: column;
  width: 26rem;
  flex-shrink: 0;
  background: var(--wine-deep);
  padding: 2.5rem 2.5rem 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .auth-brand { display: flex; } }

/* subtle gradient blobs on the brand panel */
.auth-brand::before, .auth-brand::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
}
.auth-brand::before {
  top: -4rem; left: -4rem;
  width: 16rem; height: 16rem;
  background: oklch(0.55 0.22 22 / 0.2);
}
.auth-brand::after {
  bottom: 12rem; right: -4rem;
  width: 12rem; height: 12rem;
  background: oklch(0.86 0.07 15 / 0.12);
}

.auth-brand-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--rose);
  position: relative; z-index: 1;
}
.auth-brand-logo .hot { color: var(--rose-hot); }

.auth-brand-logo img,
.auth-logo img,
.auth-mobile-logo img {
  height: 2.5rem;
  width: auto;
  display: block;
}

.auth-brand-content {
  margin-top: 3rem;
  position: relative; z-index: 1;
}

.auth-brand-headline {
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--rose);
}

.auth-brand-sub {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: oklch(0.92 0.04 15 / 0.6);
  line-height: 1.6;
}

.auth-feats {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-feats li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.af-icon {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  background: oklch(0.55 0.22 22 / 0.18);
  border: 1px solid oklch(0.55 0.22 22 / 0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--rose-hot);
}
.af-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; }

.auth-feats li strong { display: block; font-size: 0.9375rem; color: var(--rose); font-weight: 600; line-height: 1.3; }
.auth-feats li p { font-size: 0.8125rem; color: oklch(0.92 0.04 15 / 0.5); margin-top: 0.125rem; line-height: 1.4; }

/* ── Decorative mock cards ──────────────────────────────────────── */
.auth-mockup {
  position: relative;
  margin-top: auto;
  height: 13rem;
  z-index: 1;
}

.am-card {
  position: absolute;
  width: 13rem;
  border-radius: 0.875rem;
  background: oklch(0.22 0.09 18);
  border: 1px solid oklch(0.92 0.04 15 / 0.1);
  overflow: hidden;
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.35);
}

.am-card-back {
  bottom: 0; left: 0.5rem;
  transform: rotate(-5deg);
  opacity: 0.55;
}

.am-card-front {
  bottom: 1.5rem; left: 3.5rem;
  transform: rotate(2deg);
  box-shadow: 0 12px 40px oklch(0 0 0 / 0.5);
}

.am-thumb {
  height: 7rem;
  background: linear-gradient(135deg, oklch(0.3 0.12 18) 0%, oklch(0.2 0.09 280) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* Mobile logo — only shown on small screens when the brand panel is hidden */
.auth-mobile-logo {
  display: none;
  margin-bottom: 1.75rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--rose);
}
.auth-mobile-logo .hot { color: var(--rose-hot); }
@media (max-width: 1023px) { .auth-mobile-logo { display: block; } }

.am-code {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.7;
  padding: 0.75rem;
  color: oklch(0.92 0.04 15 / 0.85);
}
.amc-kw  { color: oklch(0.65 0.2 300); }
.amc-fn  { color: oklch(0.75 0.15 220); }
.amc-str { color: oklch(0.72 0.16 145); }

.am-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
}
.am-handle { font-size: 0.6875rem; color: oklch(0.92 0.04 15 / 0.7); font-family: var(--font-mono); }
.am-stat   { font-size: 0.6875rem; color: var(--rose-hot); }

/* ── Right / Main panel ─────────────────────────────────────────── */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  min-height: 100vh;
}

/* ── Auth card ──────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 26rem;
  position: relative;
  z-index: 10;
}

/* Standalone pages (forgot/reset) keep the old centered card look */
.auth-page:not(.split) .auth-card {
  background: oklch(0.25 0.09 18);
  border: 1px solid oklch(0.92 0.04 15 / 0.1);
  border-radius: 1.25rem;
  padding: 2rem;
}

/* ── Card header ────────────────────────────────────────────────── */
.auth-card-header { margin-bottom: 1.75rem; }
.auth-card-header h1 { font-size: 1.875rem; }
.auth-subtitle {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: oklch(0.92 0.04 15 / 0.6);
  line-height: 1.5;
}

/* ── Form ───────────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.auth-field { display: flex; flex-direction: column; gap: 0.375rem; }

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: oklch(0.92 0.04 15 / 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-field-link {
  font-size: 0.8125rem;
  color: oklch(0.92 0.04 15 / 0.5);
  transition: color 0.15s;
}
.auth-field-link:hover { color: var(--rose-hot); }

.authorize-password-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.authorize-password-actions .auth-oauth-btn { flex: 1; }
.authorize-password-actions .auth-button { flex: 2; margin-top: 0; }

/* ── Input wrapper (icon + input + optional button) ─────────────── */
.auth-input-wrap {
  display: flex;
  align-items: center;
  background: oklch(0.92 0.04 15 / 0.06);
  border: 1px solid oklch(0.92 0.04 15 / 0.15);
  border-radius: 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.auth-input-wrap:focus-within {
  border-color: var(--rose-hot);
  box-shadow: 0 0 0 3px oklch(0.55 0.22 22 / 0.12);
}

.auth-input-icon {
  padding: 0 0.625rem 0 1rem;
  color: oklch(0.92 0.04 15 / 0.35);
  flex-shrink: 0;
  display: flex; align-items: center;
}
.auth-input-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; }

.auth-at {
  color: oklch(0.92 0.04 15 / 0.4);
  font-size: 0.9375rem;
  padding-right: 0.125rem;
  user-select: none;
  flex-shrink: 0;
}

.auth-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--rose);
  padding: 0.75rem 0.875rem 0.75rem 0;
  font-size: 0.9375rem;
  font-family: inherit;
}
.auth-input::placeholder { color: oklch(0.92 0.04 15 / 0.25); }

/* password eye toggle */
.auth-pw-eye {
  padding: 0 0.875rem;
  background: none;
  border: none;
  color: oklch(0.92 0.04 15 / 0.35);
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center;
  transition: color 0.15s;
}
.auth-pw-eye:hover { color: var(--rose); }
.auth-pw-eye svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; }

/* ── Password strength bar ──────────────────────────────────────── */
.auth-pw-strength {
  height: 3px;
  background: oklch(0.92 0.04 15 / 0.1);
  border-radius: 9999px;
  overflow: hidden;
}
.auth-pw-bar {
  height: 100%;
  width: 0;
  border-radius: 9999px;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.auth-pw-bar.weak   { width: 33%; background: oklch(0.55 0.22 22); }
.auth-pw-bar.medium { width: 66%; background: oklch(0.75 0.15 70); }
.auth-pw-bar.strong { width: 100%; background: oklch(0.62 0.18 145); }

.auth-pw-strength-label {
  font-size: 0.75rem;
  color: oklch(0.92 0.04 15 / 0.45);
  min-height: 0.875rem;
}
.auth-pw-strength-label.weak   { color: oklch(0.65 0.22 22); }
.auth-pw-strength-label.medium { color: oklch(0.75 0.15 70); }
.auth-pw-strength-label.strong { color: oklch(0.62 0.18 145); }

/* password match icon inside wrap */
.auth-pw-match {
  padding-right: 0.875rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Username hint ──────────────────────────────────────────────── */
.auth-field-hint {
  font-size: 0.75rem;
  min-height: 0.875rem;
  margin: 0;
  transition: color 0.15s;
  color: oklch(0.92 0.04 15 / 0.4);
}
.auth-field-hint.available { color: oklch(0.62 0.18 145); }
.auth-field-hint.taken     { color: oklch(0.65 0.22 22); }
.auth-field-hint.checking  { color: oklch(0.92 0.04 15 / 0.4); }

/* ── Remember me / checkboxes ───────────────────────────────────── */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: oklch(0.92 0.04 15 / 0.65);
  user-select: none;
}
.auth-remember input[type="checkbox"] { display: none; }
.auth-checkmark {
  width: 1.125rem; height: 1.125rem;
  border-radius: 0.25rem;
  border: 1.5px solid oklch(0.92 0.04 15 / 0.25);
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.auth-remember input:checked + .auth-checkmark {
  background: var(--rose-hot);
  border-color: var(--rose-hot);
}
.auth-remember input:checked + .auth-checkmark::after {
  content: '';
  position: absolute;
  top: 0.1rem; left: 0.3rem;
  width: 0.35rem; height: 0.6rem;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* ── Terms ──────────────────────────────────────────────────────── */
.auth-terms {
  font-size: 0.8125rem;
  color: oklch(0.92 0.04 15 / 0.45);
  line-height: 1.5;
  text-align: center;
}
.auth-terms a { color: oklch(0.92 0.04 15 / 0.7); text-decoration: underline; }
.auth-terms a:hover { color: var(--rose); }

/* ── Submit button ──────────────────────────────────────────────── */
.auth-button {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--rose-hot);
  color: var(--milk);
  border: none; cursor: pointer;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem; font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px oklch(0.55 0.22 22 / 0.3);
  margin-top: 0.25rem;
}
.auth-button:hover:not(:disabled) {
  background: var(--rose);
  color: var(--wine-deep);
  box-shadow: 0 6px 24px oklch(0.55 0.22 22 / 0.2);
}
.auth-button:active:not(:disabled) { transform: scale(0.98); }
.auth-button:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── OAuth divider ──────────────────────────────────────────────── */
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  color: oklch(0.92 0.04 15 / 0.3); font-size: 0.8125rem;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: oklch(0.92 0.04 15 / 0.1); }

/* ── OAuth buttons ──────────────────────────────────────────────── */
.auth-oauth-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.625rem;
  padding: 0.7rem 1rem; border-radius: 0.625rem; cursor: pointer;
  background: oklch(0.92 0.04 15 / 0.05);
  border: 1px solid oklch(0.92 0.04 15 / 0.14);
  color: oklch(0.92 0.04 15 / 0.9); font-size: 0.9375rem; font-weight: 500;
  font-family: var(--font-sans); transition: background 0.15s, border-color 0.15s;
}
.auth-oauth-btn:hover { background: oklch(0.92 0.04 15 / 0.1); border-color: oklch(0.92 0.04 15 / 0.25); }
.auth-oauth-btn:active { transform: scale(0.99); }
.auth-oauth-btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }

.auth-oauth-group { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 0.25rem; }

/* ── Switch link ────────────────────────────────────────────────── */
.auth-switch {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: oklch(0.92 0.04 15 / 0.55);
}
.auth-switch a { color: var(--rose); font-weight: 500; }
.auth-switch a:hover { color: var(--rose-hot); }

/* ── Error message ──────────────────────────────────────────────── */
.auth-error {
  border-radius: 0.75rem;
  background: oklch(0.55 0.22 22 / 0.15);
  border: 1px solid oklch(0.55 0.22 22 / 0.25);
  color: oklch(0.75 0.18 22);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ── Success state ──────────────────────────────────────────────── */
.auth-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.auth-notice {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: oklch(0.92 0.04 15 / 0.05);
  border: 1px solid oklch(0.92 0.04 15 / 0.1);
  font-size: 0.875rem;
  color: oklch(0.92 0.04 15 / 0.65);
  line-height: 1.5;
}
.auth-notice strong { color: var(--rose); }

/* ── Standalone page logo (forgot/reset) ────────────────────────── */
.auth-logo {
  display: block;
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  color: var(--rose);
}
.auth-logo .hot { color: var(--rose-hot); }

/* Legacy compat for forgot/reset pages */
.auth-footer { margin-top: 1.5rem; font-size: 0.875rem; color: oklch(0.92 0.04 15 / 0.55); text-align: center; }
.auth-footer a { color: var(--rose); }
.auth-footer a:hover { text-decoration: underline; }
.auth-field > span {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: oklch(0.92 0.04 15 / 0.55); margin-left: 0.25rem;
}
.auth-field .field-body { margin-top: 0.375rem; }
.auth-field .field-body .auth-input {
  background: oklch(0.92 0.04 15 / 0.9);
  color: var(--wine-deep);
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  width: 100%;
  box-shadow: inset 0 0 0 1px oklch(0.22 0.09 18 / 0.1);
  outline: none;
  font-size: 0.9375rem; font-family: inherit;
  transition: box-shadow 0.15s;
}
.auth-field .field-body .auth-input:focus {
  box-shadow: inset 0 0 0 2px oklch(0.55 0.22 22 / 0.5);
}

/* ── Modals (post-OAuth profile setup / legal documents) ─────────── */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: oklch(0.1 0.02 18 / 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.auth-modal-overlay[hidden] { display: none; }

.auth-modal {
  width: 100%; max-width: 26rem;
  background: oklch(0.2 0.08 18);
  border: 1px solid oklch(0.92 0.04 15 / 0.12);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 24px 64px oklch(0 0 0 / 0.5);
}
.auth-modal h3 { font-size: 1.375rem; color: var(--rose); }
.auth-modal-sub { margin-top: 0.5rem; font-size: 0.875rem; color: oklch(0.92 0.04 15 / 0.6); line-height: 1.5; }
.auth-modal form { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

/* Terms/Privacy document viewer — wider, scrollable, closeable */
.auth-modal-legal { max-width: 40rem; max-height: 85vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.auth-modal-legal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid oklch(0.92 0.04 15 / 0.1); flex-shrink: 0;
}
.auth-modal-legal-header h3 { font-size: 1.125rem; }
.auth-modal-close {
  background: none; border: none; color: oklch(0.92 0.04 15 / 0.5); cursor: pointer;
  font-size: 1.5rem; line-height: 1; padding: 0.25rem 0.5rem; transition: color 0.15s;
  flex-shrink: 0;
}
.auth-modal-close:hover { color: var(--rose); }

.auth-modal-legal-body {
  padding: 1.5rem; overflow-y: auto;
  font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.7;
}
/* Structure (bold/headings/lists/paragraphs) comes from the uploaded
   .docx via mammoth's semantic HTML — color is always forced white
   regardless of the source document, per design. */
.auth-modal-legal-body, .auth-modal-legal-body * { color: #fff !important; }
.auth-modal-legal-body h1, .auth-modal-legal-body h2, .auth-modal-legal-body h3,
.auth-modal-legal-body h4, .auth-modal-legal-body h5, .auth-modal-legal-body h6 {
  font-family: var(--font-serif); font-weight: 500; margin: 1.5rem 0 0.5rem;
}
.auth-modal-legal-body h1:first-child, .auth-modal-legal-body h2:first-child, .auth-modal-legal-body h3:first-child { margin-top: 0; }
.auth-modal-legal-body p { margin: 0 0 0.875rem; }
.auth-modal-legal-body ul, .auth-modal-legal-body ol { margin: 0 0 0.875rem; padding-left: 1.5rem; }
.auth-modal-legal-body li { margin-bottom: 0.375rem; }
.auth-modal-legal-body strong, .auth-modal-legal-body b { font-weight: 700; }
.auth-modal-legal-body a { text-decoration: underline; }

/* Neon arena auth redesign */
body.auth-login,
body.auth-signup {
  --arena-bg: #030000;
  --arena-panel: rgb(12 0 4 / 0.86);
  --arena-panel-soft: rgb(40 0 13 / 0.54);
  --arena-red: #f40646;
  --arena-red-soft: rgb(244 6 70 / 0.42);
  --arena-line: rgb(244 6 70 / 0.45);
  --arena-line-soft: rgb(255 150 175 / 0.22);
  --arena-text: #f6f4f5;
  --arena-muted: rgb(246 244 245 / 0.68);
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 12%, rgb(244 6 70 / 0.16), transparent 26rem),
    radial-gradient(circle at 88% 14%, rgb(95 0 24 / 0.5), transparent 30rem),
    linear-gradient(135deg, #030000 0%, #120004 52%, #030000 100%);
  color: var(--arena-text);
}

.auth-page.split,
.auth-page.split * {
  letter-spacing: 0 !important;
}

.auth-page.split {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(27rem, 42vw) minmax(0, 1fr);
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.86), transparent 48%),
    radial-gradient(circle at 28% 85%, rgb(244 6 70 / 0.18), transparent 24rem);
}

.auth-page.split::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgb(244 6 70 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(244 6 70 / 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(circle at 30% 88%, black, transparent 34rem);
}

.auth-brand {
  position: relative;
  display: flex;
  width: auto;
  min-width: 0;
  min-height: 100dvh;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(2rem, 5vw, 4.2rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 25%, rgb(244 6 70 / 0.12), transparent 19rem),
    linear-gradient(115deg, #030000 0%, #0b0003 62%, rgb(28 0 9 / 0.82) 100%);
}

.auth-brand::before {
  content: "";
  position: absolute;
  left: -18%;
  right: -6%;
  bottom: -24%;
  height: 49%;
  border-radius: 50% 50% 0 0;
  background:
    linear-gradient(transparent 78%, rgb(244 6 70 / 0.13) 78%),
    repeating-linear-gradient(90deg, rgb(244 6 70 / 0.05) 0 1px, transparent 1px 28px),
    radial-gradient(ellipse at 50% 0%, rgb(244 6 70 / 0.38), rgb(72 0 18 / 0.52) 35%, rgb(7 0 2 / 0.8) 72%);
  border-top: 1px solid rgb(255 70 115 / 0.9);
  box-shadow: 0 -18px 54px rgb(244 6 70 / 0.58);
  filter: saturate(1.2);
}

.auth-brand::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 22%;
  width: 2.2rem;
  height: 2.2rem;
  background:
    linear-gradient(var(--arena-red), var(--arena-red)) center / 0.1rem 100% no-repeat,
    linear-gradient(90deg, var(--arena-red), var(--arena-red)) center / 100% 0.1rem no-repeat;
  filter: drop-shadow(0 0 16px rgb(244 6 70 / 0.85));
  transform: rotate(45deg);
}

.auth-brand-logo,
.auth-logo,
.auth-mobile-logo {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--arena-text);
}

.auth-brand-logo .hot,
.auth-logo .hot,
.auth-mobile-logo .hot {
  color: var(--arena-red);
}

.auth-brand-content {
  max-width: 28rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.auth-brand-headline {
  max-width: 27rem;
  color: var(--arena-text);
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 4vw, 3.7rem);
  font-weight: 900;
  line-height: 1.06;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgb(255 255 255 / 0.18);
}

.auth-brand-headline span,
.auth-card-header h1 span {
  color: var(--arena-red);
  text-shadow: 0 0 26px rgb(244 6 70 / 0.55);
}

.auth-brand-sub {
  position: relative;
  max-width: 22rem;
  margin-top: 1rem;
  padding-bottom: 0.75rem;
  color: var(--arena-text);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-style: italic;
  line-height: 1.32;
}

.auth-brand-sub::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 12rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--arena-red), transparent);
}

.auth-feats {
  gap: 1rem;
  margin-top: 1.3rem;
}

.auth-feats li {
  align-items: center;
  gap: 0.9rem;
}

.af-icon {
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgb(244 6 70 / 0.75);
  border-radius: 0.42rem;
  background: linear-gradient(145deg, rgb(244 6 70 / 0.22), rgb(18 0 6 / 0.82));
  color: #ff7a9d;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06), 0 0 22px rgb(244 6 70 / 0.18);
}

.af-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.9;
}

.auth-feats li strong {
  color: var(--arena-text);
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-feats li p {
  color: var(--arena-muted);
  font-size: 0.92rem;
}

.auth-mockup {
  width: min(21rem, 78%);
  height: 8.2rem;
  margin: auto 0 0;
  transform: rotate(-4deg);
}

.am-card-back {
  display: none;
}

.am-card-front {
  left: 0;
  bottom: 0;
  width: 100%;
  border: 1px solid rgb(244 6 70 / 0.58);
  border-radius: 0.85rem;
  background: rgb(12 0 5 / 0.86);
  box-shadow: 0 0 34px rgb(244 6 70 / 0.28), 0 22px 45px rgb(0 0 0 / 0.48);
}

.am-thumb {
  height: 4.8rem;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.045), transparent 48%),
    rgb(12 0 6 / 0.92);
}

.am-code {
  width: 100%;
  color: rgb(255 236 241 / 0.9);
  font-size: 0.78rem;
  line-height: 1.5;
}

.am-info {
  border-top: 1px solid rgb(244 6 70 / 0.28);
  background: rgb(18 0 7 / 0.88);
}

.am-handle,
.am-stat {
  color: #ff2b63;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.auth-main {
  position: relative;
  align-items: center;
  min-height: 100dvh;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.auth-main::before {
  content: "";
  position: absolute;
  right: clamp(3rem, 9vw, 9rem);
  top: clamp(3rem, 8vw, 7rem);
  width: 5rem;
  height: 5rem;
  background-image: radial-gradient(circle, rgb(244 6 70 / 0.35) 1px, transparent 1.5px);
  background-size: 1rem 1rem;
  opacity: 0.48;
}

.auth-page.split .auth-card {
  width: min(100%, 42.5rem);
  max-width: none;
  padding: clamp(1.5rem, 2.8vw, 2.25rem) clamp(1.4rem, 4.5vw, 3.6rem);
  border: 1px solid rgb(244 6 70 / 0.82);
  border-radius: 2.25rem;
  background:
    radial-gradient(circle at 50% 0%, rgb(244 6 70 / 0.13), transparent 35%),
    linear-gradient(145deg, rgb(20 0 7 / 0.88), rgb(6 0 2 / 0.88));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.035), 0 0 52px rgb(244 6 70 / 0.16), 0 32px 90px rgb(0 0 0 / 0.58);
}

.auth-signup .auth-page.split .auth-card {
  width: min(100%, 43.5rem);
  padding-block: clamp(1.1rem, 1.8vw, 1.5rem);
}

.auth-mobile-logo {
  text-align: center;
}

.auth-card-header {
  margin-bottom: clamp(1rem, 1.8vw, 1.4rem);
  text-align: center;
}

.auth-card-header h1,
#signup-success h1 {
  color: var(--arena-text);
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 2.6vw, 2.3rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.auth-card-header h1 i {
  margin-left: 0.45rem;
  color: var(--arena-red);
  font-style: normal;
  font-size: 0.84em;
  filter: drop-shadow(0 0 16px rgb(244 6 70 / 0.8));
}

.auth-subtitle {
  color: var(--arena-muted);
  font-size: 0.9375rem;
}

.auth-form {
  gap: 1rem;
}

.auth-signup .auth-form {
  gap: 0.7rem;
}

.auth-field {
  gap: 0.4rem;
}

.auth-field-label {
  color: rgb(255 255 255 / 0.84);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-field-link,
.auth-terms a,
.auth-switch a,
.auth-footer a {
  color: #ff1b55;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.auth-input-wrap {
  min-height: 3.25rem;
  border: 1px solid rgb(255 235 240 / 0.28);
  border-radius: 0.65rem;
  background: rgb(5 0 2 / 0.58);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}

.auth-input-wrap:focus-within {
  border-color: rgb(244 6 70 / 0.85);
  box-shadow: 0 0 0 3px rgb(244 6 70 / 0.13), 0 0 26px rgb(244 6 70 / 0.12);
}

.auth-input-icon {
  padding-left: 1.35rem;
  color: var(--arena-red);
}

.auth-input-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke-width: 1.9;
}

.auth-input {
  color: var(--arena-text);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.auth-input::placeholder {
  color: rgb(255 235 240 / 0.38);
}

.auth-at {
  color: rgb(255 235 240 / 0.45);
}

.auth-pw-eye {
  color: rgb(255 235 240 / 0.72);
}

.auth-pw-eye:hover {
  color: var(--arena-red);
}

.auth-terms {
  color: var(--arena-muted);
  text-align: left;
}

.auth-login .auth-terms {
  margin-top: 0.35rem;
  text-align: center;
}

.auth-button {
  min-height: 3.4rem;
  margin-top: 0.3rem;
  border: 1px solid rgb(255 120 150 / 0.65);
  border-radius: 0.62rem;
  background: linear-gradient(180deg, #ff064d 0%, #c9003b 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 0 34px rgb(244 6 70 / 0.36);
}

.auth-button:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff3a70 0%, #e00045 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 0 46px rgb(244 6 70 / 0.5);
}

.auth-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.auth-divider {
  margin: 1.1rem 0 0.8rem;
  color: rgb(255 235 240 / 0.58);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: linear-gradient(90deg, transparent, rgb(255 235 240 / 0.22), transparent);
}

.auth-oauth-group {
  gap: 0.6rem;
}

.auth-signup .auth-oauth-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-oauth-btn {
  min-height: 2.85rem;
  border: 1px solid rgb(244 6 70 / 0.28);
  border-radius: 0.56rem;
  background: rgb(8 0 3 / 0.52);
  color: var(--arena-text);
  font-size: 0.96rem;
}

.auth-oauth-btn:hover {
  border-color: rgb(244 6 70 / 0.7);
  background: rgb(38 0 13 / 0.62);
}

.auth-oauth-btn svg {
  width: 1.22rem;
  height: 1.22rem;
}

.auth-switch {
  position: relative;
  margin-top: 1.25rem;
  padding-top: 1rem;
  color: var(--arena-muted);
  font-size: 0.9375rem;
}

.auth-switch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 235 240 / 0.18), transparent);
}

.auth-switch::after {
  content: "";
  position: absolute;
  top: -0.46rem;
  left: 50%;
  width: 0.9rem;
  height: 0.9rem;
  background:
    linear-gradient(var(--arena-red), var(--arena-red)) center / 0.08rem 100% no-repeat,
    linear-gradient(90deg, var(--arena-red), var(--arena-red)) center / 100% 0.08rem no-repeat;
  transform: translateX(-50%) rotate(45deg);
  filter: drop-shadow(0 0 12px rgb(244 6 70 / 0.75));
}

.auth-error {
  border-color: rgb(244 6 70 / 0.58);
  background: rgb(244 6 70 / 0.12);
  color: #ff9ab2;
}

.auth-pw-strength {
  background: rgb(255 235 240 / 0.11);
}

.auth-pw-bar.weak {
  background: #ff2c62;
}

.auth-pw-bar.medium {
  background: #ffbe4a;
}

.auth-pw-bar.strong {
  background: #36e887;
}

.auth-field-hint,
.auth-pw-strength-label {
  color: rgb(255 235 240 / 0.5);
}

#signup-success {
  text-align: center;
}

.auth-success-icon {
  color: var(--arena-red);
  filter: drop-shadow(0 0 18px rgb(244 6 70 / 0.6));
}

.auth-notice {
  border-color: rgb(244 6 70 / 0.22);
  background: rgb(244 6 70 / 0.08);
  color: var(--arena-muted);
}

/* Modals (profile setup / legal documents) — matches the neon arena
   card treatment. Note: these overlays are siblings of .auth-page, not
   descendants, so they must be targeted via the body class, not
   ".auth-page.split .auth-modal" (which never matches anything). */
body.auth-login .auth-modal-overlay,
body.auth-signup .auth-modal-overlay {
  background: rgb(3 0 0 / 0.82);
  backdrop-filter: blur(6px);
}

body.auth-login .auth-modal,
body.auth-signup .auth-modal {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgb(244 6 70 / 0.78);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 50% 0%, rgb(244 6 70 / 0.16), transparent 40%),
    linear-gradient(145deg, rgb(20 0 7 / 0.94), rgb(6 0 2 / 0.96));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.035), 0 0 46px rgb(244 6 70 / 0.16), 0 28px 70px rgb(0 0 0 / 0.6);
}

body.auth-login .auth-modal h3,
body.auth-signup .auth-modal h3 {
  color: var(--arena-text);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

body.auth-login .auth-modal-sub,
body.auth-signup .auth-modal-sub {
  margin-top: 0.4rem;
  color: var(--arena-muted);
  font-size: 0.8125rem;
}

body.auth-login .auth-modal form,
body.auth-signup .auth-modal form {
  margin-top: 0.9rem;
  gap: 0.75rem;
}

body.auth-login .auth-modal-legal-header,
body.auth-signup .auth-modal-legal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgb(244 6 70 / 0.3);
}

body.auth-login .auth-modal-legal-header h3,
body.auth-signup .auth-modal-legal-header h3 {
  font-size: 1rem;
}

body.auth-login .auth-modal-close,
body.auth-signup .auth-modal-close {
  color: rgb(255 235 240 / 0.6);
}

body.auth-login .auth-modal-close:hover,
body.auth-signup .auth-modal-close:hover {
  color: var(--arena-red);
}

/* Shorter viewports (typical laptops, ~768-900px tall) fall back to a
   more compact rhythm so the page never needs to scroll — taller
   viewports get the roomier default above. */
@media (max-height: 900px) {
  .auth-main {
    padding: clamp(1rem, 2.4vw, 1.75rem);
  }

  .auth-page.split .auth-card {
    padding-block: clamp(1.1rem, 2vw, 1.75rem);
  }

  .auth-signup .auth-page.split .auth-card {
    padding-block: clamp(0.75rem, 1.2vw, 1.1rem);
  }

  .auth-card-header {
    margin-bottom: clamp(0.75rem, 1.4vw, 1.1rem);
  }

  .auth-card-header h1,
  #signup-success h1 {
    font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  }

  .auth-subtitle {
    font-size: 0.875rem;
  }

  .auth-form {
    gap: 0.8rem;
  }

  .auth-signup .auth-form {
    gap: 0.45rem;
  }

  .auth-field {
    gap: 0.25rem;
  }

  .auth-input-wrap {
    min-height: 2.75rem;
  }

  .auth-input {
    padding: 0.55rem 1rem;
    font-size: 0.9375rem;
  }

  .auth-button {
    min-height: 2.9rem;
    margin-top: 0.2rem;
  }

  .auth-divider {
    margin: 0.85rem 0 0.6rem;
  }

  .auth-oauth-group {
    gap: 0.5rem;
  }

  .auth-oauth-btn {
    min-height: 2.5rem;
  }

  .auth-switch {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    font-size: 0.875rem;
  }

  .auth-field-hint {
    min-height: 0.75rem;
  }

  .auth-pw-strength-label {
    min-height: 0.75rem;
  }

  .auth-brand {
    padding: clamp(1.25rem, 2.6vw, 2rem) clamp(2rem, 5vw, 4.2rem);
  }

  .auth-brand-content {
    margin-top: clamp(1.25rem, 2.6vw, 2rem);
  }

  .auth-brand-headline {
    font-size: clamp(2.1rem, 3.4vw, 3.15rem);
  }

  .auth-brand-sub {
    margin-top: 0.75rem;
    padding-bottom: 0.6rem;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  }

  .auth-feats {
    gap: 0.7rem;
    margin-top: 0.9rem;
  }

  .auth-feats li {
    gap: 0.85rem;
  }

  .af-icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .af-icon svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .auth-mockup {
    height: 7rem;
  }

  .am-thumb {
    height: 4rem;
  }
}

@media (max-width: 1180px) {
  .auth-page.split {
    grid-template-columns: minmax(22rem, 38vw) minmax(0, 1fr);
  }

  .auth-brand {
    padding-inline: 2rem;
  }

  .auth-brand-headline {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
  }

  .auth-page.split .auth-card {
    border-radius: 1.65rem;
  }
}

@media (max-width: 1023px) {
  .auth-page.split {
    display: flex;
    min-height: 100dvh;
    padding: 1.25rem;
    overflow: auto;
  }

  .auth-page.split::after,
  .auth-brand {
    display: none;
  }

  .auth-main {
    min-height: auto;
    padding: 0;
  }

  .auth-page.split .auth-card {
    margin: auto;
  }
}

@media (max-width: 680px) {
  .auth-page.split {
    padding: 0.8rem;
  }

  .auth-page.split .auth-card {
    padding: 1.35rem;
    border-radius: 1.15rem;
  }

  .auth-card-header h1,
  #signup-success h1 {
    font-size: 1.65rem;
  }

  .auth-signup .auth-oauth-group {
    grid-template-columns: 1fr;
  }
}
