.auth-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.60);
  z-index: 99999999999999;
  justify-content: center;
  align-items: center;
}

.auth-popup-overlay.loading {
  pointer-events: none !important;
}

.auth-popup-overlay.loading > div > * {
  opacity: 0.75;
}

.auth-popup-overlay.show {
  display: flex;
}

.auth-popup {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 792px;
  width: 100%;
  max-height: 95vh;
  overflow: hidden;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: authPopupScale 0.3s ease-out;
}

@keyframes authPopupScale {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.auth-popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 12px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: transparent;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.36);
  opacity: 0.3;
  transition: all .3s;
}

.auth-popup__close svg path {
  transition: all .3s;
}

.auth-popup__close:hover {
  opacity: 1;
  border: 1px solid #E63737;
}

.auth-popup__close:hover svg path {
  stroke: #E63737;
}

.auth-popup__content {
  display: flex;
  padding: 35px;
  gap: 35px;
}

.auth-popup__left {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  background-color: #FFF5F5;
  max-width: 322px;
  width: 100%;
  background-image: url('../img/auth/left-bg.png');
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-popup__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-popup__title {
  margin-bottom: 20px;
  text-align: center;
}

.auth-popup__title-left {
  text-align: left;
  margin-bottom: 7px;
}

.auth-popup__subtitle {
  color: #363636;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
}

.auth-popup__benefits {
  margin-block: 19px;
}

.auth-popup__benefit {
  display: flex;
  align-items: center;
  margin-bottom: 21px;
  gap: 10px;
}

.auth-popup__benefit:last-child {
  margin-bottom: 0;
}

.auth-popup__benefit-icon {
  flex-shrink: 0;
  line-height: 0;
}

.auth-popup__benefit-icon svg {
  width: 36px;
  height: 36px;
  aspect-ratio: 1/1;
}

.auth-popup__benefit-text {
  color: #363636;
  font-size: 15px;
  font-weight: 600;
  line-height: 140%;
  max-width: 200px;
}



.auth-popup__tabs {
  display: flex;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #EFEFEF;
  padding: 4px;
}

.auth-popup__tab {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-popup__tab--active {
  background: white;
  color: #E63737;
}

.auth-popup__form {
  width: 100%;
}

.auth-popup__tab-content {
  display: none;
  margin-bottom: 20px;
}

.auth-popup__tab-content--active {
  display: block;
}

.auth-popup__label {
  color: #000;
  font-size: 13px;
  font-weight: 400;
  line-height: 140%;
  margin-bottom: 4px;
  display: block;
}

.auth-popup__input-wrapper {
  position: relative;
}


.auth-popup__input {
  width: 100%;
  padding: 15px;
  border-radius: 9px;
  border: 1px solid #CDCDCD;
  background: #FFF;
  font-size: 13px;
  color: #000;
  line-height: 140%;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.auth-popup__input:focus {
  outline: none;
  border-color: #CDCDCD;
  box-shadow:
    0 0 0 2px #EFEFEF,
    0 4px 10px rgba(0, 0, 0, 0.05);
}

.auth-popup__input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

.auth-popup__submit {
  width: 100%;
  background: transparent;
  padding: 0;
}

.auth-popup__back {
  margin-top: 10px;
  
  width: 100%;
  background: transparent;
  padding: 0;
  border-radius: 10px;
  border: 1.3px solid rgba(230, 55, 55, 0.14);
  color: var(--Primary-Red, #E63737);

  display: flex;
  padding: 14px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  align-self: stretch;

  /* Text 14px/Medium */
  font-family: Geologica;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 19.6px */
}

.auth-popup__checkbox-wrapper {
  margin-top: 20px;
  margin-bottom: 20px;
}

.auth-popup__checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  user-select: none;
}

.auth-popup__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-popup__checkbox-custom {
  width: 22px;
  height: 22px;
  border: 1px solid #EFEFEF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.auth-popup__checkbox:checked+.auth-popup__checkbox-custom {
  background: #E63737;
  border-color: #E63737;
}

.auth-popup__checkbox:checked+.auth-popup__checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

.auth-popup__checkbox-text {
  color: #363636;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.auth-popup__password-field {
  margin-top: 15px;
  animation: slideDown 0.3s ease-out;
}

.auth-popup__tab-content .sms-popup__subtitle {
  margin-bottom: 4px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-popup__password-wrapper {
  position: relative;
}

.auth-popup__password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.auth-popup__password-toggle:hover {
  opacity: 0.7;
}

.auth-popup__eye-icon,
.auth-popup__eye-off-icon {
  width: 18px;
  height: 18px;
}


.auth-popup.auth-popup-code {
  max-width: 440px;
}

.sms-popup__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  margin: 0 auto;
  width: 100%;
}

.sms-popup__subtitle {
  color: #000;
  font-size: 13px;
  font-weight: 400;
  line-height: 140%;
  width: 100%;

}

.sms-popup__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sms-popup__code-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  width: 100%;
  position: relative;
}

.sms-popup__code-input {
  width: 100%;
  height: 48px;
  border: 1px solid #EFEFEF;
  border-radius: 9px;
  background: #FFF;
  text-align: center;
  color: #000;
  font-size: 13px;
  font-weight: 300;
  line-height: 140%;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sms-popup__code-input:focus {
  outline: none;
  border-color: #E63737;
}


.sms-popup__resend {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
}

.sms-popup__resend-text {
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 126%;
}

.sms-popup__resend-btn {
  background: none;
  color: #E63737;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
  padding: 0;
  border-bottom: 1px dashed #E63737;
  margin-bottom: -1px;
}

.sms-popup__resend-btn:hover {
  color: #000;
  border-bottom: 1px dashed #000;
}

.sms-popup__resend-btn:disabled {
  color: #999;
  cursor: not-allowed;
}

.sms-popup__form--error .sms-popup__code-input {
  border: 1px solid #E63737;
  box-shadow: 0 2px 6px 0 rgba(255, 0, 0, 0.13) inset;
  color: #E63737;
}

.error-code {
  position: absolute;
  padding: 3px 6px;
  border-radius: 8px;
  background: #E63737;
  color: #FFF;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  line-height: 140%;
  bottom: -21px;
  left: 0;
  display: none;
}

.error-code::after {
  content: "";
  width: 7.5px;
  height: 7.5px;
  transform: rotate(45deg);
  position: absolute;
  left: 8.999px;
  top: -3px;
  background: #E63737;
}

.sms-popup__form--error .error-code {
  display: block;
}

.sms-popup__form--error .sms-popup__code-inputs {
  margin-bottom: 38px;
}

.sms-popup__resend-vaiting {
  color: #808080;
  font-size: 14px;
  font-weight: 400;
  line-height: 126%;
}

.sms-popup__resend-vaiting-value {
  color: #000;
}

.auth-popup__submit.disabled {
  pointer-events: none;
}

.auth-popup__submit.disabled .red-btn {
  background: #CDCDCD;
}

.auth-popup__submit.disabled .red-btn path {
  stroke: #CDCDCD;
}

.auth-popup.auth-popup-registration {
  max-width: 1015px;
}


.registration-popup__row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.registration-popup__field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.registration-popup__required {
  color: #E63737;
  font-weight: 500;
}

.registration-popup__agreement {
  margin-bottom: 20px;
  text-align: left;
}

.auth-popup__checkbox-text {
  color: #363636;
  font-size: 13px;
  font-weight: 300;
  line-height: 140%;
  margin: 0;
}

.auth-popup__checkbox-text b {
  font-weight: 700;
}

.registration-popup__policy-link {
  color: #E63737;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.registration-popup__policy-link:hover {
  color: #000;
}

input::placeholder {
  color: rgba(0, 0, 0, 0.4) !important;
}

.error-field input {
  color: #E63737;
  border: 1px solid #E63737 !important;
  box-shadow: none !important;
}

.form-notice-items {
  margin-block: 20px;
}

.form-notice-item {
  color: #E63737;
  font-size: 12px;
  font-weight: 300;
  line-height: 140%;
  list-style-type: disc;
  margin-left: 15px;
}

@media (max-width: 1040px) {
  .auth-popup.auth-popup-registration {
    max-width: calc(100vw - 30px);
  }
}

@media (max-width: 900px) {
  .registration-popup__row {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
  }
}

@media (max-width: 820px) {
  .auth-popup {
    max-width: calc(100vw - 30px);
  }

  .auth-popup__content {
    padding: 20px;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .auth-popup__checkbox-label {
    align-items: flex-start;
  }

  .auth-popup.auth-popup-registration {
    max-width: 450px;
  }

  .form-notice-items {
    margin-block: 15px;
  }

  .auth-popup__content {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .auth-popup__right {
    order: -1;
  }

  .auth-popup {
    max-width: 450px;
  }

  .auth-popup__close {
    top: 10px;
    right: 10px;
  }

  .auth-popup__title {
    margin-bottom: 15px;
  }

  .auth-popup__tabs {
    margin-bottom: 15px;
  }

  .auth-popup__tab {
    font-size: 12px;
  }

  .auth-popup__tab-content {
    margin-bottom: 15px;
  }

  .auth-popup__left {
    max-width: 100%;
  }

  .auth-popup__left {
    padding: 15px;
  }

  .auth-popup__title-left {
    margin-bottom: 5px;
  }

  .auth-popup__subtitle {
    font-size: 13px;
  }

  .auth-popup__benefits {
    margin-block: 10px;
  }

  .auth-popup__benefit-icon svg {
    width: 31px;
    height: 31px;
    aspect-ratio: 1 / 1;
  }

  .auth-popup__benefit-text {
    font-size: 13px;
    max-width: 100%;
  }

  .auth-popup__benefit {
    margin-bottom: 13px;
  }

  .auth-popup__checkbox-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
  }

}


@media (max-width: 480px) {
  .auth-popup {
    max-width: calc(100vw - 30px);
    max-height: 80vh;
  }

  .sms-popup__code-inputs {
    margin-bottom: 15px;
  }

  .auth-popup.auth-popup-code {
    max-width: calc(100vw - 30px);
  }

  .sms-popup__resend {
    margin-bottom: 15px;
  }

  .auth-popup.auth-popup-registration {
    max-width: calc(100vw - 30px);
  }
}

.auth-popup-overlay > div {
  display: none;
}

.auth-popup-overlay.login > div.auth-popup-login,
.auth-popup-overlay.registration > div.auth-popup-registration,
.auth-popup-overlay.code > div.auth-popup-code {
  display: block;
}

.auth-popup-overlay .auth-popup-code.timeout .sms-popup__resend,
.auth-popup-overlay .auth-popup-code:not(.timeout) .sms-popup__timeout {
  display: none;
}

.registration-popup__field.birthdate-field.error-field .input-date-wrap .pseudo-input {
  border: 1px solid #E63737 !important;
  border-radius: 6px;
  box-shadow: none !important;
}