* {
  padding: 0;
  margin: 0;
}

body {
  background-image: url("../images/back.png");
  background-size: auto 100%;
  overflow: hidden;
  touch-action: none;
  -ms-touch-action: none;
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

a,
p {
  color: #28303f;
}

h1,
h2,
h3 {
  color: #ffff;
}

canvas {
  touch-action-delay: none;
  touch-action: none;
  -ms-touch-action: none;
}

.hide {
  display: none;
}

.rules-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  padding-top: 30px;
  padding-bottom: 34px;
}

.text_main {
  font-size: 46px;
  width: 100%;
}

.text_sub {
  font-size: 20px;
  opacity: 80%;
  width: 474px;
}

.rules-accept {
  color: #6e788a;
  font-size: 12px;
  width: 100%;
}

.rules-accept-link {
  color: #28303f;
  text-decoration: none;
}

.rules-accept-link:hover {
  text-decoration: none;
  color: #28303f;
}

.checkbox-wrapper {
  width: 415px;
  padding: 0 20px;
}

.checkbox-wrapper-container {
  width: 100%;
  //margin-bottom: 10px;
  border-bottom: #e2e6ed 2px solid;
}

.form-control::placeholder {
  color: #98a0b0;
}

.button-rules-accept {
  background-color: #ffc800;
  border-radius: 40px;
  width: 359px;
  height: 56px;
  font-size: 16px;
  margin-bottom: 12px;
}

.button-rules-accept:disabled {
  background-color: #99a0b0;
  color: #ffffff;
}

.failed {
  padding-top: 5px;
  font-size: 13px;
  color: #f84a00;
  width: 100%;
  text-align: left;
  height: 20px;
  margin-bottom: 8px;
}

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

.skeleton-container {
  width: 100%;
  padding-top: 123px;
}

.skeleton-container img {
  width: 375px;
  height: 370px;
}

.loader-container {
  position: absolute;
  height: 100vh;
  width: 100%;
  top: 0;
}

/* Контейнер лоадера */
.loader {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.background {
  background-color: black;
  opacity: 80%;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}

/* Прогресс-бар */
.progress-loader {
  width: 100%;
  height: 0;
  background-color: #f1c40f;
  position: absolute;
  bottom: 0;
  transition: height 5s ease; /* Плавное изменение высоты */
}

/* Текст внутри прогресс-бара */
.text {
  position: absolute;
  bottom: 83.5px;
  width: 100%;
  text-align: center;
  font-size: 32px;
  /* Текст полностью скрыт, как бы обрезан */
  //clip-path: inset(100% 0 0 0);
  //transition: clip-path 5s ease; /* Плавное изменение области текста */
}

/* Для имитации увеличения лоадера и появления текста */
.loader.active .progress-loader {
  height: 100%;
}

.input-phone {
  border: none;
  border-radius: 20px;
  width: 327px;
  height: 56px;
  padding: 16px;
}

.actions-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.checkbox-actions-container {
  display: flex;
  width: 100%;
  gap: 30px;
}

.form-captcha {
  width: 100%;
  height: 72px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  margin-bottom: 52px;
  margin-top: 0 !important;
}

.button-get-new-code {
  background: transparent;
  border: none;
  color: #98a0b0;
  width: 100%;
  text-align: center;
  padding: 0 20px;
  font-size: 14px;
}

.header_container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.logo-container {
  margin-bottom: 16px;
}

.logo-container img {
  width: 103px;
  height: 120px;
}

.logo-text h3 {
  font-size: 24px;
}

.logo-text p {
  color: #6e788a;
}

.actions-container__box {
  background-image: url("../images/box.svg");
  height: 372px;
  width: 415px;
  padding: 28px;
}

.code-container__box {
  background-image: url("../images/back-code.svg");
  height: 302px;
  width: 415px;
  padding: 28px;
}

.title-container {
  margin-bottom: 32px;
}

.text-phone-number {
  font-size: 12px;
  margin-bottom: 8px !important;
  text-align: left;
  color: #6e788a;
}

.phone-input {
  border: none;
  width: 100%;
  font-size: 28px;
  padding: 0 !important;
}

.code {
  text-align: center;
}

.text-container__box {
  background-image: url("../images/back-text.svg");
  height: 128px;
  width: 415px;
  padding: 28px;
}

.text-container-title {
  color: #28303f;
  font-size: 14px;
  text-align: left;
  margin-bottom: 4px !important;
}

.text-container-desc {
  color: #6e788a;
  font-size: 14px;
  text-align: left;
}

.actions-container-mobile {
  display: none;
  max-width: 100%;
}

.checkbox-wrapper-container-mobile p {
  color: #ffffff !important;
  font-size: 14px;
  text-align: left;
}

.checkbox-wrapper-container-mobile {
  border-bottom: #ffffff 1px solid;
  margin-bottom: 32px;
}

.phone-input-mobile {
  background: transparent;
  border: none;
  color: #ffff;
  text-align: left;
  padding-left: 0;
  padding-bottom: 4px;
  width: 100%;
  font-size: 24px;
}

.text-phone-number-mobile {
  font-size: 11px;
  margin-bottom: 8px !important;
}

.text-container__box-mobile {
  display: none;
}

.text-container__box-mobile p {
  font-size: 13px;
}

.text-container__box-mobile img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  z-index: -1;
}

.button-set__container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.button-get-code {
  width: 366px;
  height: 56px;
  border-radius: 40px;
  font-size: 16px;
}

.auth {
  background-color: #ffc800;
}

.back {
  background-color: rgba(240, 242, 245, 1);
}

.back-mobile {
  display: none;
  background-color: rgba(240, 242, 245, 1);
}

@media (max-width: 480px) {
  .back-mobile {
    display: block;
  }

  .back {
    display: none;
  }

  .text_main {
    font-size: 28px;
    text-align: left;
    width: 100%;
  }

  .text_sub {
    font-size: 16px;
    text-align: left;
    width: 260px;
  }

  .title-container {
    width: 100%;
    padding-top: 30px;
  }

  .actions-container {
    max-width: 100%;
  }

  .section-auth {
    padding: 0 6%;
  }

  .checkbox-wrapper-container p {
    color: #ffffff !important;
    font-size: 14px;
    text-align: left;
  }

  .checkbox-wrapper-container {
    border-bottom: #ffffff 1px solid;
    margin-bottom: 10px;
  }

  .failed {
    margin-bottom: 4px;
  }

  .phone-input {
    background: transparent;
    border: none;
    color: #ffff;
    text-align: left;
    padding-left: 0;
    padding-bottom: 4px;
    width: 100%;
    font-size: 24px;
  }

  .form-control::placeholder {
    color: #ffff;
  }

  .form-control:focus {
    border: none;
    color: #ffff;
    background: transparent;
    outline: 0;
    box-shadow: none;
  }

  .actions-container__box {
    background-image: none;
    padding: 0;
    max-width: 100%;
  }

  .text-container__box-mobile {
    display: block;
    position: relative;
    padding: 24px 32px;
    margin-bottom: 24px;
  }

  .text-container__box {
    display: none;
  }

  .form-captcha {
    width: 100%;
    margin-bottom: 12vh;
  }

  .code-container__box {
    background-image: none;
    padding: 0;
    max-width: 100%;
  }

  .form-control.phone-input {
    background: transparent;
  }

  .button-get-new-code {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    text-align: left;
    padding: 20px 0;
    font-size: 14px;
  }

  .get-code {
    width: 100%;
  }
}
