/* ── 레이아웃 ────────────────────────────────────────── */
.signup-wrap {
  display: flex;
  min-height: calc(100vh - 68px);
}

/* ── 왼쪽 소개 패널 ─────────────────────────────────── */
.signup-side {
  width: 360px;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--primary) 0%, #0a3d55 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}
.signup-side-inner { color: #fff; }
.side-logo {
  width: 64px; height: 64px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 6px;
}
.side-logo img { width: 100%; height: 100%; object-fit: contain; }
.signup-side h2 { font-size: 24px; font-weight: 900; line-height: 1.4; margin-bottom: 12px; }
.signup-side > div > p { font-size: 14px; opacity: .85; line-height: 1.7; margin-bottom: 32px; }

.side-benefits { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.side-benefits li { display: flex; align-items: flex-start; gap: 14px; }
.benefit-icon {
  font-size: 22px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.side-benefits strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 3px; }
.side-benefits p { font-size: 12px; opacity: .78; line-height: 1.5; margin: 0; }

/* ── 오른쪽 폼 ──────────────────────────────────────── */
.signup-form-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 80px;
  background: var(--bg);
  overflow-y: auto;
}
.signup-form-inner {
  width: 100%;
  max-width: 520px;
}
.signup-form-inner h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
}
.signup-desc { font-size: 14px; color: var(--text-sub); margin-bottom: 28px; }

/* ── 소셜 버튼 ──────────────────────────────────────── */
.social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity .2s, transform .1s;
}
.social-btn:hover { opacity: .88; transform: translateY(-1px); }
.social-icon { font-size: 18px; display: flex; align-items: center; }
.social-btn.kakao { background: #FEE500; color: #3c1e1e; }
.social-btn.naver { background: #03C75A; color: #fff; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-sub);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── 폼 필드 ────────────────────────────────────────── */
.signup-form { display: flex; flex-direction: column; gap: 16px; }

.sform-group { display: flex; flex-direction: column; gap: 7px; }
.sform-group label { font-size: 13px; font-weight: 700; color: var(--text); }
.required { color: var(--red); margin-left: 2px; }
.sform-hint { font-size: 12px; min-height: 16px; }

.sform-group input,
.sform-group select {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.sform-group input:focus,
.sform-group select:focus { border-color: var(--primary); }
.sform-group input::placeholder { color: #bbb; }

.sform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.btn-check-sm {
  background: var(--primary-light);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s;
}
.btn-check-sm:hover { background: var(--primary); color: #fff; }

/* 비밀번호 */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%; transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-sub);
  transition: color .2s;
}
.pw-toggle:hover { color: var(--text); }

.pw-strength { display: flex; align-items: center; gap: 10px; }
.strength-bar { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.strength-fill { height: 100%; width: 0; border-radius: 3px; transition: all .4s; }
#strengthText { font-size: 12px; font-weight: 600; min-width: 54px; }

/* SMS 타이머 */
.sms-timer {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 4px;
}

/* 이메일 */
.email-row { display: flex; align-items: center; gap: 6px; }
.email-row input { flex: 1; min-width: 0; }
.email-row span { font-size: 16px; font-weight: 700; color: var(--text-sub); flex-shrink: 0; }
.email-row select { flex-shrink: 0; width: 130px; }

/* 성별 */
.gender-btns { display: flex; gap: 8px; }
.gender-btn {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-sub);
  background: #fff;
  transition: all .2s;
}
.gender-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gender-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ── 약관 동의 ──────────────────────────────────────── */
.agree-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agree-row-s {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}
.agree-row-s input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.agree-all-s { font-weight: 800; font-size: 14px; }
.agree-divider-s { height: 1px; background: var(--border); }
.agree-view {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-sub);
  text-decoration: underline;
  flex-shrink: 0;
}

/* ── 가입 버튼 ──────────────────────────────────────── */
.btn-signup {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  transition: background .2s, transform .1s;
  box-shadow: 0 4px 16px rgba(26,107,138,.3);
  margin-top: 4px;
}
.btn-signup:hover { background: var(--primary-dark); transform: translateY(-1px); }

.login-link { text-align: center; font-size: 13px; color: var(--text-sub); }
.login-link a { color: var(--primary); font-weight: 700; }

/* ── 완료 모달 ──────────────────────────────────────── */
.done-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.95);
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border-radius: 22px;
  padding: 48px 36px;
  text-align: center;
  z-index: 201;
  opacity: 0;
  visibility: hidden;
  transition: all .35s;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
}
.done-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.done-icon { font-size: 68px; margin-bottom: 18px; }
.done-modal h2 { font-size: 24px; font-weight: 900; color: var(--text); margin-bottom: 12px; }
.done-modal p { font-size: 14px; color: var(--text-sub); line-height: 1.8; margin-bottom: 28px; }
.done-modal strong { color: var(--primary); }
.btn-done {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s;
}
.btn-done:hover { background: var(--primary-dark); }

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .signup-side { display: none; }
  .signup-form-wrap { padding: 32px 20px 60px; }
}
@media (max-width: 520px) {
  .sform-row { grid-template-columns: 1fr; }
  .email-row { flex-wrap: wrap; }
  .email-row select { width: 100%; }
  .signup-form-inner h1 { font-size: 22px; }
}

/* ── 소셜 회원가입 모달 ─────────────────────────────── */
.social-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.94);
  width: min(480px, 94vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0,0,0,.22);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s, opacity .25s;
  max-height: 90vh;
  overflow-y: auto;
}
.social-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.social-modal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  border-radius: 18px 18px 0 0;
  font-size: 16px;
}
.social-modal-body {
  padding: 20px 22px 24px;
}
.social-modal-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
}
.btn-cancel-social {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  background: #f0f0f0;
  text-align: center;
  transition: background .2s;
}
.btn-cancel-social:hover { background: #e0e0e0; }
