/* =============================================================
 * custom-login.css  —  로그인/회원/비밀번호 찾기 공통 스타일
 *
 * 의존: _tokens.css (색상/폰트/간격/반경/그림자/브레이크포인트 변수)
 * 규약: 브레이크포인트 표준 (≤ 480 / 768 / 1024 / 1280 / 1400 / 1920)
 *       색상/폰트값은 var(--*) 참조 사용
 * ============================================================= */

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 로그인 페이지 start ------------------------------------------------------------- */
html,
body {
  background: none !important;
  height: 100%;
}

.logo-area img {
  max-width: 350px;
  height: auto;
  filter: drop-shadow(2px 4px 6px var(--color-black));
}

.login-container {
  max-width: 480px;
  margin: 40px auto;
  border: initial;
  box-shadow: initial;
}

.login-container .remember-box {
  margin-bottom: 30px;
}

#wp-submit,
.login-container .submit input[type=submit],
.login-container button {
  border-radius: 25px;
}

/* 간편 로그인 섹션 */
.sns-login-section {
  width: 100%;
  margin: 28px 0 0;
  text-align: center;
}

/* ----- 간편 로그인 ----- */
.sns-login-title {
  position: relative;
  font-size: var(--fs-md);
  color: #888;
  margin-bottom: 18px;
  text-align: center;
}

.sns-login-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  z-index: 0;
}

.sns-login-title span {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  padding: 0px 8px;
  display: inline-block;
}

/* SNS 버튼 */
.sns-buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.sns-link-wrapper {
  display: inline-block;
  text-decoration: none;
}

.sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.sns-btn img {
  height: 45%;
  display: block;
}

/* 카카오톡 */
.sns-btn-kakao {
  background-color: #FEE500;
}

.sns-btn-kakao img {
  width: 80%;
  height: 80%;
}

/* 네이버 */
.sns-btn-naver {
  background-color: #03C75A;
}

/* 구글 */
.sns-btn-google {
  background-color: var(--color-white);
  border: 1px solid #dadce0;
  box-shadow: 0 2px 4px rgba(var(--rgb-black), 0.1);
}

/* 페이스북 */
.sns-btn-facebook {
  background-color: #1877F2;
}

.sns-btn-facebook svg {
  width: 30%;
}

/* 애플 */
.sns-btn-apple {
  background-color: var(--color-black);
}

.sns-btn-apple svg {
  width: 60%;
  height: 60%;
  display: block;
}

.sns-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(var(--rgb-black), 0.15);
}

.sns-btn-google:hover {
  box-shadow: 0 4px 8px rgba(var(--rgb-black), 0.15);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 간편 로그인 보안 안내 */
.login-notice {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid rgba(var(--rgb-slate), 0.08);
  border-radius: 10px;
  text-align: center;
  word-break: keep-all;
  color: var(--color-gray-999);
  font-size: var(--fs-xs);
  line-height: 20px;
  margin-top: 28px;
}

/* 회원가입 - 이용약관/유형선택 */
.mb-header {
  padding: initial;
}

.join-header {
  text-align: center;
  margin-bottom: 22px;
}

.join-header-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-gray-800);
  margin: 0 0 24px;
  letter-spacing: -0.2px;
}

.join-header-guide {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--color-gray-666);
}

.join-type {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.join-helper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 6px;
  font-size: var(--fs-base);
  color: var(--color-gray-777);
}

.join-type .button.expanded.nd-gray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(var(--rgb-black), .10);
  background: #f8f9fb;
  color: var(--color-gray-800);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.join-type .button.expanded.nd-gray::after {
  content: "›";
  font-size: var(--fs-3xl);
  line-height: 1;
  color: var(--color-gray-999);
  transform: translateY(-1px);
}

.join-type .button.expanded.nd-gray:hover {
  background: var(--color-white);
  border-color: rgba(var(--rgb-black), .18);
  box-shadow: 0 10px 22px rgba(var(--rgb-black), .08);
  transform: translateY(-1px);
}

.join-type .button.expanded.nd-gray:active {
  transform: translateY(0);
  box-shadow: none;
}

/* 회원가입 - 약관동의 */
.join-content {
  margin-top: 24px;
}

/* 모두 동의 박스 */
.join-content .plug-in {
  padding: 16px 18px;
  border-radius: 12px;
  background: #f6f7f9;
  border: 1px solid rgba(var(--rgb-black), .08);
  margin-bottom: 20px;
}

.join-content .plug-in .nd-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.join-content .plug-in .nd-checked {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-gray-800);
}

.join-content .plug-in-guide {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-base);
  color: var(--color-gray-666);
  line-height: 1.4;
}

/* 구분선 */
.join-content hr {
  border: none;
  border-top: 1px solid #e6e6e6;
  margin: 18px 0;
}

/* 개별 약관 항목 */
.join-content .clearfix {
  padding: 12px 6px;
  border-bottom: 1px solid #f0f0f0;
}

