/**
 * Change-password / success screens under .authorization.forgot
 * Scoped polish for mockups «Новый пароль» + «Ваш пароль обновлен».
 * Does not edit custom.css.
 */

/* Mockup: title lives inside the white card, not as pet__title on the purple side */
html body:has(.authorization-change-pass) .pet__title {
  display: none !important;
}

html body .authorization.forgot.authorization-change-pass {
  min-height: 560px;
}

html body .authorization-change-pass .authorization__title {
  margin-bottom: 24px;
  text-align: center;
}

html body .authorization-change-pass .authorization__form .authorization__btn {
  width: 100%;
  margin-top: 8px;
}

html body .authorization-change-pass.authorization-change-pass--success .header__logo {
  margin-bottom: 20px;
}

html body .authorization-change-pass .authorization-password-success {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  min-height: 220px;
}

html body .authorization-change-pass .authorization-password-success__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 420px;
  width: 100%;
  margin-left: auto;
}

html body .authorization-change-pass .authorization-password-success .add-pet {
  text-align: center;
  margin: 0;
}

html body .authorization-change-pass .authorization-password-success .btn {
  width: 100%;
  max-width: 315px;
  text-align: center;
}

@media (max-width: 768.98px) {
  html body .authorization.forgot.authorization-change-pass {
    min-height: 0;
    background-size: 70%;
  }

  html body .authorization-change-pass .authorization-password-success {
    padding: 28px 16px 120px !important;
  }
}
