:root {
  --gold: #F0A500;
  --gold-light: #FFD166;
  --gold-dim: #8B6100;
  --black: #060608;
  --black2: #0D0D10;
  --surface: #111116;
  --surface2: #18181F;
  --border: rgba(240,165,0,0.12);
  --border-bright: rgba(240,165,0,0.35);
  --text: #E8E8F0;
  --text-muted: #6B6B80;
  --white: #FFFFFF;
  --glow: 0 0 40px rgba(240,165,0,0.15);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025; pointer-events: none; z-index: 9998;
}
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(240,165,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,165,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 68px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,6,8,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.05rem;
  color: var(--white); text-decoration: none;
}
.nav-logo img { width: 32px; height: 32px; object-fit: cover; border-radius: 5px; }
.nav-back {
  font-family: 'Space Mono', monospace; font-size: 0.75rem;
  color: var(--text-muted); text-decoration: none; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px; transition: color 0.3s;
}
.nav-back:hover { color: var(--gold); }
.nav-back svg { width: 13px; stroke: currentColor; fill: none; }

/* ── SPLIT LAYOUT ── */
.page-split {
  display: flex; min-height: 100vh; padding-top: 68px;
}

/* LEFT PANEL */
.split-left {
  display: none;
  width: 400px; flex-shrink: 0;
  position: sticky; top: 68px;
  height: calc(100vh - 68px);
  overflow: hidden;
  border-right: 1px solid rgba(240,165,0,0.2);
}
.split-left-inner {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 48px 40px;
  overflow: hidden;
  background: var(--black2);
}
/* Rich gold gradient */
.split-left-inner::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 15% 5%,  rgba(255,215,102,0.60) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 55%, rgba(240,165,0,0.55) 0%, transparent 48%),
    radial-gradient(ellipse at 5%  90%, rgba(180,120,0,0.50) 0%, transparent 48%),
    radial-gradient(ellipse at 60% 25%, rgba(255,190,50,0.35) 0%, transparent 42%),
    linear-gradient(160deg, rgba(255,220,80,0.15) 0%, rgba(240,140,0,0.25) 100%);
}
/* Diagonal stripe texture */
.split-left-inner::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 24px,
    rgba(0,0,0,0.06) 24px, rgba(0,0,0,0.06) 25px
  );
}
/* Floating orbs */
.lo { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }
.lo1 { width: 280px; height: 280px; top: -70px; right: -70px;
  background: radial-gradient(circle, rgba(255,225,100,0.65), transparent 70%);
  animation: fA 6s ease-in-out infinite; }
.lo2 { width: 200px; height: 200px; bottom: 80px; left: -50px;
  background: radial-gradient(circle, rgba(240,165,0,0.55), transparent 70%);
  animation: fB 8s ease-in-out infinite; }
.lo3 { width: 130px; height: 130px; top: 45%; right: 10px;
  background: radial-gradient(circle, rgba(255,245,180,0.45), transparent 70%);
  animation: fA 5s ease-in-out infinite reverse; }
@keyframes fA { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-16px) scale(1.04)} }
@keyframes fB { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(13px) scale(0.97)} }

.left-content { position: relative; z-index: 2; }
.left-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 44px;
}
.left-logo img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.left-logo span { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--black); }
.left-headline { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.3rem; color: var(--black); line-height: 1.12; margin-bottom: 14px; }
.left-sub { font-size: 0.9rem; color: rgba(6,6,8,0.68); line-height: 1.7; margin-bottom: 32px; }
.left-points { display: flex; flex-direction: column; gap: 12px; }
.left-point { display: flex; align-items: center; gap: 10px; }
.left-point-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(6,6,8,0.5); flex-shrink: 0; }
.left-point span { font-size: 0.84rem; color: rgba(6,6,8,0.72); font-weight: 500; }

/* RIGHT PANEL */
.split-right {
  flex: 1;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 32px 80px;
  position: relative; z-index: 1;
}
.form-wrap { width: 100%; max-width: 580px; }

