.auth-page {
  display: flex;
  padding: 32px 39px;
  background-image: url('../img/auth-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.auth-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-block {
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo {
  width: 65px;
  margin-bottom: 104px;
}

.auth-title {
  font-family: 'Druk Wide Cy Web Medium Regular', sans-serif;
  text-transform: uppercase;
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  line-height: 38.4px;
  margin-bottom: 40px;
}

.auth-title-small {
  font-size: 24px;
  line-height: 28.8px;
  margin-bottom: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
}

.checkbox-group input[type='checkbox'] {
  display: none;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
  position: relative;
}

.checkbox-group label::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #4f5b67;
  border-radius: 4px;
  display: inline-block;
  margin-right: 8px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.checkbox-group input[type='checkbox']:checked + label::before {
  background: #8c03e7;
  border-color: #8c03e7;
}

.checkbox-group input[type='checkbox']:checked + label::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-60%) rotate(45deg);
  width: 4px;
  height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transition: all 0.3s ease;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-link {
  text-decoration: none;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
  color: #717d8a;
}
.auth-link--hover {
  transition: 0.1s linear;
}
.auth-link--hover:hover {
  color: #ffffff;
}

.auth-highlighted {
  color: #8100d8;
}

.auth-send-code {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-link-light {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.auth-form .btn-primary {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.auth-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 191px;
}

.auth-nav-link {
  font-size: 12px;
  font-weight: 700;
  line-height: 14.4px;
  color: #fff;
  opacity: 0.6;
  transition: 0.1s linear;
}
.auth-nav-link:hover {
  opacity: 1;
}

.auth-nav-text {
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 14.4px;
  color: #ffffff99;
  margin-top: 85px;
}

.email-form .btn-primary {
  margin-top: 4px;
}

.email-form {
  gap: 20px;
  margin-top: 42px;
}

.auth-img-desk {
  display: none;
}

.password-btn {
  position: absolute;
  right: 20px;
  top: 12px;
  background: none;
  border: none;
  cursor: pointer;
}

.submit-btn {
  justify-content: center;
  position: relative;
  display: flex;
  align-items: center;
}
.submit-btn .submit-btn__loader {
  display: inline-block !important;
}

.submit-btn__loader {
  display: none;
  margin-left: 16px;
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}
.submit-btn__loader::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
  }
  25% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
  }
  75% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  }
}

@media (max-width: 1580px) {
  .auth-block {
    max-width: 382px;
  }

  .auth-img {
    display: none;
  }

  .auth-img-desk {
    display: block;
  }

  .auth-page {
    background-image: url('../img/auth-bg-desk.png');
    padding: 32px 36px;
  }
}

.error-message {
  font-size: 12px;
  line-height: 14px;
  color: #f04438;
  margin-top: 2px;
}