.join-content .clearfix:last-of-type {
  border-bottom: none;
}

/* 체크박스 라벨 */
.join-content .nd-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.join-content .nd-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-gray-800);
  cursor: pointer;
}

/* 텍스트 */
.join-content .nd-checkbox .nd-checked {
  font-size: var(--fs-md);
  color: var(--color-gray-222);
}

.join-content .text-muted {
  color: var(--color-gray-999);
  font-size: var(--fs-sm);
  margin-left: 4px;
}

/* 약관 내용 영역 */
.join-content .member-privacy {
  margin-top: 10px;
  padding: 0;
}

/* CTA 버튼 */
.join-content .button.expanded {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  background: var(--color-gray-800);
  color: var(--color-white);
  border: none;
  transition: background .2s ease, transform .1s ease, box-shadow .2s ease;
}

.join-content .button.expanded:hover {
  background: var(--color-black);
  box-shadow: 0 8px 18px rgba(var(--rgb-black), .12);
  transform: translateY(-1px);
}

.join-content .button.expanded:active {
  transform: translateY(0);
  box-shadow: none;
}

/* 여백 유틸 */
.join-content .martop-25 {
  margin-top: 22px;
}


/* =========================
   회원가입 폼 (register-form)
========================= */

/* 제목 */
.login-container h2 {
  margin: 10px 0 22px;
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-gray-800);
  text-align: center;
  letter-spacing: -0.2px;
}

/* 폼 전체 */
.login-container form {
  margin-top: 10px;
}

/* 라벨 */
.login-container form>label {
  display: block;
  margin: 14px 0 8px;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-gray-222);
}

/* 기본 인풋 */
.login-container input[type="text"],
.login-container input[type="password"],
.login-container input[type="email"],
.login-container input[type="tel"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(var(--rgb-black), .14);
  background: var(--color-white);
  color: var(--color-gray-800);
  font-size: var(--fs-md);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* readonly 느낌 */
.login-container input[readonly] {
  background: #f6f7f9;
  color: #444;
}

/* 포커스 */
.login-container input:focus {
  border-color: rgba(var(--rgb-black), .32);
  box-shadow: 0 0 0 4px rgba(var(--rgb-black), .06);
}

/* br로 인해 생기는 과한 간격 정리 */
.login-container br {
  display: block;
  content: "";
  margin: 10px 0 0;
}

/* 전화번호 3칸 (tel1/tel2/tel3) */
/* 전화번호 인풋 폭을 딱 잡아서 줄바꿈 방지 */
.login-container input[name="tel1"] {
  width: 90px;
}

.login-container input[name="tel2"] {
  width: 110px;
}

.login-container input[name="tel3"] {
  width: 110px;
}

/* 주소 영역: 우편번호 + 검색버튼을 같은 줄로 */
.login-container #postcode {
  width: 50%;
}

.login-container button[onclick*="execDaumPostcode"] {
  width: calc(45% - 10px);
}

.login-container button[type="button"] {
  width: calc(48% - 10px);
  margin-left: 10px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(var(--rgb-black), .14);
  background: var(--color-white);
  color: var(--color-gray-800);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}

.login-container button[type="button"]:hover {
  background: #f6f7f9;
  box-shadow: 0 10px 22px rgba(var(--rgb-black), .06);
  transform: translateY(-1px);
}

.login-container button[type="button"]:active {
  transform: translateY(0);
  box-shadow: none;
}

/* 주소 입력 2줄은 풀폭 */
.login-container #address,
.login-container input[name="address2"] {
  width: 100%;
}

/* 라디오 정돈 */
.login-container input[type="radio"] {
  transform: translateY(1px);
  margin: 0 6px 0 0;
}

.login-container label+input[type="radio"] {
  margin-top: 2px;
}

/* 라디오 텍스트 간격 */
.login-container input[type="radio"]+* {
  margin-right: 14px;
}

/* reCAPTCHA 가운데 정렬 + 아래 간격 */
.login-container .g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 18px 0 10px;
}

/* 제출 버튼(회원가입 완료) */
.login-container button[type="submit"] {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border-radius: 12px;
  border: none;
  background: var(--color-gray-800);
  color: var(--color-white);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  cursor: pointer;
  transition: background .15s ease, box-shadow .2s ease, transform .1s ease;
}

.login-container button[type="submit"]:hover {
  background: var(--color-black);
  box-shadow: 0 12px 26px rgba(var(--rgb-black), .12);
  transform: translateY(-1px);
}

.login-container button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

/* =========================
   Auth buttons (login / signup)
========================= */
.auth-links--buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

/* 공통 버튼 */
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: var(--fs-md);
  font-weight: var(--fw-extrabold);
  text-decoration: none;
  transition: all .18s ease;
}

/* 로그인: 아웃라인 */
.auth-btn--login {
  color: #1d3557;
  border: 1px solid #1d3557;
  background: var(--color-white);
}

