/* Join / registration flow */

.join-page .hero-stack--page .hero {
  min-height: clamp(220px, 32vh, 320px);
}

.join-section {
  margin-top: clamp(-52px, -5.5vw, -32px);
  position: relative;
  z-index: 2;
  padding-bottom: clamp(48px, 6vw, 72px);
}

.join-wrap {
  max-width: 960px;
  margin-inline: auto;
}

.join-steps-bar {
  margin-bottom: 18px;
  padding: 14px clamp(18px, 3vw, 28px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}

.join-steps-bar .auth-steps {
  margin-bottom: 0;
}

.join-page .auth-steps__item.is-active {
  color: var(--olive-800);
}

.join-page .auth-steps__item.is-active .auth-steps__num {
  background: var(--olive-800);
  border-color: var(--olive-800);
  color: var(--on-dark);
  box-shadow: 0 4px 12px rgba(26, 53, 104, .2);
}

.join-page .auth-card {
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 0;
  overflow: hidden;
  border-color: var(--line);
}

.join-page #stepA.auth-card {
  max-width: 920px;
  margin-inline: auto;
}

.join-page #stepB.auth-card {
  max-width: 960px;
  margin-inline: auto;
}

.join-page #confirmNotice.auth-card {
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(32px, 4vw, 48px);
}

.otp-verify {
  text-align: center;
}

.otp-verify__badge {
  margin-inline: auto;
}

.otp-verify__lead {
  margin-top: 10px;
  font-size: .96rem;
  line-height: 1.6;
  color: var(--text-2);
}

.otp-verify__lead strong {
  color: var(--text);
  font-weight: 700;
  word-break: break-all;
}

.otp-verify__hint {
  margin-top: 12px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 40ch;
  margin-inline: auto;
}

.otp-verify__sub {
  margin-top: 14px;
  font-size: .86rem;
  color: var(--text-3);
}

.otp-verify #otpForm {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.otp-inputs__cell {
  width: 46px;
  height: 52px;
  padding: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--line-2);
  background: var(--paper);
}

.otp-inputs__cell:focus {
  border-color: var(--olive-700);
  box-shadow: 0 0 0 3px rgba(46, 118, 230, .12);
  outline: none;
}

.otp-inputs__cell.is-invalid {
  border-color: var(--maroon-600);
  box-shadow: 0 0 0 3px rgba(158, 42, 43, .1);
}

.otp-verify #otpVerifyBtn {
  width: 100%;
  max-width: 280px;
}

.otp-verify__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.otp-verify #otpResendBtn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.join-page #joinSuccess.auth-card {
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(32px, 4vw, 48px);
  text-align: center;
}

/* Step A - split panel */

.join-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.join-aside {
  padding: clamp(28px, 4vw, 44px);
  color: var(--on-dark);
  background:
    radial-gradient(circle at 85% 12%, rgba(212, 175, 55, .22), transparent 42%),
    linear-gradient(165deg, var(--olive-900) 0%, var(--olive-800) 58%, #1a3568 100%);
}

.join-aside__logo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 9px;
  margin-bottom: 20px;
}

.join-aside__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.join-aside__eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .14em;
  color: var(--brass-400);
  margin-bottom: 10px;
}

.join-aside__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.15;
  color: #fff;
}

.join-aside__lead {
  margin-top: 12px;
  color: rgba(242, 246, 252, .82);
  font-size: .92rem;
  line-height: 1.6;
}

.join-perks {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.join-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: rgba(242, 246, 252, .9);
  line-height: 1.45;
}

.join-perks li svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brass-400);
}

.join-form-panel {
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.join-form-panel .kicker-row {
  margin-bottom: 12px;
}

.join-form-panel .h2 {
  margin-top: 0;
}

.join-form-panel__sub {
  margin-top: 6px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text-3);
}

