/* ===== Forgot Password page (ForgetPassword.html) styles ===== */

.forgot-page {
  padding: 44px 16px 40px;
}

.forgot-box {
  max-width: 590px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-top: 0;
}

.forgot-box__title {
  margin: 0;
  padding: 17px 16px;
  background: #00a8f3;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

.forgot-box__body {
  padding: 40px 45px 40px;
}

.forgot-box__intro {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #00a8f3;
  text-align: center;
}

/* ---------- Form ---------- */
.forgot-form__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 242px);
  align-items: start;
  margin-bottom: 20px;
}

.forgot-form__row:last-child {
  margin-bottom: 0;
}

.forgot-form__row label {
  padding: 3px 0 0;
  font-size: 13px;
  color: #222;
}

.forgot-form input {
  display: block;
  width: 100%;
  height: 26px;
  box-sizing: border-box;
  padding: 0 8px;
  border: 1px solid #aaa;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.forgot-form input:focus {
  border-color: #00a8f3;
  box-shadow: 0 0 0 1px #00a8f3;
}

.forgot-form input[aria-invalid="true"] {
  border-color: #e53935;
  box-shadow: 0 0 0 1px #e53935;
}

.forgot-form__error {
  margin: 4px 0 0;
  font-size: 12px;
  color: #e53935;
}

.forgot-form__error:empty {
  display: none;
}

.forgot-form__submit {
  display: block;
  width: 230px;
  max-width: 100%;
  height: 42px;
  border: 0;
  border-radius: 2px;
  background: #00a8f3;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.forgot-form__submit:hover,
.forgot-form__submit:focus-visible {
  background: #0088c4;
}

.forgot-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.forgot-form__back {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: #00a8f3;
  text-decoration: none;
}

.forgot-form__back:hover {
  text-decoration: underline;
}

/* ---------- Success message ---------- */
.forgot-success {
  padding: 16px 18px;
  border-left: 3px solid #43a047;
  background: #edf7ee;
  font-size: 14px;
  line-height: 1.5;
  color: #2e5e31;
  text-align: left;
}

.forgot-success p {
  margin: 0 0 8px;
}

.forgot-success p:last-child {
  margin-bottom: 0;
}

.forgot-success__title {
  font-size: 16px;
  font-weight: 700;
}

.forgot-success__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.forgot-success__links a,
.forgot-success__retry {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: #00a8f3;
  text-decoration: none;
  cursor: pointer;
}

.forgot-success__links a:hover,
.forgot-success__retry:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .forgot-box__title {
    font-size: 18px;
  }

  .forgot-box__body {
    padding: 24px 20px 30px;
  }

  .forgot-form__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .forgot-form__row > span {
    display: none;
  }

  .forgot-form input {
    height: 38px;
  }

  .forgot-form__submit {
    width: 100%;
  }

  .forgot-form__back {
    display: block;
    text-align: center;
  }
}
