.reset-intro {
  background: #ffffff;
}

.reset-intro__inner {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 260px;
}

.reset-intro__title {
  position: absolute;
  top: 65px;
  left: 75px;
  width: 1050px;

  margin: 0;
  text-align: center;
  color: #815583;
  font-size: 40px;
  line-height: 1.55;
  font-weight: 200;
  font-family: "TildaSans", Arial, sans-serif;
}

.reset-intro__subtitle {
  position: absolute;
  top: 155px;
  left: 197px;
  width: 806px;

  margin: 0;
  text-align: center;
  color: #815583;
  font-size: 25px;
  line-height: 1.55;
  font-weight: 300;
  font-family: "TildaSans", Arial, sans-serif;
}

/* <= 1199 (экран 960) */
@media (max-width: 1199px) {
  .reset-intro__inner {
    max-width: 960px;
    min-height: 310px;
  }

  .reset-intro__title {
    top: 77px;
    left: 76px;
    width: 808px;
  }

  .reset-intro__subtitle {
    top: 225px;
    left: 77px;
  }
}

/* <= 959 (экран 640) */
@media (max-width: 959px) {
  .reset-intro__inner {
    max-width: 640px;
    min-height: 360px;
  }

  .reset-intro__title {
    top: 46px;
    left: 41px;
    width: 558px;
    line-height: 1.1;
  }

  .reset-intro__subtitle {
    top: 185px;
    left: 55px;
    width: 530px;
  }
}

/* <= 639 (экран 480) */
@media (max-width: 639px) {
  .reset-intro__inner {
    max-width: 480px;
    min-height: 390px;
  }

  .reset-intro__title {
    top: 45px;
    left: 16px;
    width: 448px;
    font-size: 35px;
    line-height: 1.1;
  }

  .reset-intro__subtitle {
    top: 240px;
    left: 36px;
    width: 409px;
  }
}

/* <= 479 (экран 320) */
@media (max-width: 479px) {
  .reset-intro__inner {
    max-width: 320px;
    min-height: 430px;
  }

  .reset-intro__title {
    left: 22px;
    width: 277px;
    font-size: 35px;
    line-height: 1.1;
  }

  .reset-intro__subtitle {
    top: 248px;
    left: 33px;
    width: 254px;
  }
}

/* === Секция формы восстановления пароля === */

.reset-form-section {
  background-color: #f4eee9;
  padding: 30px 20px 40px;
  box-sizing: border-box;
}

#password-reset-form .form-element {
  font-family: "TildaSans", Arial, sans-serif;
  font-weight: 300;
}

#password-reset-form {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background-color: #f4eee9;
  text-align: center;
}

#password-reset-form label {
  color: #3d183e;
  font-size: 20px;
  display: block;
  text-align: left;
  margin-bottom: 8px;
  margin-top: 8px;
}

#password-reset-form input {
  width: 100%;
  padding: 20px 15px;
  margin-bottom: 50px;
  border: 1px solid #b783b9;
  border-radius: 20px;
  font-size: 16px;
  color: #815583;
  box-sizing: border-box;
}

#password-reset-form input::placeholder {
  color: #815583;
  opacity: 0.5;
}

#password-reset-form input:focus {
  outline: none;
}

#password-reset-form button {
  max-width: 500px;
  width: 300px;
  margin: 0 auto;
  display: block;
  padding: 15px;
  background-color: #815583;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
}

#password-reset-form button:hover:not(:disabled) {
  background-color: #7a527b;
}

#password-reset-form button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

#password-reset-form button.loading::after {
  content: '...';
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  width: 0;
  animation: resetpass-dots 1.2s steps(4, end) infinite;
}

@keyframes resetpass-dots {
  to { width: 1.2em; }
}

#password-reset-form .error {
  color: #b83434;
  font-size: 16px;
  text-align: left;
  margin-top: 0;
  margin-bottom: 15px;
  display: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

#password-reset-form .error.visible {
  display: block;
  opacity: 1;
}

#password-reset-form #api-error {
  font-size: 24px;
  text-align: center;
}

