:root {
  --bg: #030a12;
  --bg2: #060f1a;
  --card: #0a1626;
  --accent: #00d4ff;
  --accent2: #7b5fe8;
  --accent3: #00ffb2;
  --border: rgba(0, 212, 255, 0.1);
  --border2: rgba(0, 212, 255, 0.18);
  --text: #e8f4ff;
  --text2: #6a8fa8;
  --danger: #ff4d6d;
  --warn: #ffb800;
  --success: #00ffb2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Grid bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.06) 0%,
    transparent 70%
  );
  top: -150px;
  left: -150px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(123, 95, 232, 0.07) 0%,
    transparent 70%
  );
  bottom: -100px;
  right: -100px;
  animation-delay: -4s;
}

@keyframes orbPulse {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

/* ── Navbar ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-ctas {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-ghost {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  background: transparent;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  padding: 0.45rem 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.88;
}

/* ── Layout ── */
.page-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.reg-layout {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 2.5rem;
  max-width: 1200px;
  width: 100%;
  align-items: start;
}

/* ── Left panel (side info) ── */
.side-panel {
  padding-top: 0.5rem;
}

.side-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.side-logo span {
  color: var(--accent);
}

.side-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: block;
}

.bonus-hero {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.07),
    rgba(123, 95, 232, 0.07)
  );
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.bonus-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(
    var(--accent),
    var(--accent2),
    var(--accent3),
    var(--accent)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  color: #030a12;
}

.bonus-circle strong {
  font-size: 1.1rem;
}

.bonus-desc h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.bonus-desc p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
}

.side-steps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.side-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 22, 38, 0.6);
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step-body h5 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.step-body p {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.5;
}

.trust-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.trust-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── Auth card ── */
.auth-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2.2rem 2rem 1.8rem;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.06),
    0 32px 64px rgba(0, 0, 0, 0.5);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.auth-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem;
  color: var(--text2);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

/* ── Alerts ── */
.auth-alert {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.auth-alert.error {
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.25);
  color: var(--danger);
}

.auth-alert.success {
  background: rgba(0, 255, 178, 0.07);
  border: 1px solid rgba(0, 255, 178, 0.22);
  color: var(--success);
}

/* Success box after registration */
.success-box {
  background: rgba(0, 255, 178, 0.06);
  border: 1px solid rgba(0, 255, 178, 0.22);
  border-radius: 14px;
  padding: 1.4rem;
  font-size: 0.84rem;
  line-height: 1.8;
}

.success-box h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--accent3);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.success-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0, 255, 178, 0.1);
}

.success-row:last-child {
  border-bottom: none;
}

.success-row span:first-child {
  color: var(--text2);
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
}

.success-row span:last-child {
  font-weight: 700;
  color: var(--text);
}

/* ── Form ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.38rem;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}

label .req {
  color: var(--accent);
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border2);
  border-radius: 9px;
  padding: 0.68rem 0.9rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-control::placeholder {
  color: var(--text2);
}

.form-control:focus {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.07);
  background: rgba(0, 212, 255, 0.025);
}

.form-control[readonly] {
  opacity: 0.6;
  cursor: default;
}

/* Sponsor verified state */
.form-control.verified {
  border-color: rgba(0, 255, 178, 0.45);
}

.form-control.error-field {
  border-color: rgba(255, 77, 109, 0.45);
}

/* Input with action btn */
.input-action {
  position: relative;
}

.input-action .form-control {
  padding-right: 5.5rem;
}

.input-btn {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.input-btn:hover {
  background: rgba(0, 212, 255, 0.2);
}

.input-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Eye toggle */
.input-wrap {
  position: relative;
}

.input-wrap .form-control {
  padding-right: 3rem;
}

.eye-btn {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2);
  transition: color 0.2s;
}

.eye-btn:hover {
  color: var(--accent);
}

/* ── OTP section ── */
.otp-section {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.otp-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.otp-btns {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.otp-btn {
  flex: 1;
  padding: 0.58rem;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.otp-btn:hover:not(:disabled) {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent);
}

.otp-btn.sent {
  border-color: rgba(0, 255, 178, 0.4);
  color: var(--accent3);
  background: rgba(0, 255, 178, 0.05);
}

.otp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.otp-msg {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 7px;
}

.otp-msg.show {
  display: flex;
}

.otp-msg.ok {
  color: var(--accent3);
  background: rgba(0, 255, 178, 0.07);
}

.otp-msg.err {
  color: var(--danger);
  background: rgba(255, 77, 109, 0.07);
}

/* ── Terms ── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.chk {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.terms-row label {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  color: var(--text2);
  margin: 0;
  font-weight: 400;
}

.terms-row a {
  color: var(--warn);
}

/* ── Submit ── */
.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.1s;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08)
  );
}

.btn-submit:hover {
  opacity: 0.9;
}

.btn-submit:active {
  transform: scale(0.99);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-footer {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.86rem;
  color: var(--text2);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2));
}

.auth-divider::after {
  transform: rotate(180deg);
}

.auth-divider span {
  font-size: 0.66rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text2);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ── Spinner ── */
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading .spinner {
  display: inline-block;
}

/* ── Page footer ── */
footer.page-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text2);
  border-top: 1px solid var(--border);
}

footer.page-foot a {
  color: var(--accent);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .reg-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    order: 2;
  }

  .auth-card {
    order: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 440px) {
  .auth-card {
    padding: 1.6rem 1.2rem;
  }

  .otp-btns {
    flex-direction: column;
  }
}
