@charset "utf-8";

/* ── 전체 배경 ── */
.hl-login-wrap {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  isolation: isolate;
}
.hl-login-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('img/login-bg.jpg') center / cover no-repeat;
  filter: blur(6px) brightness(0.6);
  transform: scale(1.05);
  z-index: -1;
}

/* ── 글래스 카드 ── */
.hl-login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(15, 25, 45, 0.38);
  border: 1px solid rgba(201, 169, 110, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 32px 80px rgba(0,0,0,0.5);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  padding: 56px 48px 44px;
  text-align: center;
  position: relative;
}
.hl-login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A96E, transparent);
}

/* ── 로고 ── */
.hl-login-logo {
  display: block;
  width: 220px;
  margin: 0 auto 40px;
}
.hl-login-logo svg { width: 100%; height: auto; }

/* ── 타이틀 ── */
.hl-login-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #F5F2EC;
  margin: 0 0 12px;
  letter-spacing: -0.06em;
}
.hl-login-title em {
  font-style: normal;
  color: #C9A96E;
}
.hl-login-sub {
  font-size: 13px;
  color: rgba(245, 242, 236, 0.38);
  margin: 0 0 36px;
  line-height: 1.7;
}

/* ── 필드 ── */
fieldset { border: none; padding: 0; margin: 0; }

.hl-field {
  margin-bottom: 16px;
  text-align: left;
}
.hl-field label {
  display: block;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: #ffffff;
  margin-bottom: 8px;
}
.hl-input-wrap {
  position: relative;
}
.hl-input {
  display: block;
  width: 100%;
  background: rgba(8, 15, 28, 0.55);
  border: 1px solid rgba(255,255,255,0.1);
  color: #F5F2EC;
  font-family: inherit;
  font-size: 14px;
  padding: 15px 18px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.hl-input-wrap .hl-input {
  padding-right: 48px;
}
.hl-input::placeholder {
  color: rgba(245, 242, 236, 0.2);
}
.hl-input:focus {
  border-color: rgba(201, 169, 110, 0.5);
  background: rgba(13, 24, 37, 1);
}

/* ── 비밀번호 토글 ── */
.hl-pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(245, 242, 236, 0.25);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
}
.hl-pw-toggle:hover { color: rgba(245, 242, 236, 0.6); }