/* ── CARDS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.login-card, .req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 44px 40px;
  position: relative; overflow: hidden;
  animation: fadeUp 0.5s ease both;
}
.login-card::before, .req-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.login-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.login-title {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2rem;
  color: var(--white); line-height: 1.15; margin-bottom: 8px;
}
.login-sub {
  color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 32px;
}

/* ── FORM ELEMENTS ── */
.form-row { margin-bottom: 20px; }
.form-row > label {
  display: block; font-family: 'Space Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 7px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%; background: var(--black2); border: 1px solid var(--border);
  color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.93rem;
  padding: 13px 15px; outline: none; border-radius: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-muted); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,165,0,0.08);
}
.form-row textarea { resize: vertical; }
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B80' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-row select option { background: var(--black2); }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Checkboxes */
.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-item {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 10px 14px; border: 1px solid var(--border); background: var(--black2);
  transition: border-color 0.2s, background 0.2s;
}
.checkbox-item:hover { border-color: rgba(240,165,0,0.3); }
.checkbox-item.selected { border-color: rgba(240,165,0,0.4); background: rgba(240,165,0,0.05); }
.checkbox-item input[type=checkbox] {
  appearance: none; width: 17px; height: 17px; flex-shrink: 0;
  background: var(--surface2); border: 1px solid var(--border-bright);
  cursor: pointer; position: relative; margin-top: 2px; transition: background 0.2s;
}
.checkbox-item input[type=checkbox]:checked { background: var(--gold); border-color: var(--gold); }
.checkbox-item input[type=checkbox]:checked::after {
  content: ''; position: absolute; top: 2px; left: 5px;
  width: 4px; height: 8px;
  border: 2px solid var(--black); border-top: none; border-left: none;
  transform: rotate(45deg);
}
.checkbox-item > label {
  display: block; text-transform: none; letter-spacing: 0;
  font-size: 0.88rem; color: var(--text); line-height: 1.4; cursor: pointer; margin-bottom: 0;
}
.checkbox-item > label span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* Radios */
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-item {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border: 1px solid var(--border); background: var(--black2);
  transition: border-color 0.2s;
}
.radio-item:hover { border-color: rgba(240,165,0,0.3); }
.radio-item.selected { border-color: rgba(240,165,0,0.4); background: rgba(240,165,0,0.05); }
.radio-item input[type=radio] {
  appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border-bright);
  cursor: pointer; position: relative; flex-shrink: 0; transition: background 0.2s;
}
.radio-item input[type=radio]:checked { background: var(--gold); border-color: var(--gold); }
.radio-item input[type=radio]:checked::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--black);
}
.radio-item > label { font-size: 0.86rem; color: var(--text); cursor: pointer; text-transform: none; letter-spacing: 0; margin-bottom: 0; }

/* Section titles */
.form-section-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.98rem;
  color: var(--gold);
  margin: 28px 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border-bright);
}

/* Greeting bar */
.user-greeting {
  display: flex; align-items: center; gap: 10px;
  background: rgba(240,165,0,0.07); border: 1px solid var(--border-bright);
  padding: 11px 14px; margin-bottom: 24px;
}
.user-greeting-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  flex-shrink: 0; animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.user-greeting p { font-size: 0.83rem; color: var(--text-muted); }
.user-greeting p strong { color: var(--gold); }

/* Submit button */
.btn-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: var(--black);
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  border: none; padding: 16px 28px; cursor: pointer; transition: all 0.3s; margin-top: 10px;
}
.btn-submit:hover { background: var(--gold-light); box-shadow: 0 0 30px rgba(240,165,0,0.4); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-submit svg { width: 16px; stroke: currentColor; fill: none; }

.login-note { text-align: center; margin-top: 18px; font-size: 0.79rem; color: var(--text-muted); line-height: 1.5; }
.login-note span { color: var(--gold); }

/* Terms box */
.terms-box {
  background: var(--black2); border: 1px solid var(--border);
  padding: 18px; max-height: 200px; overflow-y: auto;
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px;
}
.terms-box h4 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem; color: var(--text); margin-bottom: 10px; }
.terms-box p { margin-bottom: 8px; }
.terms-box::-webkit-scrollbar { width: 4px; }
.terms-box::-webkit-scrollbar-track { background: var(--surface2); }
.terms-box::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

.terms-agree {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--border); background: var(--black2);
  transition: border-color 0.2s; margin-bottom: 6px;
}
.terms-agree:hover { border-color: rgba(240,165,0,0.3); }
.terms-agree.agreed { border-color: rgba(240,165,0,0.4); background: rgba(240,165,0,0.05); }
.terms-agree input[type=checkbox] {
  appearance: none; width: 17px; height: 17px; flex-shrink: 0;
  background: var(--surface2); border: 1px solid var(--border-bright);
  cursor: pointer; position: relative; margin-top: 3px; transition: background 0.2s;
}
.terms-agree input[type=checkbox]:checked { background: var(--gold); border-color: var(--gold); }
.terms-agree input[type=checkbox]:checked::after {
  content: ''; position: absolute; top: 2px; left: 5px;
  width: 4px; height: 8px;
  border: 2px solid var(--black); border-top: none; border-left: none;
  transform: rotate(45deg);
}
.terms-agree p { font-size: 0.84rem; color: var(--text); line-height: 1.5; }
.terms-agree p a { color: var(--gold); text-decoration: none; }

/* req form hide/show */
#reqFormWrap { display: none; animation: fadeUp 0.5s ease both; }

/* Success */
.success-wrap { text-align: center; padding: 48px 20px; display: none; }
.success-wrap.show { display: block; animation: fadeUp 0.5s ease; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(240,165,0,0.1); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.success-icon svg { width: 28px; stroke: var(--gold); fill: none; }
.success-wrap h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--white); margin-bottom: 10px; }
.success-wrap p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* Responsive */
@media (min-width: 900px) { .split-left { display: none; } }
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .split-right { padding: 28px 16px 60px; }
  .login-card, .req-card { padding: 28px 20px; }
  .login-title { font-size: 1.65rem; }
  .form-two-col { grid-template-columns: 1fr; }
}