.auth-btn--login:hover {
  background: rgba(29, 53, 87, 0.06);
  /* 네이비 연한 hover */
}

/* 회원가입: 포인트 버튼 */
.auth-btn--signup {
  color: var(--color-white);
  background: #1d3557;
  border: 1px solid #1d3557;
}

.auth-btn--signup:hover {
  background: #162943;
  /* 더 짙은 네이비 */
  border-color: #162943;
}


/* 이용약관 */
/* 약관/개인정보 각 섹션 박스(체크박스 + 내용) 구분 */
#check1,
#check2 {
  accent-color: #0f172a;
}

#check1,
#check2 {
  /* nothing */
}

#check1,
#check2 {
  /* keep */
}

#check1,
#check2 {
  /* keep */
}

/* label 다음에 오는 .member-privacy를 가진 .clearfix를 카드처럼 */
#check1+.nd-checked,
#check2+.nd-checked {}

/* 체크박스 영역 wrapper */
.clearfix:has(#check1) {
  margin-top: 10px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(var(--rgb-slate), .10);
  border-radius: 12px;
  background: var(--color-white);
}

.clearfix:has(#check2) {
  margin-top: 12px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(var(--rgb-slate), .10);
  border-radius: 12px;
  background: var(--color-white);
}

/* 박스 안에서 체크 라벨과 스크롤 영역 간격 */
.clearfix:has(#check1) .nd-checkbox,
.clearfix:has(#check2) .nd-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* 스크롤 영역 */
.member-privacy {
  max-height: 200px;
  overflow: auto;
  padding: 12px 12px;
  background: rgba(var(--rgb-slate), .02);
  border: 1px solid rgba(var(--rgb-slate), .08);
  border-radius: 10px;
  line-height: 1.75;
  font-size: var(--fs-md);
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2px;
}

/* 문서 색 */
.member-privacy .terms-doc,
.member-privacy .policy-doc {
  color: rgba(var(--rgb-slate), .92);
  padding: 0 24px;
}

/* 목차: 1단 심플 */
.member-privacy .terms-toc,
.member-privacy .policy-toc {
  margin: 6px 0 12px;
  padding: 0;
}

.member-privacy .terms-toc ul,
.member-privacy .policy-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.member-privacy .terms-toc li,
.member-privacy .policy-toc li {
  padding: 2px 0;
  border-bottom: 1px solid rgba(var(--rgb-slate), .10);
}

.member-privacy .terms-toc a,
.member-privacy .policy-toc a {
  display: block;
  color: rgba(var(--rgb-slate), .92);
  text-decoration: none;
  font-weight: var(--fw-bold);
}

.member-privacy .terms-toc a:hover,
.member-privacy .policy-toc a:hover {
  text-decoration: underline;
}

/* 제목/본문 */
.member-privacy h4 {
  margin: 14px 0 8px;
  font-size: var(--fs-lg);
  line-height: 1.4;
}

.member-privacy p {
  margin: 8px 0 12px;
}

.member-privacy ul,
.member-privacy ol {
  margin: 8px 0 12px 18px;
}


.member-privacy hr {
  border: 0;
  border-top: 1px solid rgba(var(--rgb-slate), .10);
  margin: 14px 0;
}

/* 테이블: 400px에서도 보기 좋게 세로형 느낌 */
.member-privacy table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
}

.member-privacy th,
.member-privacy td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(var(--rgb-slate), .10);
  vertical-align: top;
  text-align: left;
}

.member-privacy th {
  font-weight: var(--fw-extrabold);
  color: rgba(var(--rgb-slate), .85);
}


/* 반응형(로그인/회원가입만) */
@media (max-width: 480px) {

  .logo-area {
    margin: 0 auto 30px;
    padding: 0 20px 25px;
  }

  .login-container {
    margin: 40px 16px;
    padding: 28px 20px;
    border-radius: 14px;
  }

  .login-container form {
    width: 85%;
    margin: 0 auto;
  }

  .login-container input[type="text"],
  .login-container input[type="password"],
  .login-container input[type="email"],
  .login-container input[type="tel"] .join-header-title {
    height: 35px;
  }

  .join-type .button.expanded.nd-gray {
    padding: 13px 14px;
    font-size: var(--fs-md);
    border-radius: 12px;
  }

  .login-container button[type="button"] {
    margin-top: 10px;
  }

  .login-container input[name="tel1"] {
    width: 70px;
  }

  .login-container input[name="tel2"],
  .login-container input[name="tel3"] {
    width: 78px;
  }

  /* 로그인/회원가입 모바일에서는 아래로  */
  .auth-links--buttons {
    gap: 8px;
  }

  .auth-btn {
    min-width: 88px;
    height: 36px;
    font-size: var(--fs-base);
  }
}

/* 로그인 페이지 end ------------------------------------------------------------- */
