#user-pass {
  --pass-accent: rgba(166, 216, 212, 1);
  --pass-accent-hover: #8fc9c4;
  --pass-text: #242536;
  --pass-muted: #777b8b;
  --pass-border: #e2e4ed;

  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 480px;
  margin: 24px auto 64px;
  padding: 36px;
  color: var(--pass-text);
  background: #fff;
  border: 1px solid #e9eaf1;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgb(31 36 68 / 6%);
  font-size: 15px;
  line-height: 1.55;
}

#user-pass *,
#user-pass *::before,
#user-pass *::after {
  box-sizing: border-box;
}

/* Заголовок страницы */

#block-mosvintage-page-title {
  text-align: center;
}

#block-mosvintage-page-title .page-title {
  margin: 36px 0 12px;
  color: #242536;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -1.2px;
}

/* Поле имени пользователя или email */

#user-pass .form-item {
  margin: 0 0 22px;
}

#user-pass .form-item label {
  display: block;
  margin: 0 0 8px;
  color: #303246;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

/* Обязательное поле */

#user-pass .form-required::after {
  display: inline-block;
  width: auto;
  height: auto;
  margin-left: 4px;
  background: none;
  content: "*";
  color: #e05b69;
  font-size: 14px;
  font-weight: 700;
  vertical-align: baseline;
}

/* Поле ввода */

#user-pass input.form-text {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 13px 15px;
  color: var(--pass-text);
  background: #fff;
  border: 1px solid var(--pass-border);
  border-radius: 10px;
  box-shadow: none;
  outline: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

#user-pass input.form-text:focus {
  border-color: #8fc9c4;
  box-shadow: 0 0 0 4px rgb(166 216 212 / 25%);
}

#user-pass input.form-text::placeholder {
  color: #a3a6b4;
}

/* Инструкция по восстановлению */

#user-pass > p {
  margin: 18px 0 26px;
  padding: 14px 16px;
  color: #59666b;
  background: #f3f9f8;
  border: 1px solid #e1efed;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
}

/* Кнопка отправки */

#user-pass #edit-actions {
  margin-top: 28px;
}

#user-pass #edit-submit {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  color: #243b3a;
  background: var(--pass-accent);
  border: 1px solid var(--pass-accent);
  border-radius: 10px;
  box-shadow: 0 5px 12px rgb(80 150 145 / 16%);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

#user-pass #edit-submit:hover {
  background: var(--pass-accent-hover);
  border-color: var(--pass-accent-hover);
  box-shadow: 0 7px 17px rgb(80 150 145 / 24%);
  transform: translateY(-1px);
}

#user-pass #edit-submit:active {
  transform: translateY(0);
}

#user-pass #edit-submit:focus-visible {
  outline: 3px solid rgb(166 216 212 / 55%);
  outline-offset: 3px;
}

/* Ошибки валидации */

#user-pass input.error {
  border-color: #df5967;
}

#user-pass input.error:focus {
  box-shadow: 0 0 0 4px rgb(223 89 103 / 10%);
}

/* Сообщения Drupal и Antibot */

#user-pass .messages,
#user-pass .antibot-message {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

/* Мобильная версия */

@media (max-width: 600px) {
  #block-mosvintage-page-title .page-title {
    margin-top: 24px;
    font-size: 30px;
  }

  #user-pass {
    width: calc(100% - 24px);
    margin: 18px auto 36px;
    padding: 26px 20px;
    border-radius: 15px;
  }

  #user-pass > p {
    padding: 12px;
  }
}

/* Уважение настроек анимации */

@media (prefers-reduced-motion: reduce) {
  #user-pass *,
  #user-pass *::before,
  #user-pass *::after {
    transition: none !important;
  }
}