/* Forgot password page shell, similar to login/register */

.forgot-body {
  min-height: 100vh;
}

.forgot-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: transparent;
  /* 覆盖 common.css 中 main 的灰色背景 */
  padding-bottom: 0;
  /* 覆盖 common.css 中 main 的 padding-bottom */

}

.forgot-page__background {
  position: absolute;
  inset: 0;
  background-color: #cfebfc;
  background-image: url("../../login/img/login-bg.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  z-index: -2;
}

.forgot-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 100px 16px 32px;
}

.forgot-page__logo {
  height: 54px;
  margin-bottom: 50px;
}

.forgot-card {
  width: 820px;
  max-width: 100%;
  background-color: #fbfbfb;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(15, 36, 63, 0.24);
  padding: 65px;
}

.forgot-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 45px;
}

.forgot-card__title {
  color: #333333;
  font-size: 30px;
  font-weight: 600;
}

/* Form layout */

.forgot-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 20px;
  margin-bottom: 24px;
}

.forgot-form__field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.forgot-form__field--code {
  grid-column: 1 / 2;
}

.forgot-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.forgot-form__input {
  width: 100%;
  height: 50px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid #e0e4ec;
  font-size: 18px;
}

.forgot-form__input::placeholder {
  color: #cccccc;
}

/* Code row inside input */

.forgot-form__code-row {
  display: flex;
  align-items: center;
  border-radius: 4px;
  border: 1px solid #e0e4ec;
  background-color: #ffffff;
  overflow: hidden;
}

.forgot-form__input--code {
  flex: 1 1 auto;
  border: none;
  border-radius: 0;
  padding-right: 0;
}

.forgot-form__code-btn {
  flex: 0 0 auto;
  height: 50px;
  padding: 0 16px;
  border: none;
  border-left: 1px solid transparent;
  background-color: transparent;
  color: #004494;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* Links and buttons */

.forgot-form__links-row {
  display: flex;
  align-items: center;
  margin-bottom: 70px;
  font-size: 16px;
  color: #999999;
}

.forgot-form__text {
  margin-right: 4px;
}

.forgot-form__link {
  color: #004494;
}

.forgot-form__submit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  height: 50px;
  margin-bottom: 12px;
  border-radius: 3px;
  border: none;
  background-color: #004494;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 68, 148, 0.5);
  cursor: pointer;
}

.forgot-form__back {
  display: block;
  margin: 0 auto 32px;
  border: none;
  background: none;
  color: #004494;
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline;
}

/* Footer */

.forgot-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #ffffff;
}

.forgot-footer__home {
  display: inline-block;
  margin-bottom: 30px;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid #ffffff;
  background-color: transparent;
  color: #ffffff;
  font-size: 16px;
}

@media (max-width: 768px) {
  .forgot-card {
    width: 100%;
    padding-inline: 24px;
  }

  .forgot-form__grid {
    grid-template-columns: 1fr;
  }

  .forgot-form__field--code {
    grid-column: 1 / -1;
  }
}

/* 忘记密码页 footer 白色版权信息 */
.forgot-page .auth-footer__copyright {
  color: #ffffff;
}