/* Страница авторизации (page-login.php, my-account.php) */

/* Скрыть шапку, подвал и cookie-баннер на страницах входа и сброса пароля */
body.page-template-page-login .header,
body.page-template-page-login .footer,
body.page-template-page-login .cookie-banner,
body.page-template-page-reset-password .header,
body.page-template-page-reset-password .footer,
body.page-template-page-reset-password .cookie-banner {
  display: none;
}

/* body.page-template-page-login {
  background-image:
    url("imgs/ruletka.svg"),
    url("imgs/gaika.svg"),
    url("imgs/drel.svg"),
    url("imgs/gaika.svg"),
    url("imgs/bolt.svg"),
    url("imgs/uroven.svg"),
    url("imgs/bottom.svg"),
    url("imgs/pryamougolnik.svg");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-position:
    left bottom,
    240px calc(100% - 20px),
    right 30%,
    calc(100% - 80px) 32%,
    55% calc(100% - 20px),
    83% 80%,
    150px bottom,
    55% 90%;
  background-size:
      auto,
      auto,
      auto,
      auto,
      auto,
      auto,
      100% 800px,
      650px 600px;
} */

body.page-template-page-login .auth,
body.page-template-page-reset-password .auth {
  width: 100%;
}

.auth__imgs {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.auth__drel {
  right: 0;
  top: 230px;
}

.auth__bottom {
  right: 0;
  bottom: 0;
}

.auth__ruletka {
  left: 0;
  bottom: 0;
}

.auth__pryamougolnik {
  left: 450px;
  bottom: 10px;
}

.auth__uroven {
  right: 140px;
  bottom: 80px;
}

.auth__axe {
  right: 0px;
  bottom: 0;
}

.auth__gaika {
  left: 240px;
  bottom: 20px;
}

.auth__gaika_second {
  right: 60px;
  top: 310px;
}

.auth__bolt {
  right: 640px;
  bottom: 10px;
}

.auth {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.auth__container {
  position: relative;
  z-index: 1;
  padding: 0;
  /* height: 100%; */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding-left: 60px;
  padding-right: 60px;
}

.auth__logo-row {
  margin: 0;
  margin-bottom: 32px;
}

.auth__logo-image {
  max-height: 55px;
  width: 253px;
}

.auth__back-row {
  margin: 0;
  margin-bottom: 24px;
}

.auth__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 124%;
  letter-spacing: 0%;
  color: var(--grey);
  text-decoration: none;
}

.auth__back-link:hover {
  color: var(--black-color);
}

.auth__back-icon {
  display: inline-block;
  transform: rotate(90deg);
}

.auth__form {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 540px;
  padding: 40px 80px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.auth__form-title {
  text-align: center;
  margin: 0;
  padding: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 124%;
  letter-spacing: -1%;
  margin-bottom: 40px;
  color: var(--black-color);
}

.auth__form-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.auth__form-input {
  width: 100%;
  height: 52px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 124%;
  letter-spacing: 0%;
  color: var(--black-color);
  background: white;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.auth__password-wrap {
  position: relative;
  width: 100%;
}

.auth__password-input {
  padding-right: 44px;
}

.auth__password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.auth__password-toggle-icon {
  width: 20px;
  height: 20px;
  background-image: url("imgs/eye.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.auth__password-toggle--visible .auth__password-toggle-icon {
  background-image: none;
  background-color: var(--orange);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: url("imgs/eye.svg");
  mask-image: url("imgs/eye.svg");
}

.auth__password-toggle--hidden .auth__password-toggle-icon {
  background-image: url("imgs/eye.svg");
  background-color: transparent;
  -webkit-mask-image: none;
  mask-image: none;
}

.auth__form-input:focus {
  outline: none;
  border: 1px solid var(--soft-orange);
}

.auth__form-input:nth-child(2) {
  margin-bottom: 8px;
}

.auth__form-button {
  width: max-content;
  padding: 16px 50px;
  background: var(--orange);
  color: white;
  border-radius: 40px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 124%;
  letter-spacing: 0%;
  cursor: pointer;
}

.auth__form-button--disabled,
.auth__form-button:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
}

.auth__form-error {
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #b91c1c;
  min-height: 1em;
}

.auth__form-text {
  text-align: center;
  margin: 0;
  padding: 0;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 124%;
  letter-spacing: 0%;
  color: var(--grey);
}

.auth__form-text--success {
  color: var(--green, #16a34a);
  margin-bottom: 16px;
}

.auth__form-text--intro {
  margin-bottom: 24px;
  max-width: 380px;
}

.auth__form-error--block {
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
}

.auth__form-link {
  font-size: 16px;
  font-weight: 700;
  line-height: 124%;
  letter-spacing: 0%;
  color: var(--black-color);
}

.auth__form-link:first-of-type {
  margin-bottom: 40px;
}

@media (max-width: 1091px) {
  .auth__bottom {
    max-width: 800px;
  }

  .auth__pryamougolnik {
    display: none;
  }
}

@media (max-width: 768px) {
  body.page-template-page-login,
  body.page-template-page-reset-password {
    min-height: 100dvh;
    overflow-x: hidden;
    background: #fff;
  }

  .auth {
    min-height: 100dvh;
    align-items: flex-start;
    overflow: hidden;
    padding-top: 24px;
  }

  .auth__container {
    position: relative;
    z-index: 2;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .auth__logo-row {
    margin-bottom: 20px;
  }

  .auth__logo-row .custom-logo-link img,
  .auth__logo-image {
    width: 124px;
    max-width: 124px;
    max-height: 28px;
    height: auto;
  }

  .auth__back-row {
    margin-bottom: 16px;
  }

  .auth__back-link {
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
  }

  .auth__back-icon {
    width: 12px;
    height: 12px;
  }

  .auth__form {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 40px 20px 28px;
    border-radius: 24px;
    box-sizing: border-box;
  }

  .auth__form-title {
    margin-bottom: 32px;
    font-size: 24px;
    line-height: 1.15;
  }

  .auth__form-form {
    gap: 12px;
    margin-bottom: 28px;
  }

  .auth__form-input {
    height: 52px;
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 10px;
  }

  .auth__form-input:nth-child(2) {
    margin-bottom: 0;
  }

  .auth__form-button {
    min-width: 104px;
    padding: 12px 28px;
    font-size: 14px;
  }

  .auth__form-error {
    font-size: 12px;
  }

  .auth__form-text {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.35;
  }

  .auth__form-link {
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
  }

  .auth__form-link:first-of-type {
    margin-bottom: 28px;
  }

  .auth__imgs {
    position: absolute;
    z-index: 0;
    pointer-events: none;
  }

  .auth__ruletka,
  .auth__axe,
  .auth__bolt,
  .auth__gaika_second {
    display: none;
  }

  .auth__bottom {
    right: -300px;
    bottom: 0;
    width: 500px;
    z-index: 0;
  }

  .auth__pryamougolnik {
    display: block;
    left: -40px;
    bottom: -140px;
    width: 300px;
    z-index: 0;
  }

  .auth__uroven {
    right: 34px;
    bottom: -100px;
    width: 212px;
  }

  .auth__drel {
    right: -8px;
    top: auto;
    bottom: 128px;
    width: 250px;
  }

  .auth__gaika {
    left: auto;
    right: 18px;
    bottom: 138px;
    width: 14px;
  }
}
