/* ==================== Auth Page ==================== */
.main_auth {
  padding: 0;
  flex: 1;
}

.RegAuth {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.auth_container {
  display: flex;
  flex-direction: column;
}

.RegAuth__content {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.RegAuth__left {
  width: 24.5rem;
}

.RegAuth__left img {
  max-width: 100%;
  height: 100%;
}

/* desktop: show desktop bg, hide mobile bg */
.RegAuth__left .img-mob { display: none; }
.RegAuth__left .img-desk { display: block; }

.RegAuth__right {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 1.925rem;
  max-width: 16rem;
  min-width: 16rem;
}

.RegAuth__title {
  color: var(--White);
  font-size: 1.5rem;
  text-align: center;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 1.25rem;
}

/* ==================== Form ==================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form__btn {
  display: flex;
  flex-direction: column;
}

.form__btn .btn__border {
  color: var(--Light-grey);
}

.form__row {
  display: flex;
  flex-direction: column;
}

.form__row p {
  color: var(--White);
  text-align: center;
  font-size: 0.5rem;
  font-weight: 400;
  line-height: 150%;
}

.form__row p b { font-weight: 700; }

/* ==================== Input ==================== */
.input {
  display: flex;
  width: 100%;
  height: 2rem;
  min-height: 52px;
  padding: 5px 20px;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  border: 2px solid #000;
  background: #fff;
  color: var(--Black);
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 400;
  line-height: normal;
  outline: none;
  box-sizing: border-box;
}

.input.success { border: 2px solid var(--Blue); }
.input[type="tel"] { padding: 5px calc(50% - 90px); text-align: left; }
.input:focus::placeholder { color: #000; }
.input::placeholder { color: #000; opacity: 1; }
.input._pin { letter-spacing: 0.38rem; text-align: center; }

/* ==================== Button variants ==================== */
.btn__purple {
  border-color: var(--Blue);
  background: var(--Blue);
  color: #fff;
}

.btn__purple:disabled,
.btn.btn__purple:disabled {
  opacity: 0.33;
  cursor: not-allowed;
}

.btn__border:disabled,
.btn.btn__border:disabled {
  opacity: 0.33;
  cursor: not-allowed;
}

/* ==================== Checkbox ==================== */
.checkbox {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: left;
}

.checkbox .checkbox-input { display: none; }

.checkbox .checkbox-input + .checkbox-label {
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  font-size: 0.3rem;
  color: #667085;
  line-height: 1.2;
}

.banner__btn .form__checkbox {
  margin-top: 0;
}

/* span внутри чекбокса — явный цвет для обоих режимов (клоак и обычный) */
.checkbox .checkbox-input + .checkbox-label span {
  color: rgba(255, 255, 255, 0.8);
}

/* Отступ чекбокса от кнопки в форме регистрации */
.form__checkbox {
  margin-top: 0.25rem;
}

.RegAuth__content {
  padding-bottom: 10px;
}

@media(max-width:800px) {
  .checkbox .checkbox-input + .checkbox-label {
    font-size: 11px!important;
    line-height: 16px!important;
  }


  .form__btn .btn__border {
    margin-top: 1rem;
  }
  .MainBl .input {
    text-align: center;
    font-size: 18px;
  }
  #step-code .form__row p {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .auth-resend {
    color: #fff!important;
    margin-top: 10px!important;
    margin-bottom: 19px!important;
    font-size: 14px!important;
  }
  .form {
    gap: .3rem;
  }
  .checkbox-label span {
    font-size: 10.8px;
    line-height: 12.4px;
  }
  /* Увеличиваем отступ между инпутом и кнопкой на мобайле */
  .form .form__btn:first-of-type {
    margin-top: 0.25rem;
  }
}

.checkbox-label a {
  color: var(--Blue);
  text-decoration: underline;
}

.checkbox .checkbox-input + .checkbox-label::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid var(--Grey);
  margin-right: 10px;
  margin-top: 2px;
}

.checkbox .checkbox-input:checked + .checkbox-label::before {
  background-color: var(--Blue);
  border-color: var(--Blue);
}

.checkbox .checkbox-input:checked + .checkbox-label::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ==================== Resend timer ==================== */
.auth-resend {
  text-align: center;
  font-size: 0.45rem;
  color: var(--Light-grey);
  margin-bottom: 0.5rem;
}

.auth-resend a {
  color: var(--Blue);
}

.btn__purple:disabled,
.btn__purple._disable {
  opacity: 0.33;
  cursor: not-allowed;
}

/* ==================== Error ==================== */
.auth-error {
  font-size: 0.45rem;
  color: #ff4d4f;
  text-align: center;
  padding: 0.25rem 0;
}

/* ==================== Mobile (≤ 800px) ==================== */
@media (max-width: 800px) {
  .auth_container {
    margin: -0.7rem auto;
    padding: 0;
  }

  .RegAuth {
    background: var(--mobile-background-color);
    padding: 0;
    margin: 0;
    min-height: 100vh;
  }

  .RegAuth__content {
    flex-direction: column;
    min-height: 91.7vh;
    gap: 0;
    align-items: stretch;
  }

  .RegAuth__left {
    width: auto;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -550px;
    display: flex;
    flex-direction: column;
  }

  .RegAuth__left img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  /* mobile: show mobile bg, hide desktop bg */
  .RegAuth__left .img-desk { display: none; }
  .RegAuth__left .img-mob { display: block; }

  .RegAuth__right {
    border-radius: 30px 30px 0 0;
    background: var(--mobile-background-color);
    padding: 30px 20px;
    flex-direction: column;
    margin-top: auto;
    min-height: 65vh;
    max-width: none;
    min-width: 0;
  }

  .RegAuth__right.sms-step {
    flex-grow: 1;
    margin-top: 0;
    border-radius: 0;
  }

  .RegAuth__title {
    text-align: left;
    font-size: 22px;
  }
}
