/* ── 폰트 ── */
@font-face {
  font-family: 'Pretendard';
  src: url('../../fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── 페이지 전체 ── */
.register-page {
  font-family: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', Arial, sans-serif;
  background: #f4f5f7;
  min-height: 100vh;
}

.register-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  padding: 48px 20px;
  margin: 0 auto;
}

/* ── 로고 ── */
.register-logo {
  display: block;
}

/* ── 카드 ── */
.register-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 52px 52px 44px;
}

/* ── 단계 표시 ── */
.register-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.register-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.register-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #aaa;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.register-step__label {
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
  transition: color 0.2s;
}

.register-step.active .register-step__num {
  background: #1A1A2E;
  color: #fff;
}

.register-step.active .register-step__label {
  color: #1A1A2E;
  font-weight: 600;
}

.register-step.done .register-step__num {
  background: #27ae60;
  color: #fff;
}

.register-step.done .register-step__label {
  color: #27ae60;
}

/* 단계 사이 연결선 */
.register-step-line {
  width: 64px;
  height: 3px;
  background: #e8e8e8;
  margin-bottom: 26px;
  transition: background 0.2s;
}

.register-step-line.done,
.register-step-line.active {
  background: #27ae60;
}

/* ── 제목 ── */
.register-title {
  font-size: 24px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 24px;
}

.register-subtitle {
  font-size: 16px;
  color: #888;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── 에러/경고 메시지 ── */
.register-messages {
  margin-bottom: 20px;
}

.register-error {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: #c0392b;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 15px;
}

/* ── 전체 동의 ── */
.terms-all {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #f8f8fb;
  border: 1.5px solid #e4e4ee;
  border-radius: 12px;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

.terms-all input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #1A1A2E;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-all__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.terms-all__title {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A2E;
}

.terms-all__sub {
  font-size: 13px;
  color: #999;
}

/* ── 약관 목록 ── */
.terms-list {
  list-style: none;
  border-top: 1.5px solid #e8e8e8;
  margin: 0 0 24px;
}

.terms-item {
  display: flex;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid #f0f0f0;
  gap: 8px;
}

.terms-item--desc {
  align-items: flex-start;
}

.terms-item__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
  user-select: none;
}

.terms-item__row--top {
  align-items: flex-start;
}

.terms-item__row--top input[type="checkbox"] {
  margin-top: 2px;
}

.terms-item__row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #1A1A2E;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-item__text {
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}

.terms-required {
  font-size: 14px;
  font-weight: 400;
  color: #888;
}

.terms-optional {
  font-size: 14px;
  color: #aaa;
}

.terms-item__btn {
  background: none;
  border: none;
  font-size: 26px;
  color: #bbb;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
  line-height: 1;
  font-family: inherit;
}

.terms-item__btn:hover {
  color: #1A1A2E;
}

.terms-item__desc {
  font-size: 13px;
  color: #aaa;
  margin-top: 4px;
  line-height: 1.5;
}

.terms-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 20px 0;
}

/* ── 폼 ── */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.register-field__label {
  font-size: 15px;
  font-weight: 600;
  color: #444;
}

.register-field__row {
  display: flex;
  gap: 10px;
}

.register-input {
  flex: 1;
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.register-input:focus {
  border-color: #1A1A2E;
}

.register-input::placeholder {
  color: #aaa;
}

.register-input.valid {
  border-color: #27ae60;
}

.register-input.invalid {
  border-color: #e74c3c;
}

/* ── 중복확인 버튼 ── */
.register-btn-check {
  padding: 0 20px;
  height: 56px;
  background: #fff;
  color: #1A1A2E;
  border: 1.5px solid #1A1A2E;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.register-btn-check:hover {
  background: #1A1A2E;
  color: #fff;
}

.register-btn-check:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── AJAX 피드백 ── */
.register-feedback {
  font-size: 13px;
  min-height: 18px;
}

.register-feedback.success {
  color: #27ae60;
}

.register-feedback.error {
  color: #c0392b;
}

/* ── 이메일 영역 ── */
.register-email-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.register-email-at {
  font-size: 18px;
  color: #aaa;
  flex-shrink: 0;
}

.register-email-select {
  flex: 1;
  padding: 16px 14px;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: #222;
  outline: none;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.register-email-select:focus {
  border-color: #1A1A2E;
}

.register-email-direct {
  display: none;
  flex: 1;
}

/* ── 주 버튼 ── */
.register-btn-primary {
  width: 100%;
  padding: 18px;
  background: #1A1A2E;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.register-btn-primary:hover {
  background: #2B2B4E;
}

.register-btn-primary:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* ── 본인인증 안내 박스 ── */
.identity-guide {
  text-align: center;
  padding: 40px 0;
}

.identity-guide__icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.identity-guide__text {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 36px;
}

.identity-guide__note {
  font-size: 13px;
  color: #aaa;
  margin-top: 20px;
}

/* ── 하단 링크 ── */
.register-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.register-links a {
  font-size: 15px;
  color: #555;
  text-decoration: none;
}

.register-links a:hover {
  color: #111;
  text-decoration: underline;
}

/* ── 완료 페이지 ── */
.complete-wrap {
  text-align: center;
  padding: 20px 0 12px;
}

.complete-wrap__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #27ae60;
  color: #fff;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.complete-wrap__title {
  font-size: 26px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 12px;
}

.complete-wrap__text {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── 메인으로 돌아가기 ── */
.register-back {
  font-size: 14px;
  color: #888;
  text-decoration: none;
}

.register-back:hover {
  color: #444;
}
