/* ==========================================================================
   dlog · 로그인 모달 새 스킨
   - 구 auth/login_modal.css 뒤에 로드해서 스킨만 덮어쓴다.
     (DOM/스크립트는 include/login_modal.html 그대로 → AJAX 로그인·SNS·?login=1 동작 유지)
   ========================================================================== */

.login_modal_overlay {
  background: rgba(17, 20, 28, .5);
  backdrop-filter: blur(3px);
  z-index: 200;
}

.login_modal {
  width: 100%;
  max-width: 400px;
  padding: 34px 32px 28px;
  background: var(--surface, #fff);
  border-radius: 22px;
  border: 1px solid var(--line, #ECEEF3);
  box-shadow: 0 24px 60px rgba(17, 20, 28, .22);
}

.login_modal__close {
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 20px; line-height: 1;
  color: var(--ink-3, #9AA0B0); background: transparent; border: 0;
  transition: background .15s ease, color .15s ease;
}
.login_modal__close:hover { background: #F1F3F8; color: var(--ink, #171A23); }

.login_modal__logo { margin-bottom: 24px; text-align: center; }
.login_modal__logo img { height: 30px; width: auto; display: inline-block; }

/* ---------- 입력 ---------- */
.login_modal__input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  margin-bottom: 10px;
  background: #FBFCFE;
  border: 1px solid var(--line, #ECEEF3);
  border-radius: 12px;
  font-size: 14.5px;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.login_modal__input::placeholder { color: var(--ink-3, #9AA0B0); }
.login_modal__input:focus {
  background: #fff;
  border-color: var(--brand, #6C4DF6);
  box-shadow: 0 0 0 3px var(--brand-soft, #F1EDFF);
}

.login_modal__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 12px 2px 18px;
  font-size: 12.5px;
}
.login_modal__keep { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2, #5B6070); cursor: pointer; }
.login_modal__keep input { accent-color: var(--brand, #6C4DF6); width: 15px; height: 15px; }
.login_modal__find { color: var(--ink-3, #9AA0B0); }
.login_modal__find:hover { color: var(--brand, #6C4DF6); text-decoration: underline; }

.login_modal__error {
  display: none;
  margin: -6px 0 12px;
  padding: 10px 12px;
  background: var(--danger-bg, #FDECEC);
  color: #C4302B;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
}

/* ---------- 제출 버튼: 검정 → 브랜드 퍼플 ---------- */
.login_modal__submit {
  width: 100%; height: 52px;
  background: var(--brand, #6C4DF6);
  color: #fff;
  border: 0; border-radius: 14px;
  font-size: 15.5px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(var(--brand-rgb), .3);
  transition: background .15s ease, transform .06s ease;
}
.login_modal__submit:hover { background: var(--brand-ink, #4B31D1); }
.login_modal__submit:active { transform: translateY(1px); }
.login_modal__submit:disabled { background: #C7C9D4; box-shadow: none; cursor: default; }

/* ---------- 구분선 ---------- */
/* 텍스트 길이에 상관없이 좌우 선이 균등하게 채워지도록 flex 로 구성한다
   (절대배치 + 고정폭은 한글 문구 길이에 따라 선이 겹치거나 한쪽만 보인다) */
.login_modal__divider {
  position: static;
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 18px;
  font-size: 12px;
  color: var(--ink-3, #9AA0B0);
  white-space: nowrap;
}
.login_modal__divider::before,
.login_modal__divider::after {
  content: '';
  position: static;
  flex: 1 1 auto;
  width: auto; height: 1px;
  background: var(--line, #ECEEF3);
}

/* ---------- SNS ---------- */
.login_modal__sns { display: flex; justify-content: center; gap: 14px; }
.sns_btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; cursor: pointer;
  font-size: 17px; font-weight: 800;
  display: grid; place-items: center;
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.sns_btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }

/* 이 파일이 login_modal.css 보다 뒤에 로드돼 .sns_btn 을 덮는다.
   그래서 구글/애플/준비중 규칙도 여기에 같이 둔다.
   (login_modal.css 쪽에만 두면 border:0 등에 밀려 안 먹는다) */
.sns_btn { position: relative; }
.sns_btn svg { width: 22px; height: 22px; display: block; }

.sns_btn--kakao  { background: #FEE500; color: #191600; }
.sns_btn--naver  { background: #03C75A; color: #fff; }
.sns_btn--google { background: #fff; border: 1px solid #DDE1E9; }
.sns_btn--apple  { background: #000; color: #fff; }

/* 백엔드가 아직 없는 제공자: 색은 그대로 두고 얇은 막만 씌운다 */
.sns_btn--soon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}
.sns_btn--soon:hover::after { background: rgba(255, 255, 255, .12); }

/* ---------- 회원가입 안내 ---------- */
.login_modal__signup {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2, #5B6070);
}
.login_modal__signup a {
  margin-left: 5px;
  color: var(--brand, #6C4DF6);
  font-weight: 700;
}
.login_modal__signup a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .login_modal { max-width: none; margin: 0 16px; padding: 28px 22px 24px; border-radius: 18px; }
}
