:root {
  color-scheme: dark;
  --register-bg: #08131f;
  --register-ink: #2a1d0f;
  --register-paper: #ead8b5;
  --register-paper-soft: rgba(241, 226, 193, 0.76);
  --register-gold: #d6b267;
  --register-gold-strong: #f1d187;
  --register-panel: rgba(7, 16, 27, 0.74);
  --register-panel-strong: rgba(5, 12, 20, 0.9);
  --register-navy: #102538;
  --register-navy-soft: #17334b;
  --register-danger: #b24736;
  font-family: "Source Serif 4", Georgia, serif;
  background: var(--register-bg);
  color: #f6efe2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  cursor: inherit;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  cursor: url("../assets/pointers/default.cur"), auto;
  background:
    radial-gradient(circle at 58% 48%, rgba(255, 210, 124, 0.34), transparent 24%),
    linear-gradient(180deg, rgba(3, 6, 10, 0.25), rgba(3, 6, 10, 0.9)),
    url("../assets/register_bg.webp") center center / cover no-repeat fixed;
}

.register-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.register-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(560px, 7fr);
}

.register-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 52px clamp(24px, 4vw, 56px);
  overflow: hidden;
}

.register-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  max-width: 480px;
}

.register-logo {
  width: min(100%, 380px);
  height: auto;
}

.register-kicker {
  margin: 0;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--register-gold-strong);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.register-hero-copy {
  margin: 0;
  max-width: 24rem;
  font-size: 1.28rem;
  line-height: 1.8;
  color: rgba(248, 240, 226, 0.96);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.58);
}

.register-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.register-wizard {
  width: min(100%, 1000px);
  display: grid;
  gap: 0;
  position: relative;
  color: var(--register-ink);
  border: 1px solid rgba(82, 46, 15, 0.3);
  box-shadow:
    0 36px 70px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 236, 201, 0.08);
}

.register-wizard__mobile-logo {
  display: none;
}

.register-wizard__steps,
.register-wizard__body {
  position: relative;
  padding: 54px 38px;
  border: 54px solid transparent;
  border-image: url("../assets/img/register-parchment.png") 72 fill stretch;
}

.register-wizard__steps {
  padding-bottom: 18px;
  border-bottom-width: 0;
}

.register-wizard__body {
  min-height: 720px;
  padding-top: 24px;
  border-top-width: 0;
}

.wizard-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.wizard-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 100%;
  padding: 16px 18px;
  border: 0;
  background: rgba(132, 94, 45, 0.08);
  color: rgba(67, 45, 20, 0.82);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(118, 82, 38, 0.12);
}

.wizard-step__number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid rgba(84, 58, 26, 0.5);
  background: rgba(105, 75, 37, 0.16);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1;
}

.wizard-step__title {
  display: block;
  margin-bottom: 2px;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-step__copy {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
}

.wizard-step.is-current {
  background: linear-gradient(90deg, rgba(17, 41, 61, 0.94), rgba(10, 28, 44, 0.98));
  color: #f1e6c9;
  box-shadow:
    0 14px 26px rgba(7, 16, 24, 0.16),
    inset 0 0 0 1px rgba(213, 178, 101, 0.42);
}

.wizard-step.is-current .wizard-step__number {
  border-color: rgba(214, 178, 103, 0.92);
  background: radial-gradient(circle at 34% 28%, #1a3952 0%, #0c1f30 55%, #091723 100%);
  box-shadow:
    0 0 0 4px rgba(213, 178, 101, 0.22),
    0 10px 18px rgba(0, 0, 0, 0.24);
}

.wizard-step.is-complete .wizard-step__number {
  border-color: rgba(214, 178, 103, 0.94);
  background: rgba(214, 178, 103, 0.24);
}

.wizard-heading {
  margin: 0 0 8px;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2d1a0c;
  text-shadow: 0 1px 0 rgba(255, 241, 213, 0.4);
}

.wizard-subheading,
.wizard-intro {
  margin: 0;
  text-align: center;
  line-height: 1.6;
  color: rgba(54, 35, 13, 0.9);
}

.wizard-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-divider::before,
.wizard-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(93, 60, 22, 0.28);
}

.wizard-progress {
  margin: 22px 0 26px;
}

.wizard-progress__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(82, 56, 21, 0.16);
  overflow: hidden;
}

.wizard-progress__fill {
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5c24 0%, #c99d53 54%, #f0d590 100%);
  transition: width 220ms ease;
}

.wizard-form {
  display: grid;
  gap: 18px;
}

.wizard-pane {
  display: none;
  gap: 18px;
  animation: wizardFade 240ms ease;
}

.wizard-pane.is-active {
  display: grid;
}

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

.wizard-field {
  display: grid;
  gap: 6px;
}

.wizard-field--full {
  grid-column: 1 / -1;
}

.wizard-label {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(65, 43, 18, 0.88);
}

