.page-frontend--authorization-page .site-main {
  margin-top: 90px;
}

@media (max-width: 1200px) {
  .page-frontend--authorization-page .site-main {
    margin-top: 60px;
  }
}

.page-frontend--authorization-page .site-main {
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  padding: 40px;
  min-height: 730px;
}

.page-frontend--authorization-page .site-main:before{
  content: '';
  z-index:-1;
  position:absolute;
  left:0;
  top:0;
  right: 0;
  bottom: 0;
  background-size: 100% 100%;
  background-image: url(../img/auth-bg.png);
  opacity:0.2;
}

.page-frontend--authorization-page .site-main.modal-open:after {
  content: "";
  z-index:-1;
  position: absolute;
  bottom: 15%;
  left: 50%;
  width: 320px;
  height: 320px;
  background: linear-gradient(365deg, rgba(241, 135, 0, 1), rgba(241, 135, 0, 0));
  filter: blur(80px);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

/* ===== Блок с авторизацией ===== */

.auth {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  width: 520px;
  padding: 40px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-family: 'Jost', sans-serif;
}

.auth__title {
  margin: 0;
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
}

.auth__description {
  margin: 27px 0 0 0;
  padding: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  gap: 15px;
  width: 100%;
  margin-top: 42px;
}

.auth-form__submit-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 65px;
  padding: 20px;
  border-radius: 3px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.auth-form__submit-btn:hover {
  cursor: pointer;
}

.auth-form .contacts__checkbox {
  position: relative;
  top: auto;
}

.auth-form .contacts__checkbox-text {
  letter-spacing: 0;
}

.auth__btn-links {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin-top: 40px;
}

.auth__btn-link {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text);
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.auth__btn-link:active {
  background-color: rgba(255, 255, 255, 1);
  color: var(--color-primary);
}

.page-frontend--authorization-page .modal-wrapper {
  position: absolute;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (hover: hover) and (pointer: fine) {
  .auth__btn-link:hover {
    background-color: rgba(255, 255, 255, 1);
    color: var(--color-primary);
  }
}

.test-btns {
  position: absolute;
  left: 10px;
  bottom: 0;
}

@media (max-width: 768px) {
  .page-frontend--authorization-page .site-main {
    padding: 25px 30px 90px 30px;
    min-height: 0;
  }

  .page-frontend--authorization-page .site-main.modal-open:after {
    bottom: 0;
    filter: blur(50px);
  }
    
  .auth {
    width: 580px;
    padding: 78px 70px 62px 70px;
  }
  
  .auth-form__submit-btn {
    font-size: 16px;
  }
  
  .auth__btn-link {
    font-size: 14px;
  }
}

@media (max-width: 639px) {
  .auth-form .contacts__checkbox {
    width: 100%;
  }

  .page-frontend--authorization-page .site-main.modal-open:after {
    width: 280px;
    height: 280px;
  }

  .page-frontend--authorization-page .site-main {
    padding: 41px 10px 80px 10px;
  }

  .auth {
    width: 100%;
    padding: 60px 40px;
  }
}

@media (max-width: 500px) {
  .auth {
    width: 100%;
    padding: 0;
    background-color: transparent;
  }

  .auth__title {
    font-size: 24px;
    line-height: 1;
  }
  
  .auth__btn-link {
    font-size: 12px;
  }

  .auth__description {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1;
  }

  .auth-form {
    margin-top: 35px;
  }

  .checkbox__text-wrapping {
    display: none;
  }
}