/* ── 옵션 행 ── */
.hl-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 28px;
  text-align: left;
}
.hl-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: rgba(245, 242, 236, 0.4);
  cursor: pointer;
  user-select: none;
}
.hl-checkbox input { display: none; }
.hl-checkbox-mark {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(13, 24, 37, 0.8);
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}
.hl-checkbox input:checked + .hl-checkbox-mark {
  border-color: #C9A96E;
  background: #C9A96E;
}
.hl-checkbox input:checked + .hl-checkbox-mark::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 1.5px solid #0B1220;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.hl-login-find {
  font-size: 12px;
  color: rgba(245, 242, 236, 0.3);
  text-decoration: none;
  transition: color 0.15s ease;
}
.hl-login-find:hover { color: #C9A96E; }

/* ── 로그인 버튼 ── */
.hl-login-btn {
  display: block;
  width: 100%;
  background: #B8922E;
  color: #F5F2EC;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 17px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.hl-login-btn:hover {
  background: #C9A96E;
  color: #0B1220;
}

/* ── 하단 ── */
.hl-login-footer {
  margin-top: 28px;
  font-size: 12.5px;
  color: rgba(245, 242, 236, 0.28);
}
.hl-login-footer a {
  color: #C9A96E;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.hl-login-footer a:hover { opacity: 0.7; }

/* ── 유틸 ── */
.sound_only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ── 반응형 ── */
@media (max-width: 520px) {
  .hl-login-wrap { padding: 40px 16px; }
  .hl-login-card { padding: 40px 28px 32px; }
  .hl-login-logo { width: 180px; margin-bottom: 28px; }
  .hl-login-title { font-size: 24px; }
}

@media (max-width: 390px) {
  .hl-login-wrap { padding: 24px 12px; }
  .hl-login-card { padding: 32px 20px 28px; }
  .hl-login-logo { width: 150px; margin-bottom: 22px; }
  .hl-login-title { font-size: 21px; }
  .hl-login-sub { font-size: 11.5px; margin-bottom: 24px; }
  .hl-field { margin-bottom: 12px; }
  .hl-input { font-size: 13px; padding: 13px 14px; }
  .hl-input-wrap .hl-input { padding-right: 42px; }
  .hl-login-options { margin: 16px 0 22px; }
  .hl-login-btn { padding: 15px; font-size: 13px; }
  .hl-login-footer { margin-top: 20px; font-size: 11.5px; }
}

/* ════════════════════════════════
   회원가입 전용
   ════════════════════════════════ */

/* 넓은 카드 */
.hl-reg-card {
  width: 100%;
  max-width: 520px;
  background: rgba(15, 25, 45, 0.38);
  border: 1px solid rgba(201, 169, 110, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 32px 80px rgba(0,0,0,0.5);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  padding: 52px 48px 40px;
  text-align: center;
  position: relative;
}
.hl-reg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A96E, transparent);
}

/* 스텝 인디케이터 */
.hl-reg-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}
.hl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(245,242,236,0.25);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hl-step span {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.hl-step.active {
  color: #C9A96E;
}
.hl-step.active span {
  border-color: #C9A96E;
  color: #C9A96E;
}
.hl-step.done {
  color: rgba(201,169,110,0.6);
}
.hl-step.done span {
  border-color: rgba(201,169,110,0.4);
  color: rgba(201,169,110,0.6);
  font-size: 11px;
}
.hl-step-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 8px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.hl-step-line.active {
  background: rgba(201,169,110,0.3);
}

/* 섹션 구분 */
.hl-reg-section {
  text-align: left;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hl-reg-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}
.hl-reg-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  color: #C9A96E;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

/* 필드 메시지 */
.hl-field-msg {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  color: rgba(201,169,110,0.7);
}
.hl-required {
  font-style: normal;
  color: #C9A96E;
  margin-left: 2px;
}

/* 구분선 */
.hl-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: rgba(245,242,236,0.25);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.hl-divider::before,
.hl-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(245,242,236,0.1);
}

/* 본인인증 버튼 */
.hl-cert-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hl-btn-cert {
  background: transparent;
  border: 1px solid rgba(201,169,110,0.4);
  color: #C9A96E;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}
.hl-btn-cert:hover {
  background: rgba(201,169,110,0.1);
}
.hl-cert-done {
  margin-top: 10px;
  font-size: 12px;
  color: #7CE0C6;
  font-weight: 600;
}

/* 약관 */
.hl-terms-section {
  text-align: left;
  margin-bottom: 20px;
}
.hl-terms-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #F5F2EC;
  margin-bottom: 10px;
}
.hl-terms-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  letter-spacing: 0.06em;
}
.hl-terms-badge.required {
  background: rgba(201,169,110,0.15);
  color: #C9A96E;
  border: 1px solid rgba(201,169,110,0.3);
}
.hl-terms-box {
  width: 100%;
  height: 120px;
  background: rgba(8,15,28,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(245,242,236,0.45);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.7;
  padding: 14px 16px;
  resize: none;
  box-sizing: border-box;
  margin-bottom: 12px;
}
.hl-terms-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}
.hl-terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.hl-terms-table th {
  background: rgba(201,169,110,0.1);
  color: #C9A96E;
  font-weight: 600;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.07);
  text-align: left;
  white-space: nowrap;
}
.hl-terms-table td {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(245,242,236,0.5);
  line-height: 1.6;
  vertical-align: top;
}
.hl-terms-agree {
  margin-top: 4px;
}

