.register-page {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(101, 243, 255, 0.1), transparent 28rem),
    radial-gradient(circle at 88% 24%, rgba(168, 140, 255, 0.13), transparent 30rem),
    var(--bg);
}

.register-header { position: sticky; top: 0; }

.register-back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
  touch-action: manipulation;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.register-back-link:hover {
  border-color: rgba(101, 243, 255, 0.7);
  color: var(--ink);
  background: rgba(101, 243, 255, 0.08);
}

.register-hero {
  position: relative;
  min-height: 440px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.register-glow {
  position: absolute;
  top: -180px;
  right: -130px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(110, 183, 255, 0.2);
  filter: blur(110px);
}

.register-hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 82px 0 62px;
}

.register-hero h1 {
  max-width: 960px;
  margin: 12px 0 20px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.register-hero__lede {
  max-width: 740px;
  margin: 0;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.58;
}

.event-facts {
  max-width: 850px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
}

.event-facts div { min-width: 0; padding: 18px 20px; }
.event-facts div + div { border-left: 1px solid var(--line); }
.event-facts dt { margin-bottom: 6px; color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.event-facts dd { margin: 0; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }

.register-workspace { padding: 88px 20px 72px; }

.register-layout {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: block;
  min-width: 0;
}

.register-steps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  margin: 0 0 20px;
}

.step-button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.step-button__number {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.step-button__label { min-width: 0; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.step-button:hover { color: var(--ink); background: var(--panel); }
.step-button[aria-current="step"] { border-color: rgba(101, 243, 255, 0.45); background: rgba(101, 243, 255, 0.09); color: var(--ink); }
.step-button[aria-current="step"] .step-button__number { border-color: var(--cyan); background: var(--cyan); color: #061019; }
.step-button.is-complete .step-button__number { border-color: rgba(101, 243, 255, 0.55); color: var(--cyan); }

.register-card,
.privacy-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.register-card {
  width: 100%;
  min-height: 690px;
  padding: clamp(24px, 4vw, 48px);
}

.register-loading { min-height: 560px; display: grid; place-items: center; color: var(--soft); text-align: center; }
.register-loading[data-tone="error"] { color: #ffb8c2; }

.register-progress {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.register-progress span:first-child { color: var(--cyan); letter-spacing: 0.12em; text-transform: uppercase; }
.register-questions { display: grid; align-content: start; gap: 28px; min-height: 460px; }

.question-field { min-width: 0; }
.question-field fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.question-label,
.question-legend { display: block; margin: 0 0 8px; padding: 0; color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.4; }
.required-mark { color: var(--cyan); }
.question-description { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.question-control,
.question-field select,
.question-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 5, 13, 0.75);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.question-field textarea { min-height: 118px; resize: vertical; }
.question-control::placeholder,
.question-field textarea::placeholder { color: #7c879d; }
.question-field select { cursor: pointer; }
.question-field option { color: #07101e; background: #fff; }
.question-control:hover,
.question-field select:hover,
.question-field textarea:hover { border-color: rgba(101, 243, 255, 0.45); }

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

.choice-option {
  min-width: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 5, 13, 0.5);
  color: var(--soft);
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.choice-option:hover { border-color: rgba(101, 243, 255, 0.55); color: var(--ink); }
.choice-option:has(input:checked) { border-color: var(--cyan); background: rgba(101, 243, 255, 0.1); color: var(--ink); }
.choice-option input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: var(--cyan); }
.consent-option { min-height: 58px; align-items: flex-start; }

.question-field.has-error .question-control,
.question-field.has-error select,
.question-field.has-error textarea,
.question-field.has-error .choice-option { border-color: #ff8a9b; }
.field-error { margin: 8px 0 0; color: #ffb8c2; font-size: 13px; font-weight: 750; line-height: 1.45; }

.register-error-summary {
  margin-bottom: 26px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 138, 155, 0.55);
  border-radius: 12px;
  background: rgba(255, 80, 110, 0.1);
  color: #ffd9de;
  line-height: 1.5;
}

.register-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.register-actions button {
  min-width: 132px;
  min-height: 50px;
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}
.register-actions button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.register-review h2 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 44px); }
.register-review > p:not(.eyebrow) { margin: 0; color: var(--soft); line-height: 1.6; }
.review-list { display: grid; gap: 0; margin-top: 26px; }
.review-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.review-item dt { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.review-item dd { margin: 5px 0 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.review-edit { min-width: 48px; min-height: 44px; align-self: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--cyan); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; touch-action: manipulation; }

.register-success { min-height: 570px; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; }
.register-success h2 { margin: 0; font-size: clamp(32px, 5vw, 50px); }
.register-success p { max-width: 600px; margin: 0; color: var(--soft); line-height: 1.6; }
.success-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: var(--cyan); color: #061019; font-size: 34px; font-weight: 900; }
.confirmation-code { margin: 5px 0 8px; padding: 12px 18px; border: 1px solid var(--cyan); border-radius: 10px; color: var(--cyan); font-size: clamp(20px, 4vw, 30px); letter-spacing: 0.08em; overflow-wrap: anywhere; }

.register-privacy { padding: 0 20px 90px; }
.privacy-card { width: min(100%, var(--max-width)); margin: 0 auto; padding: clamp(25px, 4vw, 42px); }
.privacy-card h2 { margin: 10px 0 18px; font-size: clamp(28px, 4vw, 42px); }
.privacy-card p:not(.eyebrow) { max-width: 920px; margin: 0 0 12px; color: var(--soft); line-height: 1.65; }
.privacy-card a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.register-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(20px, calc((100% - var(--max-width)) / 2));
  color: var(--muted);
}

.register-page button:focus-visible,
.register-page a:focus-visible,
.register-page input:focus-visible,
.register-page select:focus-visible,
.register-page textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 960px) {
  .register-steps { display: flex; overflow-x: auto; overscroll-behavior-x: contain; margin-bottom: 18px; padding: 2px 0 8px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .step-button { width: auto; min-width: 118px; flex: 0 0 auto; scroll-snap-align: start; }
  .register-card { min-height: 0; }
  .register-questions { min-height: 430px; }
}

@media (max-width: 640px) {
  .register-header .nav-shell { width: calc(100% - 28px); min-height: 68px; }
  .register-header .brand span { display: none; }
  .register-back-link { padding-inline: 14px; }
  .register-hero { min-height: 0; }
  .register-hero__inner { width: calc(100% - 28px); padding: 66px 0 46px; }
  .register-hero h1 { font-size: clamp(39px, 13vw, 58px); }
  .event-facts { grid-template-columns: 1fr; }
  .event-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .register-workspace { padding: 56px 14px; }
  .register-card { padding: 22px 16px 0; border-radius: 17px; }
  .register-progress { margin-bottom: 24px; }
  .register-questions { min-height: 0; gap: 25px; }
  .choice-list { grid-template-columns: 1fr; }
  .choice-option { min-height: 52px; }
  .register-actions {
    position: sticky;
    bottom: 0;
    z-index: 6;
    margin: 30px -16px 0;
    padding: 15px 16px max(15px, env(safe-area-inset-bottom));
    background: rgba(5, 7, 17, 0.97);
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.28);
  }
  .register-actions button { flex: 1; min-width: 0; padding-inline: 12px; }
  .register-success { min-height: 520px; padding-bottom: 22px; }
  .register-privacy { padding: 0 14px 58px; }
  .register-footer { align-items: flex-start; flex-direction: column; padding: 25px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .register-page *,
  .register-page *::before,
  .register-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
