.register-page nav .nav-signup[aria-current="page"] {
  color: var(--surface);
}

.register-page #main {
  width: min(100% - 32px, 580px);
  margin-inline: auto;
  padding-bottom: 48px;
}

.register-page .page-intro {
  padding: 20px 4px 18px;
}

.register-page .page-intro h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: -.025em;
}

.register-page .page-intro p {
  margin: 0;
}

.register-page .registration {
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid #e2c9aa;
  border-radius: 16px;
  background: #f3e5ce;
}

.register-page .registration fieldset {
  min-width: 0;
  gap: 6px;
}

.register-page .registration label {
  margin-top: 8px;
}

.register-page .registration label:first-of-type {
  margin-top: 0;
}

.register-page .registration-hint {
  margin: 0;
  color: #675345;
  font-size: 13px;
  line-height: 1.5;
}

.register-page .registration input,
.register-page .registration select {
  min-height: 48px;
  border-color: #977a5f;
  font-size: 16px;
}

.register-page .registration .button {
  width: 100%;
  margin-top: 12px;
  box-shadow: none;
}

.register-page .registration-referral summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.register-page #registration-status {
  margin: 12px 0 0;
  min-height: 1.5em;
}

.register-page .registration-success h2 {
  margin: 0;
}

.register-page .registration-success h2:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.register-page .registration-success p {
  margin: 14px 0 0;
}

.register-page .registration-existing {
  padding-inline: 4px;
  margin-top: 18px;
  font-size: 14px;
}

.register-page [hidden] {
  display: none;
}

.register-page .registration:has(.registration-success:not([hidden])) + .registration-existing {
  display: none;
}
