/* ── Local aliases ─────────────────────────────────────────────────────── */

:root {
  --surface:  var(--color-surface);
  --surface2: var(--color-surface-2);
  --border:   var(--color-border);
  --border2:  var(--color-border-active);
  --border3:  rgba(192, 132, 252, 0.6);
  --text:     var(--color-text);
  --muted:    var(--color-muted);
  --dim:      var(--color-dim);
  --shimmer:  var(--color-shimmer);
  --green:    var(--color-accent-green);
  --orange:   var(--color-accent-orange);
  --grad:     linear-gradient(var(--gradient));
}

/* ── Page ──────────────────────────────────────────────────────────────── */

.signup-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 40px;
}

/* ── Card ──────────────────────────────────────────────────────────────── */

.signup-card {
  position: relative;
  max-width: 480px;
  width: 92%;
  background: var(--surface);
  border-radius: 16px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(124, 58, 237, 0.1);
  padding: 40px 36px;
}

/* Gradient border via mask technique */
.signup-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(var(--gradient));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Inner top shimmer line */
.signup-card::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--shimmer), transparent);
  pointer-events: none;
}

/* ── Step indicator ────────────────────────────────────────────────────── */

.step-indicator {
  display: flex;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--dim);
  flex-shrink: 0;
  transition: all 0.3s;
}

.step-circle.active,
.step-circle.complete {
  background: var(--grad);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.4);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 14px;
  transition: background 0.3s;
}

.step-line.active {
  background: var(--grad);
}

.step-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.step-label-1 {
  color: var(--shimmer);
}

.step-label-2 {
  color: var(--dim);
  transition: color 0.3s;
}

/* ── Step 1 heading + sub ──────────────────────────────────────────────── */

h1.signup-heading {
  font-size: 34px;
}

h2.signup-heading {
  font-size: 30px;
}

.signup-heading {
  font-family: 'Bebas Neue', sans-serif;
  text-align: center;
  background: linear-gradient(var(--gradient));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.signup-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
  margin-bottom: 28px;
}

/* ── Account type cards ────────────────────────────────────────────────── */

.account-type-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-type-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.account-type-card:hover {
  border-color: var(--border2);
  background: rgba(192, 132, 252, 0.03);
}

.account-type-card.selected {
  border-color: var(--border3);
  background: rgba(192, 132, 252, 0.06);
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.2);
}

/* ── Card icon ─────────────────────────────────────────────────────────── */

.atc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: white;
}

.atc-icon--personal {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.atc-icon--business {
  background: linear-gradient(135deg, #c084fc, #7c3aed);
}

/* ── Card body ─────────────────────────────────────────────────────────── */

.atc-body {
  flex: 1;
}

.atc-title {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.atc-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}

.atc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* ── Tags ──────────────────────────────────────────────────────────────── */

.atc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
}

.atc-tag--green {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.2);
  color: var(--green);
}

.atc-tag--dim {
  background: var(--surface);
  border-color: var(--border);
  color: var(--dim);
}

.atc-tag--orange {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.2);
  color: var(--orange);
}

/* ── Radio indicator ───────────────────────────────────────────────────── */

.atc-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s;
  margin-top: 2px;
}

.atc-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--shimmer);
  transition: transform 0.15s;
}

.account-type-card.selected .atc-radio {
  border-color: var(--shimmer);
}

.account-type-card.selected .atc-radio::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ── Continue button ───────────────────────────────────────────────────── */

.signup-continue {
  margin-top: 24px;
  width: 100%;
  background: var(--grad);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  transition: filter 0.15s, box-shadow 0.15s;
}

.signup-continue:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow:
    0 0 32px rgba(124, 58, 237, 0.55),
    0 4px 20px rgba(124, 58, 237, 0.4);
}

.signup-continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Sign in prompt ────────────────────────────────────────────────────── */

.signup-signin-prompt {
  margin-top: 16px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.signup-signin-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--shimmer);
  font-weight: 500;
  text-decoration: none;
}

.signup-signin-link:hover {
  text-decoration: underline;
}

/* ── Step 2 panels (hidden on load) ────────────────────────────────────── */

#step-2-personal,
#step-2-business {
  display: none;
}

/* ── Step 2 sub pills ──────────────────────────────────────────────────── */

.step2-sub-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 24px;
}

/* ── Form fields ───────────────────────────────────────────────────────── */

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signup-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.signup-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.signup-input:focus {
  border-color: var(--border3);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.08);
}

.signup-input::placeholder {
  color: var(--dim);
}

/* ── Game pills section ────────────────────────────────────────────────── */

.game-select {
  margin-top: 6px;
}

.game-select-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.game-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.game-pill:hover {
  border-color: var(--border2);
  color: var(--text);
}

.game-pill.selected {
  background: rgba(192, 132, 252, 0.12);
  border-color: var(--border2);
  color: var(--shimmer);
}

/* ── Verification notice ───────────────────────────────────────────────── */

.verification-notice {
  margin-top: 16px;
  background: rgba(251, 146, 60, 0.05);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 8px;
  padding: 14px;
}

.verification-title {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

.verification-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ── Submit button ─────────────────────────────────────────────────────── */

#step-2-personal .signup-submit {
  margin-top: 24px;
}

#step-2-business .signup-submit {
  margin-top: 20px;
}

.signup-submit {
  width: 100%;
  background: var(--grad);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  transition: filter 0.15s, box-shadow 0.15s;
}

.signup-submit:hover {
  filter: brightness(1.1);
  box-shadow:
    0 0 32px rgba(124, 58, 237, 0.55),
    0 4px 20px rgba(124, 58, 237, 0.4);
}

/* ── Back button ───────────────────────────────────────────────────────── */

.back-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.back-btn:hover {
  color: var(--text);
}

/* ── Mobile ────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .signup-card {
    width: 92vw;
    padding: 28px 20px;
  }

  .step-circle {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .step-line {
    margin-top: 12px;
  }
}
