/* ============================================================
   회원가입 UI 시안 — 홈 디자인 언어(화이트/블랙/핑크) 유지
   ============================================================ */

.join-body { background: var(--bg-soft); }

.join-main {
  min-height: 100vh;
  padding: calc(var(--header-h) + 56px) 20px 80px;
  display: flex;
  justify-content: center;
}

.join-wrap {
  width: 100%;
  max-width: 480px;
}

.join-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.join-eyebrow .eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

.join-title {
  margin-top: 10px;
  font-size: clamp(30px, 6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.join-sub {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-sub);
}

/* ---------- 진행 단계 ---------- */
.steps {
  margin-top: 28px;
  display: flex;
  align-items: center;
}
.step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.step i {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-style: normal;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.step:not(:first-child)::before {
  content: "";
  display: block;
  width: 100%;
  min-width: 14px;
  height: 1.5px;
  margin: 0 8px;
  background: var(--line);
}
.step:not(:first-child) { flex: 1; }
.step.is-active { color: var(--text); }
.step.is-active i {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}
.step.is-done i {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

/* ---------- 카드 & 패널 ---------- */
.join-card {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 5vw, 36px);
}

.panel { display: none; }
.panel.is-active { display: block; animation: panel-in 0.28s ease; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.panel-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}
.panel-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 소셜 로그인 버튼 ---------- */
.kakao-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 12px;
  background: #fee500;
  color: #191919;
  font-size: 15px;
  font-weight: 650;
  transition: background 0.18s ease;
}
.kakao-btn:hover { background: #f3da00; }
.kakao-symbol { width: 19px; height: 19px; flex-shrink: 0; }

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 650;
  transition: background 0.18s ease;
}
.google-btn:hover { background: var(--bg-soft); }
.google-g { width: 19px; height: 19px; flex-shrink: 0; }

/* ---------- 폼 ---------- */
.field { margin-bottom: 20px; }
.field label,
.field .field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
}
.field label em, .field .field-label em {
  color: var(--pink);
  font-style: normal;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.18s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--black);
}
.field input[readonly] {
  background: var(--bg-soft);
  color: var(--text-sub);
}
.field-help {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.field-error { color: var(--pink-deep); }

/* 아이디 중복 확인 */
.id-row { display: flex; gap: 8px; }
.id-row input { flex: 1; min-width: 0; }
.id-check {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 13.5px;
  border-radius: 10px;
}
.field-ok { color: #3a8f5d; }

/* 국적 카드 */
.nation-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.nation-card {
  position: relative;
  display: block;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.nation-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nation-card strong {
  display: block;
  font-size: 14.5px;
}
.nation-card span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-dim);
}
.nation-card:has(input:checked) {
  border-color: var(--black);
  background: var(--bg-soft);
}

/* 휴대폰 */
.phone-row {
  display: flex;
  gap: 8px;
}
.phone-cc {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 58px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-sub);
}
.phone-row input { flex: 1; }

.btn-block { width: 100%; }

/* ---------- 인증 ---------- */
.verify-head { text-align: center; }
.verify-head strong { font-size: 18px; }
.verify-head p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

.done-check {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.done-check-lg { width: 56px; height: 56px; font-size: 28px; }

.btn-back {
  margin-top: 18px;
  font-size: 13.5px;
}

/* OTP */
.otp-row {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.otp-row input {
  width: 46px;
  height: 56px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.18s ease;
}
.otp-row input:focus { outline: none; border-color: var(--black); }
.otp-row input.is-filled { border-color: var(--black); }

.otp-demo {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
}
.otp-demo strong {
  font-family: var(--font-en);
  color: var(--pink);
  letter-spacing: 0.06em;
}

#otpBtn { margin-top: 16px; }
#otpError { text-align: center; margin-top: 12px; }

.otp-foot {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.link-btn {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-sub);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:disabled {
  color: var(--text-dim);
  text-decoration: none;
  cursor: default;
}

/* ---------- 완료 ---------- */
.done-hero { text-align: center; }
.done-hero h2 {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 800;
}
.done-hero p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--text-sub);
}

.grade-card {
  margin-top: 24px;
  padding: 18px;
  background: var(--bg-soft);
  border-radius: 12px;
}
.grade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.grade-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.grade-next {
  font-size: 13px;
  color: var(--text-sub);
}
.grade-next strong {
  font-family: var(--font-en);
  color: var(--pink);
}
.grade-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.perk-list { margin-top: 20px; }
.perk-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.perk-list li:last-child { border-bottom: none; }
.perk-ok, .perk-lock {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  padding: 3px 0;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.perk-ok { background: var(--pink-soft); color: var(--pink); }
.perk-lock { background: rgba(0, 0, 0, 0.06); color: var(--text-dim); }

.done-cta {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.join-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- 모바일 ---------- */
@media (max-width: 480px) {
  .steps span { display: none; }
  .steps .is-active span { display: inline; }
}
@media (max-width: 430px) {
  .otp-row { gap: 6px; }
  .otp-row input { width: 40px; height: 50px; font-size: 19px; }
}
@media (max-width: 380px) {
  .otp-row input { width: 36px; height: 48px; font-size: 18px; }
  .nation-cards { grid-template-columns: minmax(0, 1fr); }
}
