/* ── BatiKraft — Page d'inscription ── */

/* ── PAGE ── */
.register-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(59,130,246,.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(99,102,241,.07), transparent);
}

.register-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px 60px;
}

.register-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* ── STEPPER ── */
.stepper {
  display: flex;
  align-items: center;
  padding: 20px 28px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: all .2s;
}

.step.active  .step-dot { border-color: var(--primary); background: var(--primary); color: #fff; }
.step.done    .step-dot { border-color: var(--success); background: var(--success); color: #fff; }

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .2s;
}

.step.active .step-label { color: var(--text); }
.step.done   .step-label { color: var(--success); }

.step-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
  max-width: 40px;
}

/* ── STEP CONTENT ── */
.step-content {
  padding: 28px 28px 32px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── PLAN CARDS ── */
.plan-select-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  background: transparent;
}

.plan-option:hover { border-color: rgba(59,130,246,.4); background: rgba(59,130,246,.04); }
.plan-option.selected { border-color: var(--primary); background: rgba(59,130,246,.08); }

.plan-option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.plan-option.selected .plan-option-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.plan-option.selected .plan-option-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.plan-option-body { flex: 1; }
.plan-option-name  { font-weight: 700; font-size: 0.9rem; }
.plan-option-desc  { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.plan-option-price {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  white-space: nowrap;
}

.plan-option-price span { font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }

/* ── VERIFICATION CODE ── */
.code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.code-input {
  width: 48px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color .15s;
  font-family: monospace;
}

.code-input:focus { border-color: var(--primary); }
.code-input.filled { border-color: rgba(59,130,246,.4); }

.code-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.code-resend {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  margin: 0 auto;
}

.code-resend:disabled { color: var(--text-muted); cursor: not-allowed; }

/* ── SUCCESS ── */
.success-screen {
  text-align: center;
  padding: 12px 0 8px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34,197,94,.12);
  border: 2px solid rgba(34,197,94,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.success-title    { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.success-subtitle { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }

.success-info-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.success-info-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.success-info-box p:last-child { margin-bottom: 0; }
.success-info-box strong { color: var(--text); }
