/* Change Password Form — own BEM block, visually matching profile-form */

/* Scoped reset for this block only */
.sm-change-password-form *,
.sm-change-password-form *::before,
.sm-change-password-form *::after { box-sizing: border-box; }

/* Container card */
.sm-change-password-form {
  width: 100%;
  padding: 40px 35px;
  background: #fff;
  border: 1px solid #e3e6ea !important;
  border-radius: 12px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.sm-change-password-form__title {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
}

.sm-change-password-form__fieldset { border: none; }

/* Groups and labels */
.sm-change-password-form__group { margin-bottom: 20px; display: block !important; border: none !important; }
.sm-change-password-form__label {
  display: block;
  margin-bottom: 10px;
  color: #495057;
  font-weight: 500;
  font-size: 15px;
  text-align: left;
  position: relative;
  background: transparent !important;
  padding: 0 !important;
}
.sm-change-password-form__input-wrapper { width: 100%; }

/* Inputs */
.sm-change-password-form__input {
  display: block;
  width: 100%;
  padding: 10px 12px; /* match profile-form__input */
  font-size: 14px;    /* match profile-form__input */
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 4px; /* match profile-form__input */
  transition: border-color 0.15s ease-in-out;
  height: auto;
  max-width: 100%;
}
.sm-change-password-form__input:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
}
.sm-change-password-form__input:disabled,
.sm-change-password-form__input[readonly] { background-color: #e9ecef; opacity: 1; }

/* Password helper area (strength + checklist) */
.sm-change-password-form__password-helper,
.sm-change-password-form .sm-password-helper { margin-top: 8px; }

.sm-change-password-form .sm-password-progress { width: 100%; height: 6px; background: #e9ecef; border-radius: 4px; overflow: hidden; }
.sm-change-password-form .sm-password-progress .sm-password-progress-bar { height: 100%; width: 0; background: #066AAF; transition: width .2s ease; }
.sm-change-password-form .sm-password-progress .sm-password-progress-bar.danger { background: #dc3545; }
.sm-change-password-form .sm-password-progress .sm-password-progress-bar.warning { background: #ffc107; }
.sm-change-password-form .sm-password-progress .sm-password-progress-bar.success { background: #28a745; }

.sm-change-password-form .sm-password-checklist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.sm-change-password-form .sm-password-checklist li { font-size: 14px; color: #6c757d; display: flex; align-items: center; }
.sm-change-password-form .sm-password-checklist li .icon { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d0d8e3; display: inline-block; margin-right: 8px; position: relative; }
.sm-change-password-form .sm-password-checklist li.ok .icon { border-color: #16a34a; background: #16a34a; }
.sm-change-password-form .sm-password-checklist li.ok .icon::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Submit */
.sm-change-password-form__submit-wrapper { width: 100%; position: relative; }
.sm-change-password-form__button,
/* Also style generic sm-button used by template */
.sm-change-password-form .sm-button {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-size: 15px;
  line-height: 1.5;
  border-radius: 6px;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}
.sm-change-password-form .sm-button:disabled, .sm-change-password-form__button:disabled { opacity: 0.65; cursor: not-allowed; }
.sm-change-password-form .sm-button, .sm-change-password-form__button--primary { color: #fff; background-color: #066AAF; border-color: #066AAF; }
.sm-change-password-form .sm-button:hover:not(:disabled), .sm-change-password-form__button--primary:hover:not(:disabled) { background-color: #055C92; border-color: #055C92; }
.sm-change-password-form__button--full { display: block; width: 100%; }

/* Responsive */
@media (max-width: 767px) {
  .sm-change-password-form { padding: 20px 15px; margin-top: 30px; margin-bottom: 30px; }
  .sm-change-password-form .sm-password-checklist { grid-template-columns: 1fr; }
}
