/* Auth pages: login / join / member area */

.auth-page { background: var(--paper); }
.hero--auth .hero__bg img { object-position: 50% 35%; }

.auth-wrap {
  max-width: 560px;
  margin-inline: auto;
}
.auth-wrap--wide { max-width: 900px; }

.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
  padding: clamp(24px, 3.4vw, 44px);
}
.auth-card.is-hidden { display: none; }
.auth-card--wide { max-width: none; }

.auth-card form { margin-top: clamp(20px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.auth-card form .form-grid { display: grid; }

.auth-switch { margin-top: 20px; text-align: center; color: var(--text-2); font-size: .96rem; }
.auth-switch a, .auth-card .lead a { color: var(--olive-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-switch a:hover, .auth-card .lead a:hover { color: var(--olive-800); }

.auth-alert {
  margin-top: 0;
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 600;
  border: 1.5px solid transparent;
}
.auth-alert--error { background: rgba(158, 42, 43, .08); color: var(--maroon-600); border-color: rgba(158, 42, 43, .28); }
.auth-alert--success { background: rgba(94, 113, 73, .1); color: var(--olive-800); border-color: rgba(94, 113, 73, .3); }
.auth-alert--info { background: var(--paper-2); color: var(--text-2); border-color: var(--line-2); }

.pw-rules-box {
  margin: -2px 0 0;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.pw-rules__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-2);
}

.pw-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.pw-rules li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .86rem;
  line-height: 1.45;
  color: var(--text-3);
  padding-inline-start: 0;
  position: static;
}

.pw-rules li::before {
  content: none;
}

.pw-rules__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: .68rem;
  font-weight: 800;
  color: var(--text-3);
  line-height: 1;
}

.pw-rules li.is-ok {
  color: var(--olive-800);
  font-weight: 600;
}

.pw-rules li.is-ok .pw-rules__icon {
  border-color: var(--olive-700);
  background: rgba(94, 113, 73, .12);
  color: var(--olive-800);
}

.input-password {
  position: relative;
}

.input-password .input {
  padding-inline-end: 48px;
}

.input-password__toggle {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--text-3);
  transition: color .15s var(--ease), background .15s var(--ease);
}

.input-password__toggle:hover {
  color: var(--olive-700);
  background: var(--paper-2);
}

.input-password__toggle:focus-visible {
  outline: 2px solid var(--olive-700);
  outline-offset: 2px;
}

.input-password__icon {
  width: 20px;
  height: 20px;
}

.input-password__icon--hide {
  display: none;
}

.input-password__toggle.is-visible .input-password__icon--show {
  display: none;
}

.input-password__toggle.is-visible .input-password__icon--hide {
  display: block;
}

@media (max-width: 520px) { .pw-rules { gap: 7px; } }

.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 36px);
  color: var(--text-3);
}
.auth-steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
}
.auth-steps__num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: .82rem;
  line-height: 1;
}
.auth-steps__label {
  min-width: 0;
  line-height: 1.25;
}
.auth-steps__item.is-active { color: var(--text); }
.auth-steps__item.is-active .auth-steps__num {
  background: var(--olive-800);
  border-color: var(--olive-800);
  color: var(--on-dark);
}
.auth-steps__item.is-done .auth-steps__num {
  background: var(--brass-500);
  border-color: var(--brass-500);
  color: var(--ink);
}
.auth-steps__sep {
  flex: 0 0 auto;
  width: 40px;
  height: 1px;
  background: var(--line-2);
}

.auth-subhead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 4px;
}

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice--sm { padding: 10px 16px; }
.choice--sm input { width: 16px; height: 16px; margin-top: 0; }

.auth-success__badge {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--olive-800); color: var(--brass-400);
  display: grid; place-items: center; margin: 0 auto;
}
.auth-success__badge svg { width: 36px; height: 36px; }
#stepA .auth-success__badge,
#confirmNotice .auth-success__badge,
#joinSuccess .auth-success__badge { margin-bottom: 4px; }
#confirmNotice, #joinSuccess { text-align: center; }

.account-welcome-banner {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: rgba(46, 118, 230, .08);
  border: 1px solid rgba(46, 118, 230, .22);
  color: var(--text);
  font-size: .94rem;
  font-weight: 600;
}

.account-welcome-banner a {
  color: var(--olive-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
