#account-forgotten,
#account-reset {
  padding-bottom: 72px;
}

.account-recovery-page .account-recovery-page__content {
  min-width: 0;
}

.account-recovery-page .account-recovery-page__header {
  margin-bottom: 24px;
}

.account-recovery-page .account-recovery-page__header h1 {
  margin: 0;
  padding: 0;
  background: none;
  color: #101010;
  font-size: clamp(32px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -.025em;
  -webkit-text-fill-color: #101010;
}

.account-recovery-page .account-recovery-form {
  width: 100%;
  max-width: 800px;
}

.account-recovery-page .account-recovery-form__card {
  padding: 28px;
  border: 1px solid #ececf0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 16, 16, .06);
}

.account-recovery-page .account-recovery-form__card fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-recovery-page .account-recovery-form__card legend {
  width: 100%;
  margin: 0 0 20px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid #eeeef1;
  background: none;
  color: #101010;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  -webkit-text-fill-color: #101010;
}

.account-recovery-page .account-recovery-form__intro {
  max-width: 650px;
  margin: 0 0 22px;
  color: #55555a;
  font-size: 15px;
  line-height: 1.5;
}

.account-recovery-page .account-recovery-form .form-group {
  display: grid;
  margin: 0 0 18px;
  grid-template-columns: 175px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.account-recovery-page .account-recovery-form .form-group:last-child {
  margin-bottom: 0;
}

.account-recovery-page .account-recovery-form .control-label,
.account-recovery-page .account-recovery-form .form-group > div {
  width: auto;
  min-width: 0;
  padding: 0;
  float: none;
}

.account-recovery-page .account-recovery-form .form-group > .control-label {
  grid-row: 1;
  grid-column: 1;
}

.account-recovery-page .account-recovery-form .form-group > div {
  grid-row: 1;
  grid-column: 2;
}

.account-recovery-page .account-recovery-form .control-label {
  padding-top: 16px;
  color: #343438;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.account-recovery-page .account-recovery-form .required .control-label::before {
  display: none;
}

.account-recovery-page .account-recovery-form .required .control-label::after {
  position: static;
  display: inline;
  width: auto;
  height: auto;
  margin-left: 3px;
  border-radius: 0;
  background: none;
  color: #cd171a;
  content: '*';
  font-weight: inherit;
  animation: none;
}

.account-recovery-page .account-recovery-form .form-control {
  width: 100%;
  height: 54px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f0f1f5;
  color: #101010;
  font-size: 16px;
  box-shadow: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.account-recovery-page .account-recovery-form .form-control:hover {
  background: #ebecf1;
}

.account-recovery-page .account-recovery-form .form-control:focus {
  border-color: rgba(205, 23, 26, .65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(205, 23, 26, .1);
}

.account-recovery-page .account-recovery-form .has-error .form-control {
  border-color: #cd171a;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(205, 23, 26, .08);
}

.account-recovery-page .account-recovery-form .text-danger {
  margin-top: 7px;
  color: #b31316;
  font-size: 12px;
  line-height: 1.35;
}

.account-recovery-page .account-recovery-form__actions {
  display: flex;
  margin-top: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-recovery-page .account-recovery-form__actions .pull-left,
.account-recovery-page .account-recovery-form__actions .pull-right {
  float: none !important;
}

.account-recovery-page .account-recovery-form__back,
.account-recovery-page .account-recovery-form__submit {
  display: inline-flex;
  min-height: 54px;
  margin: 0;
  padding: 0 28px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.account-recovery-page .account-recovery-form__back {
  border: 1px solid #d9d9de;
  background: #fff !important;
  color: #171719 !important;
}

.account-recovery-page .account-recovery-form__back:hover,
.account-recovery-page .account-recovery-form__back:focus-visible {
  border-color: #171719;
  background: #f4f4f6 !important;
  color: #171719 !important;
}

.account-recovery-page .account-recovery-form__submit {
  min-width: 220px;
  border: 0;
  background: #cd171a !important;
  color: #fff !important;
}

.account-recovery-page .account-recovery-form__submit:hover,
.account-recovery-page .account-recovery-form__submit:focus-visible {
  background: #8e0002 !important;
}

#account-forgotten > .alert {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
}

@media (max-width: 767px) {
  #account-forgotten,
  #account-reset {
    padding-right: 15px;
    padding-bottom: 42px;
    padding-left: 15px;
  }

  .account-recovery-page .account-recovery-page__header h1 {
    font-size: 28px;
  }

  .account-recovery-page .account-recovery-form__card {
    padding: 20px 18px;
    border-radius: 17px;
  }

  .account-recovery-page .account-recovery-form__card legend {
    margin-bottom: 16px;
    padding-bottom: 12px;
    font-size: 19px;
  }

  .account-recovery-page .account-recovery-form .form-group {
    display: block;
  }

  .account-recovery-page .account-recovery-form .form-group > .control-label,
  .account-recovery-page .account-recovery-form .form-group > div {
    grid-row: auto;
    grid-column: auto;
  }

  .account-recovery-page .account-recovery-form .control-label {
    display: block;
    margin-bottom: 7px;
    padding-top: 0;
  }

  .account-recovery-page .account-recovery-form__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .account-recovery-page .account-recovery-form__actions .pull-left,
  .account-recovery-page .account-recovery-form__actions .pull-right,
  .account-recovery-page .account-recovery-form__back,
  .account-recovery-page .account-recovery-form__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-recovery-page .account-recovery-form .form-control,
  .account-recovery-page .account-recovery-form__back,
  .account-recovery-page .account-recovery-form__submit {
    transition: none;
  }
}
