#passwordChangeModal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(10, 25, 43, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#passwordChangeModal.hidden {
  display: none !important;
}

#passwordChangeModal .password-change-panel {
  width: min(100%, 470px);
  max-height: min(760px, calc(100dvh - 32px));
  margin: auto;
  overflow: auto;
  border: 1px solid rgba(113, 139, 167, 0.22);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(8, 29, 52, 0.28), 0 4px 16px rgba(8, 29, 52, 0.1);
}

.password-change-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 26px 28px 22px;
  color: #102a43;
  background: linear-gradient(145deg, #f7fbff 0%, #edf7f7 100%);
  border-bottom: 1px solid #dce8ee;
}

.password-change-mark {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #08778a, #07576c);
  box-shadow: 0 10px 24px rgba(7, 97, 116, 0.24);
}

.password-change-mark::before {
  content: "";
  width: 18px;
  height: 15px;
  margin-top: 8px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.password-change-mark::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 15px;
  height: 14px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.password-change-head div {
  min-width: 0;
}

.password-change-head small {
  display: block;
  margin: 1px 0 4px;
  color: #087184;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.password-change-head strong {
  display: block;
  color: #102a43;
  font-size: 22px;
  line-height: 1.35;
}

.password-change-head p {
  margin: 6px 0 0;
  color: #698096;
  font-size: 13px;
  line-height: 1.55;
}

#passwordChangeModal .password-change-body {
  display: grid;
  gap: 17px;
  padding: 24px 28px 26px;
}

.password-change-rule {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid #cfe9e5;
  border-radius: 12px;
  color: #416474;
  background: #f2fbf9;
}

.password-change-rule span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: #12927e;
}

.password-change-rule p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

#passwordChangeModal .password-change-body > label {
  display: grid;
  gap: 7px;
  color: #334e68;
  font-size: 13px;
  font-weight: 750;
}

.password-change-input {
  position: relative;
  display: block;
}

#passwordChangeModal .password-change-input input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 14px;
  border: 1px solid #c9d6e2;
  border-radius: 12px;
  outline: none;
  color: #17324d;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  background: #fbfdff;
  box-shadow: inset 0 1px 2px rgba(16, 42, 67, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#passwordChangeModal .password-change-input input:focus {
  border-color: #16879a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 135, 154, 0.12);
}

#passwordChangeModal .password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  transform: translateY(-50%);
  background: transparent;
}

#passwordChangeModal .password-visibility-toggle:hover {
  background: #eaf5f6;
}

#passwordChangeModal .order-void-error {
  min-height: 0;
  margin: -4px 0 0;
  color: #c43d3d;
  font-size: 12px;
  line-height: 1.45;
}

#passwordChangeModal .order-void-error:empty {
  display: none;
}

#passwordChangeModal .password-change-submit {
  width: 100%;
  min-height: 48px;
  margin: 1px 0 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #0d7d90, #0a6679);
  box-shadow: 0 10px 22px rgba(8, 108, 127, 0.22);
}

#passwordChangeModal .password-change-submit:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0b879a, #075c70);
  box-shadow: 0 13px 26px rgba(8, 108, 127, 0.26);
}

#passwordChangeModal .password-change-submit:disabled {
  transform: none;
  opacity: 0.6;
  cursor: wait;
}

.password-change-footnote {
  display: block;
  margin-top: -5px;
  color: #8595a6;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 560px) {
  #passwordChangeModal {
    align-items: end;
    padding: 12px;
  }

  #passwordChangeModal .password-change-panel {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }

  .password-change-head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 21px 20px 18px;
  }

  .password-change-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .password-change-head strong {
    font-size: 19px;
  }

  #passwordChangeModal .password-change-body {
    gap: 14px;
    padding: 20px;
  }
}