/* 전체 동의 */
.hl-chk-all {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #F5F2EC;
  cursor: pointer;
  padding: 16px;
  border: 1px solid rgba(201,169,110,0.2);
  background: rgba(201,169,110,0.05);
  margin: 8px 0 28px;
  text-align: left;
}

/* 버튼 행 */
.hl-reg-btns {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.hl-btn-cancel {
  flex: 0 0 auto;
  padding: 16px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(245,242,236,0.4);
  font-family: inherit;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}
.hl-btn-cancel:hover {
  border-color: rgba(255,255,255,0.2);
  color: rgba(245,242,236,0.7);
}
.hl-reg-btns .hl-login-btn {
  flex: 1;
}

/* 캡차 */
.hl-captcha {
  text-align: left;
}

/* 완료 화면 */
.hl-result-icon {
  font-size: 32px;
  color: #C9A96E;
  margin-bottom: 16px;
}
.hl-result-info {
  background: rgba(8,15,28,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  margin: 24px 0 0;
  text-align: left;
}
.hl-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}
.hl-result-row:last-of-type { border-bottom: none; }
.hl-result-row span { color: rgba(245,242,236,0.4); }
.hl-result-row strong { color: #F5F2EC; font-weight: 600; }
.hl-result-notice {
  font-size: 12px;
  color: rgba(245,242,236,0.35);
  line-height: 1.7;
  margin: 14px 0 0;
}

.hl-result-notice-box {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 2px solid #C9A96E;
  background: rgba(201,169,110,0.07);
  color: rgba(245,242,236,0.75);
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: -0.01em;
}

/* 반응형 */
@media (max-width: 560px) {
  .hl-reg-card { padding: 40px 24px 32px; }
  .hl-step-line { width: 24px; }
}
@media (max-width: 390px) {
  .hl-reg-card { padding: 32px 16px 28px; }
  .hl-reg-steps { gap: 0; }
  .hl-step { font-size: 10px; }
  .hl-step span { width: 24px; height: 24px; font-size: 10px; }
  .hl-step-line { width: 16px; margin: 0 4px; margin-bottom: 18px; }
}

/* ── 회원 유형 뱃지 ── */
.hl-type-badge {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(201,169,110,0.4);
  color: #C9A96E;
  font-family: 'Pretendard', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hl-type-badge:empty { display: none; }

/* ── 유형 선택 모달 ── */
.hl-type-modal-wrap {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  font-family: 'Pretendard', -apple-system, sans-serif;
  isolation: isolate;
}
.hl-type-modal-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('img/login-bg.jpg') center / cover no-repeat;
  filter: blur(6px) brightness(0.6);
  transform: scale(1.05);
  z-index: -1;
}
.hl-type-modal {
  width: 100%;
  max-width: 520px;
  background: rgba(15, 25, 45, 0.50);
  border: 1px solid rgba(201,169,110,0.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 32px 80px rgba(0,0,0,0.5);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  padding: 52px 44px 44px;
  text-align: center;
  position: relative;
}
.hl-type-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A96E, transparent);
}
.hl-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.hl-type-btn {
  background: rgba(8,15,28,0.45);
  border: 1px solid rgba(201,169,110,0.25);
  color: #F5F2EC;
  padding: 28px 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
  font-family: 'Pretendard', sans-serif;
}
.hl-type-btn:hover {
  background: rgba(201,169,110,0.12);
  border-color: rgba(201,169,110,0.6);
}
.hl-type-icon {
  font-size: 22px;
  color: #C9A96E;
  margin-bottom: 10px;
}
.hl-type-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #F5F2EC;
}
.hl-type-desc {
  font-size: 12px;
  color: rgba(245,242,236,0.45);
  line-height: 1.6;
}

