/* ---------------------------------------------------------------------------
 * JO200000.xfdl 변환본 — 로그인 팝업 자가 비밀번호 변경 모달 (RHPT-13).
 * 회원가입 모달(form-member-base-info)과 동일 톤. 아이디 + 현재/새/새 확인 비밀번호 + 하단 버튼.
 * --------------------------------------------------------------------------- */
#change-password-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
}
#change-password-modal.is-open {
  display: flex;
}

#change-password-modal .layer-wrap {
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#change-password-modal .layer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #2c4368;
  color: #ffffff;
  flex-shrink: 0;
}
#change-password-modal .layer-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
#change-password-modal .layer-close {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  border-radius: 3px;
}
#change-password-modal .layer-close:hover { background: rgba(255, 255, 255, 0.18); }

#change-password-modal .layer-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px;
}

/* RHPT-89: 레거시(JO200000)의 `▶ 회원가입` 그룹 헤더. 전역 common.css 의 `legend {display:none}`
   때문에 숨으므로 display 를 명시한다(특이도가 같으면 이기지 못함).
   테두리 박스 대신 헤딩 한 줄로 — 선택정보입력 모달과 같은 방식. */
#change-password-modal fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#change-password-modal fieldset legend {
  display: block;
  padding: 0;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #2c4368;
}

#change-password-modal .form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
#change-password-modal .form-row:last-child { margin-bottom: 0; }
#change-password-modal .form-row .form-label {
  width: 116px;
  flex-shrink: 0;
  font-size: 13px;
  color: #1f2a44;
  font-weight: 600;
}
#change-password-modal .form-row .form-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
  padding: 4px 8px;
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}
#change-password-modal .form-row .form-input:focus { border-color: #4f6b96; }

/* RHPT-89: 레거시(JO200000)는 [비밀번호 변경] 버튼이 우측 정렬이다(btn_changPwd left=249/폭 400 팝업).
   좌우 패딩은 .layer-content 와 같은 20px 로 맞춘다 — 다르면 버튼 우측 끝과 입력칸 우측 끝이 어긋난다. */
#change-password-modal .layer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  background: #fafbfc;
  border-top: 1px solid #eef0f3;
  flex-shrink: 0;
}
#change-password-modal .layer-footer button {
  height: 34px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#change-password-modal .btn-submit {
  background: #2c4368;
  color: #ffffff;
}
#change-password-modal .btn-submit:hover { background: #1f2a44; }
#change-password-modal .btn-submit:disabled { background: #8b95a8; cursor: not-allowed; }
#change-password-modal .btn-cancel {
  background: #e6e8ec;
  color: #1f2a44;
}
#change-password-modal .btn-cancel:hover { background: #d0d4dc; }