.join-form-panel__sub a {
  color: var(--olive-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.join-form-panel form {
  margin-top: 0;
}

.join-form-panel .field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
}

.join-page .join-form-panel .input-password .input,
.join-page .join-form-wide .input-password .input {
  min-height: 48px;
  border-radius: var(--r-lg);
  border-color: var(--line-2);
  background: var(--paper);
}

.join-page .join-form-panel .input,
.join-page .join-form-wide .input,
.join-page .join-form-wide .select {
  min-height: 48px;
  border-radius: var(--r-lg);
  border-color: var(--line-2);
  background: var(--paper);
}

.join-page .join-form-panel .input:focus,
.join-page .join-form-wide .input:focus,
.join-page .join-form-wide .select:focus {
  border-color: var(--olive-700);
  box-shadow: 0 0 0 3px rgba(46, 118, 230, .12);
}

.join-page .pw-rules-box {
  margin: 0;
}

/* Step B - wide profile form */

.join-step-b-head {
  padding: clamp(24px, 3.5vw, 36px) clamp(24px, 4vw, 44px);
  color: var(--on-dark);
  background:
    radial-gradient(circle at 12% 88%, rgba(212, 175, 55, .18), transparent 40%),
    linear-gradient(165deg, var(--olive-900) 0%, var(--olive-800) 55%, #1a3568 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.join-step-b-head .kicker-row__no { color: var(--brass-400); }
.join-step-b-head .kicker-row__txt { color: rgba(242, 246, 252, .65); }
.join-step-b-head .kicker-row__line { background: rgba(255, 255, 255, .14); }

.join-step-b-head .h2 {
  margin-top: 8px;
  color: #fff;
}

.join-step-b-head__sub {
  margin-top: 8px;
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(242, 246, 252, .78);
  max-width: 62ch;
}

.join-step-b-notice {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: .86rem;
  font-weight: 600;
  color: rgba(242, 246, 252, .92);
}

.join-form-wide {
  padding: clamp(24px, 3.5vw, 40px) clamp(24px, 4vw, 44px) clamp(28px, 4vw, 44px);
}

.join-form-wide form {
  margin-top: 0;
}

.join-form-wide .field > label,
.join-form-wide .field-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
}

.join-page .auth-subhead {
  border-top: none;
  padding-top: 8px;
  margin-top: 8px;
  font-size: .98rem;
  color: var(--olive-800);
  position: relative;
  padding-inline-start: 14px;
}

.join-page .auth-subhead::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  bottom: 4px;
  width: 3px;
  border-radius: 999px;
  background: var(--brass-500);
}

.join-page #profileBtn {
  width: 100%;
  max-width: 320px;
  margin-top: 24px;
}

.join-page .choice.is-invalid {
  border-color: rgba(158, 42, 43, .45);
  background: rgba(158, 42, 43, .05);
  box-shadow: 0 0 0 3px rgba(158, 42, 43, .08);
}

.join-page .choice.is-invalid .choice__t {
  color: var(--maroon-600);
}

@media (max-width: 820px) {
  .join-panel {
    grid-template-columns: 1fr;
  }

  .join-aside {
    padding: 22px 20px 18px;
  }

  .join-aside__logo {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  .join-perks {
    display: none;
  }

  .join-form-panel,
  .join-form-wide {
    padding: 22px 20px 28px;
  }

  .join-page #profileBtn {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .join-steps-bar {
    padding: 12px 14px;
  }

  .join-steps-bar .auth-steps {
    gap: 10px;
    justify-content: space-between;
  }

  .join-steps-bar .auth-steps__item {
    flex: 1 1 0;
    gap: 8px;
    font-size: .8rem;
  }

  .join-steps-bar .auth-steps__label {
    white-space: normal;
  }

  .join-steps-bar .auth-steps__sep {
    flex: 0 0 18px;
    width: 18px;
  }

  .otp-inputs {
    gap: 6px;
  }

  .otp-inputs__cell {
    width: 40px;
    height: 48px;
    font-size: 1.2rem;
  }
}