/* ── 휴대폰 분할 입력 ── */
.hl-hp-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hl-hp-prefix {
  flex: 0 0 90px;
}
.hl-hp-num {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.hl-hp-dash {
  color: rgba(245,242,236,0.35);
  font-size: 16px;
  flex-shrink: 0;
}

/* ── select 래퍼 ── */
.hl-select-wrap {
  position: relative;
}
.hl-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(245,242,236,0.4);
  pointer-events: none;
  font-size: 12px;
}
.hl-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 32px !important;
}
.hl-select option {
  background: #0B1220;
  color: #F5F2EC;
}

/* ── 필드 힌트 ── */
.hl-field-hint {
  display: block;
  font-size: 11px;
  color: rgba(245,242,236,0.35);
  margin-top: 5px;
  letter-spacing: 0;
}

/* ── 파트너 유형 표시 (수정 모드) ── */
.hl-mbtype-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.25);
}
.hl-mbtype-icon {
  color: #C9A96E;
  font-size: 16px;
  flex-shrink: 0;
}
.hl-mbtype-name {
  font-family: 'Pretendard', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #C9A96E;
  letter-spacing: 0.04em;
}
.hl-mbtype-note {
  font-size: 11px;
  color: rgba(245,242,236,0.35);
  margin-left: auto;
  flex-shrink: 0;
}

/* ── 수정 모드 카드 너비 확장 ── */
.hl-reg-card--edit {
  max-width: 560px;
}

/* ── 필수 표시 ── */
em.hl-required {
  font-style: normal;
  color: #C9A96E;
  margin-left: 2px;
}

/* ── 캡차(자동등록방지) ── */
fieldset#captcha {
  border: none;
  padding: 0;
  margin: 16px 0 8px;
}
fieldset#captcha legend label {
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}
/* 이미지 + 인풋 가로 배치 */
fieldset#captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
fieldset#captcha legend {
  float: none;
  width: 100%;
  margin-bottom: 0;
}
#captcha_img {
  width: 150px;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
}
#captcha_key {
  background: rgba(8,15,28,0.55) !important;
  border: 1px solid rgba(201,169,110,0.25) !important;
  color: #F5F2EC !important;
  padding: 10px 14px !important;
  height: 50px;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-align: center;
  flex: 1;
  min-width: 0;
}
#captcha_mp3 {
  display: none;
}
#captcha_reload {
  background: none;
  border: 1px solid rgba(201,169,110,0.3);
  color: #C9A96E !important;
  cursor: pointer;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  padding: 0;
  transition: border-color 0.15s, color 0.15s;
}
#captcha_reload:hover {
  border-color: #C9A96E;
  color: #F5F2EC !important;
}
#captcha_reload span { display: none; }
#captcha_reload::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: none;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  mask: none;
  /* 새로고침 아이콘 — SVG data URI */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A96E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 4v6h-6'/%3E%3Cpath d='M1 20v-6h6'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border: none;
  width: 20px;
  height: 20px;
}
#captcha_info {
  color: rgba(255,255,255,0.45) !important;
  font-size: 11px;
  width: 100%;
  margin-top: 2px;
}
/* find_info 나머지 텍스트 */
#find_info label, #find_info span:not(#captcha_info),
#fpasswordlost label {
  color: #fff !important;
}

.hl-type-login-hint {
  margin-top: 24px;
  font-size: 12.5px;
  color: rgba(240, 234, 217, 0.55);
  letter-spacing: 0.02em;
}
.hl-type-login-hint a {
  color: #C9A96E;
  font-weight: 600;
  border-bottom: 1px solid rgba(201, 169, 110, 0.4);
  transition: color 0.2s, border-color 0.2s;
}
.hl-type-login-hint a:hover {
  color: #E8C97E;
  border-color: #E8C97E;
}

/* ── 반응형 추가 ── */
@media (max-width: 480px) {
  .hl-type-options { grid-template-columns: 1fr; }
  .hl-type-modal { padding: 40px 24px 36px; }
}
@media (max-width: 390px) {
  .hl-hp-prefix { flex: 0 0 76px; }
}