.wizard-input,
.wizard-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(95, 62, 22, 0.44);
  background: rgba(255, 248, 231, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 0 0 1px rgba(146, 108, 55, 0.08);
  color: #2a190c;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wizard-input::placeholder,
.wizard-textarea::placeholder {
  color: rgba(104, 75, 40, 0.82);
}

.wizard-textarea {
  min-height: 120px;
  resize: vertical;
}

.wizard-input:focus,
.wizard-textarea:focus {
  outline: none;
  border-color: rgba(108, 72, 28, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 0 0 1px rgba(146, 108, 55, 0.1),
    0 0 0 3px rgba(197, 160, 92, 0.18);
}

.wizard-input-wrap {
  position: relative;
}

.wizard-input-wrap .wizard-input {
  padding-right: 58px;
}

.wizard-input--code {
  max-width: 220px;
  margin: 0 auto;
  text-align: center;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: 0.4em;
}

.wizard-visibility {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  min-width: 34px;
  padding: 6px 8px;
  border: 0;
  background: rgba(120, 84, 38, 0.08);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(66, 44, 19, 0.9);
}

.wizard-hint,
.wizard-error,
.wizard-status {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.45;
}

.wizard-hint {
  color: rgba(66, 44, 19, 0.72);
}

.wizard-error {
  color: var(--register-danger);
  min-height: 1.25em;
}

.wizard-status {
  padding: 14px 16px;
  border: 1px solid rgba(92, 63, 26, 0.18);
  background: rgba(245, 233, 206, 0.46);
  color: rgba(66, 44, 19, 0.82);
}

.wizard-status.is-error {
  border-color: rgba(178, 71, 54, 0.22);
  color: #8e2d1f;
}

.wizard-status.is-success {
  border-color: rgba(91, 112, 55, 0.22);
  color: #425620;
}

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

.choice-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  position: relative;
}

.choice-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.choice-card__body {
  height: 100%;
  padding: 20px 18px;
  border: 1px solid rgba(92, 63, 26, 0.24);
  background: rgba(250, 243, 222, 0.52);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.choice-card__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(65, 43, 18, 0.68);
}

.choice-card__title {
  margin: 0 0 10px;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.34rem;
  line-height: 1.12;
}

.choice-card__copy {
  margin: 0;
  line-height: 1.6;
  color: rgba(66, 44, 19, 0.84);
}

.choice-card input:checked + .choice-card__body,
.choice-card.is-selected .choice-card__body {
  border-color: rgba(213, 178, 101, 0.8);
  background: linear-gradient(180deg, rgba(17, 41, 61, 0.95), rgba(10, 28, 44, 0.98));
  color: #f2e6c8;
  transform: translateY(-4px);
  box-shadow: 0 16px 24px rgba(27, 17, 5, 0.16);
}

.choice-card input:checked + .choice-card__body .choice-card__copy,
.choice-card input:checked + .choice-card__body .choice-card__eyebrow,
.choice-card.is-selected .choice-card__body .choice-card__copy,
.choice-card.is-selected .choice-card__body .choice-card__eyebrow {
  color: rgba(242, 230, 200, 0.86);
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.wizard-actions__group {
  display: flex;
  gap: 12px;
}

.wizard-button {
  min-width: 180px;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid rgba(77, 47, 12, 0.34);
  background: linear-gradient(180deg, #12324a 0%, #0e2435 100%);
  color: #f3e6c5;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(220, 186, 112, 0.32),
    0 14px 24px rgba(18, 24, 30, 0.12);
}

.wizard-button[hidden] {
  display: none;
}

.wizard-button--secondary {
  background: rgba(245, 236, 214, 0.48);
  color: rgba(52, 34, 14, 0.9);
  box-shadow: none;
}

.wizard-button[disabled] {
  opacity: 0.55;
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  color: rgba(66, 44, 19, 0.82);
}

.wizard-link {
  color: #0e4c81;
  text-underline-offset: 0.14em;
}

.wizard-summary {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(92, 63, 26, 0.22);
  background: rgba(249, 239, 212, 0.42);
}

.wizard-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(92, 63, 26, 0.12);
}

.wizard-summary__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.wizard-summary__label {
  font-family: "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-summary__value {
  text-align: right;
}

@keyframes wizardFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .register-shell {
    grid-template-columns: 1fr;
  }

  .register-hero {
    display: none;
  }

  .register-panel {
    padding-top: 76px;
  }

  .register-wizard__mobile-logo {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    width: min(320px, calc(100% - 72px));
    height: auto;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.32));
  }
}

@media (max-width: 920px) {
  .register-wizard__steps,
  .register-wizard__body {
    min-height: 0;
    border-image-slice: 72 fill;
  }

  .wizard-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .register-panel {
    padding: 62px 10px 22px;
  }

  .register-wizard__steps,
  .register-wizard__body {
    padding: 34px 24px;
    border-width: 34px;
  }

  .wizard-grid,
  .choice-grid,
  .choice-grid--three,
  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .wizard-actions,
  .wizard-summary__row,
  .wizard-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-actions__group {
    width: 100%;
    flex-direction: column-reverse;
  }

  .wizard-button {
    width: 100%;
    min-width: 0;
  }

  .wizard-summary__value {
    text-align: left;
  }

  .register-wizard__mobile-logo {
    width: min(260px, calc(100% - 48px));
  }
}
