:root {
  --blue-900: #08264a;
  --blue-800: #0b3b73;
  --blue-600: #1f5fae;
  --blue-500: #2563eb;
  --sky-50: #f1f7ff;
  --line: #d7e5f6;
  --text: #071d38;
  --muted: #64748b;
  --danger: #b42331;
  --success: #08794a;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, .12), transparent 28%),
    linear-gradient(135deg, #f8fbff, #eef5ff);
}

.recover-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
}

.recover-hero {
  position: relative;
  padding: 36px;
  border: 1px solid rgba(31, 95, 174, .16);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(255,255,255,.20), transparent 34%),
    linear-gradient(145deg, var(--blue-900), var(--blue-600));
  box-shadow: 0 28px 70px rgba(8, 38, 74, .22);
  overflow: hidden;
}

.recover-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -82px;
  bottom: -72px;
  border-radius: 50%;
  border: 28px solid rgba(255,255,255,.10);
}

.recover-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #eaf4ff;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255,255,255,.13);
}

.recover-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 54px 0 34px;
}

.recover-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 6px;
}

.recover-brand span,
.recover-brand strong { display: block; }
.recover-brand span { color: #cfe8ff; font-size: 13px; font-weight: 700; }
.recover-brand strong { margin-top: 3px; font-size: 18px; }

.recover-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 560px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.recover-hero p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 18px 0 0;
  color: #d9ecff;
  line-height: 1.65;
}

.recover-security {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.recover-security span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.recover-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 28px 70px rgba(15, 43, 77, .14);
  padding: 30px;
  backdrop-filter: blur(10px);
}

.wizard-head p {
  margin: 0 0 5px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.wizard-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.03em;
}

.wizard-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 26px 0;
  padding: 0;
}

.wizard-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.wizard-progress li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: #e5eef9;
}

.wizard-progress li:first-child::before { display: none; }

.wizard-progress span {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #dbe7f5;
  background: #fff;
}

.wizard-progress li.active,
.wizard-progress li.done { color: var(--blue-600); }
.wizard-progress li.active span,
.wizard-progress li.done span {
  border-color: var(--blue-500);
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,99,235,.24);
}
.wizard-progress li.done::before,
.wizard-progress li.active::before { background: #9ec5ff; }

.wizard-form,
.wizard-step { display: grid; gap: 14px; }

.wizard-step {
  min-height: 280px;
  align-content: start;
  padding: 24px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.step-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #e8f2ff;
  color: var(--blue-600);
  font-size: 23px;
}

.step-icon.success {
  background: #e8f8f0;
  color: var(--success);
}

.wizard-step h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.02em;
}

.wizard-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.wizard-step label {
  display: grid;
  gap: 8px;
  color: #17395f;
  font-size: 13px;
  font-weight: 900;
}

.wizard-step input {
  width: 100%;
  height: 50px;
  border: 1.5px solid #c7d9ef;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  font: 700 15px/1 Inter, Arial, sans-serif;
  outline: none;
}

.wizard-step input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.password-grid,
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.password-hint {
  color: var(--muted);
  font-weight: 700;
}

.choice-card {
  min-height: 140px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  border: 1.5px solid #cfe1f5;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  padding: 18px;
  cursor: pointer;
}

.choice-card:hover {
  border-color: var(--blue-500);
  box-shadow: 0 16px 34px rgba(31,95,174,.13);
}

.choice-card i {
  color: var(--blue-600);
  font-size: 24px;
}

.choice-card span {
  color: var(--muted);
  font-size: 13px;
}

.wizard-alert {
  min-height: 24px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.wizard-alert.success { color: var(--success); }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.btn-primary,
.btn-light {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.btn-primary {
  margin-left: auto;
  border: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  box-shadow: 0 14px 30px rgba(37,99,235,.25);
}

.btn-light {
  border: 1px solid #cfe1f5;
  background: #fff;
  color: #17395f;
}

.btn-primary:disabled,
.btn-light:disabled {
  opacity: .62;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .recover-shell { grid-template-columns: 1fr; align-content: start; padding-top: 18px; }
  .recover-hero { padding: 26px; }
}

@media (max-width: 640px) {
  .recover-shell { width: min(100% - 20px, 1160px); }
  .recover-card { padding: 18px; border-radius: 22px; }
  .wizard-progress small { display: none; }
  .wizard-step { padding: 18px; }
  .password-grid,
  .choice-grid { grid-template-columns: 1fr; }
  .wizard-actions { flex-direction: column; }
  .btn-primary,
  .btn-light { width: 100%; }
}