#password-reset-container #success-message {
  display: none;
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background-color: #b783b9;
  color: #ffffff;
  border-radius: 20px;
  text-align: center;
  transition: opacity 0.3s ease;
  opacity: 0;
  font-family: "TildaSans", Arial, sans-serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.4;
  white-space: pre-line;
}

#password-reset-container #success-message.visible {
  display: block;
  opacity: 1;
}

#password-reset-container #success-message p {
  font-family: "TildaSans", Arial, sans-serif;
  font-weight: 300;
  font-size: 26px;
  color: #ffffff;
  margin: 0;
}

/* Страница resetpass: без горизонтального скролла, фоновые картинки могут уходить за экран */
html, body.page-resetpass {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
}

/* === Секция recover-mail-tip === */

.recover-mail-tip {
  background: #ffffff;
  overflow-x: hidden; /* обрезаем строго по границе экрана, чтобы не было скролла */
  overflow-y: hidden; /* вертикальное переполнение не создаёт скролл, высоту секции не меняем */
  width: 100%;
}

.recover-mail-tip__inner {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 390px;
  overflow: visible; /* внутри контейнера ничего не обрезаем, картинки уходят до края экрана */
}

.recover-mail-tip__thread {
  position: absolute;
  top: 66px;
  left: 31px;
  width: 1003px;
  height: auto;
  z-index: 1;
  display: block;
}

.recover-mail-tip__text {
  position: absolute;
  top: 123px;
  left: 180px;
  width: 840px;
  z-index: 3;
  text-align: center;
  color: #815583;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 300;
  font-family: "TildaSans", Arial, sans-serif;
}

.recover-mail-tip__flower-left {
  position: absolute;
  top: 10px;
  left: -328px;
  width: 370px;
  height: auto;
  z-index: 2;
  display: block;
  transform: rotate(-29deg);
  transform-origin: center;
}

.recover-mail-tip__flower-right {
  position: absolute;
  top: 27px;
  left: 1131px;
  width: 310px;
  height: auto;
  z-index: 2;
  display: block;
  transform: rotate(0deg);
  transform-origin: center;
}

@media (max-width: 1199px) {
  .recover-mail-tip__inner {
    max-width: 960px;
    min-height: 380px;
  }

  .recover-mail-tip__thread {
    top: 56px;
    left: -95px;
  }

  .recover-mail-tip__text {
    top: 108px;
    left: 60px;
  }

  .recover-mail-tip__flower-left {
    top: 0px;
    left: -220px;
    transform: rotate(-29deg);
  }

  .recover-mail-tip__flower-right {
    top: 17px;
    left: 900px;
  }
}

@media (max-width: 959px) {
  .recover-mail-tip__inner {
    max-width: 640px;
    min-height: 400px;
  }

  .recover-mail-tip__thread {
    top: 13px;
    left: -57px;
  }

  .recover-mail-tip__text {
    top: 110px;
    left: 16px;
    width: 608px;
    line-height: 1.25;
  }

  .recover-mail-tip__flower-left {
    top: 13px;
    left: -251px;
    transform: rotate(-29deg);
  }

  .recover-mail-tip__flower-right {
    top: 37px;
    left: 520px;
  }
}

@media (max-width: 639px) {
  .recover-mail-tip__inner {
    max-width: 480px;
    min-height: 460px;
  }

  .recover-mail-tip__thread {
    top: 45px;
    left: -182px;
  }

  .recover-mail-tip__text {
    top: 137px;
    left: 19px;
    width: 442px;
  }

  .recover-mail-tip__flower-left {
    top: 45px;
    left: -292px;
    transform: rotate(0deg);
  }

  .recover-mail-tip__flower-right {
    top: 97px;
    left: 318px;
  }
}

@media (max-width: 479px) {
  .recover-mail-tip__inner {
    max-width: 320px;
    min-height: 500px;
  }

  .recover-mail-tip__thread {
    top: 102px;
    left: -207px;
    transform: rotate(1deg);
    transform-origin: center;
  }

  .recover-mail-tip__text {
    top: 184px;
    left: 15px;
    width: 290px;
  }

  .recover-mail-tip__flower-left {
    top: -74px;
    left: -300px;
    transform: rotate(45deg);
  }

  .recover-mail-tip__flower-right {
    top: 137px;
    left: 150px;
  }
}
