:root {
  --accent: #3fd62b;
  --height-element: 48px;
  --mobile-height: 35px;
}

* {
  color: #fff;
  font-weight: 500;
}

::-webkit-scrollbar {
  width: 4px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 12px;
}

.offer-tablet,
.offer-mobile,
.footer-tablet,
.footer-mob {
  display: none;
}

.app {
  /* background-image: url("../assets/img/bg.avif"); */
  background-position: left top;
  background-size: cover;
  background-color: #131416;
  min-height: 930px;
  height: 100dvh;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: end;
  padding-right: 10vw;
}

.parallax {
  position: fixed;
  inset: 0;
  z-index: -100000;
  overflow: hidden;
}

.form__block {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 50px;
}

.text-center {
  text-align: center;
}

.text-green {
  color: var(--accent);
}

.logo {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
}

.text1 img {
  display: none;
  margin-bottom: 6px;
}

.text1 img.active,
.text1 .title-text.active {
  display: block;
  font-size: 30px;
}

.form__block {
  width: 100%;
  max-width: 534px;
  position: relative;
  z-index: 100;
}

.form__wrap {
  padding: 48px 16px 32px;
  background: #000000;
  width: 100%;
  border-radius: 16px;
}

.form__head-content {
  margin-top: 30px;
}

.form__title-procent {
  font-size: 90px;
}

.form__subtitle {
  font-size: 32px;
}

.register-drop-currency .dropdown__head {
  cursor: default;
}

.county__head-code {
  font-size: 16px;
}

.form__tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  border-radius: 16px;
}

.form__tabs span {
  flex: 1;
  border-radius: 8px;
  height: var(--height-element);
  background: #111111;
  color: #999999;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.form__tabs span.active {
  color: var(--accent);
  border: 1px solid var(--accent);
}

.input {
  width: 100%;
  padding: 0 16px;
  font-size: 18px;
  height: var(--height-element);

  border-radius: 8px;
  border: 1px solid #333;
  background: #131416;
  color: #fff;
}

.input::placeholder {
  color: #888;
}

.input__code-verify {
  padding-left: 8px;
  text-transform: uppercase;
}

.dropdown {
  position: relative;
}

.register-drop-currency {
  height: 0;
  opacity: 0;
  margin-top: -16px;
}

.register-country,
.dropdown__head {
  width: 100%;
  height: var(--height-element);
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid #333;
  background-color: #131416;
}

.dropdown__head.currency {
  padding-left: 12px;
}

.register-country {
  justify-content: flex-start;
  width: unset;
}

.register-country span {
  font-size: 18px;
}

.dropdown__title {
  font-size: 20px;
  color: #7f7f7f;
}

.dropdown__list {
  display: none;
  position: absolute;
  width: 100%;
  min-width: fit-content;
  top: 110%;
  left: 0;
  z-index: 10;

  border-radius: 10px;
  border: 1px solid #393630;
  background: #111111;
  cursor: pointer;
}

.dropdown__list li {
  position: relative;
  padding: 14px 28px 14px 40px;
  height: var(--height-element);
  width: 100%;
  display: flex;
  align-items: center;
  transition: 0.2s ease-in-out;
  color: rgba(242, 243, 245, 0.5);
  font-size: 20px;
}

.dropdown__list li:hover {
  background: #393630;
}

.dropdown__list li:not(:last-child) {
  border-bottom: 1px solid #393630;
}

.dropdown.active .dropdown__list {
  display: block;
}

.dropdown.active .drop-arrow {
  rotate: 180deg;
}

.form__confirm {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 16px;
  border-radius: 8px;
  padding: 8px;
  position: relative;
}

.form__confirm p {
  text-align: center;
}

.form__confirm button {
  width: 17px;
  height: 17px;
}

.form__confirm button:before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid var(--accent);
  border-radius: 50px;
}

.form__confirm button img {
  width: 17px;
  height: 17px;
  opacity: 0;
}

.form__confirm button.active:before {
  border: 2px solid transparent;
}

.form__confirm button.active img {
  opacity: 1;
}

.form__button-submit {
  height: 60px;
  border-radius: 24px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  margin: 0 auto 20px;
  width: 100%;
  max-width: 267px;
  letter-spacing: 1.5px;
  transition: 0.2s ease-in-out;
  box-shadow: 0 4px 0 0 var(--accent);
}

.form__button-submit span {
  color: #000;
  font-weight: 500;
}

[data-text="formSubmitBtn"] {
  color: #000;
  font-size: 20px;
  font-weight: 900;
}

.form__button-submit:hover {
  opacity: 0.8;
}

.form__footer {
  font-size: 12px;
}

.form__footer span {
  color: #888888;
}

.phone__input-wrap {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
  position: relative;
}

.phone-input-error-wrap {
  width: 100%;
}

.show-edit-icon {
  display: none;
}

.show-edit-icon {
  display: none;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
}

.country-flag {
  width: 24px;
  object-fit: contain;
  border-radius: 4px;
  transform: translateY(2px);
}

.country__list {
  width: fit-content;
}

.country__list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.country__list li > span {
  white-space: nowrap;
  font-size: 16px;
}

.form__confirm p span,
.form__confirm a {
  font-size: 12px;
}

.form__confirm p span {
  color: #888;
}

.form__confirm a {
  color: var(--accent);
  text-decoration: underline;
}

.form__register:not(.isEmail-form) .email-input-wrap {
  display: none;
}

button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.payments {
  /* margin: 140px auto 0; */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.payments img {
  max-width: 100%;
}

.form__button-submit-code {
  height: var(--height-element);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: #131416;
  color: var(--accent);
  transition: 0.2s ease-in-out;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.form__button-submit-code:hover {
  background-color: var(--accent);
  color: #000000;
}

.user-is-exist,
.invalid-number {
  border-radius: 10px;
  border: 1px solid red;
  background: #131416;
  color: red;
  font-size: 16px;
  padding: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

.sms-error {
  font-weight: 400;
  color: red;
  font-size: 16px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.sms-error.isError,
.user-is-exist.isError {
  display: flex;
}

.isEmail-form .send-sms-wrap,
.input__code-verify {
  display: none;
}

.mobile-banner,
.tablet-banner {
  display: none;
}

.payments__wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  gap: 40px;
}

.payments {
  gap: 40px;
  position: relative;
  z-index: 60;
}

.tablet,
.mobile {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(0.8);
  }
}

@media screen and (max-height: 890px) and (min-width: 769px) {
  .form__wrap {
    padding: 20px;
  }

  .form__title {
    margin-bottom: 20px !important;
  }

  .logo {
    height: 60px;
  }
}

@media screen and (max-height: 700px) and (min-width: 769px) {
  .form__title {
    margin-bottom: 14px !important;
  }

  .form__wrap {
    padding: 16px;
  }

  .form__footer-wrap {
    bottom: 16px;
    width: 100%;
  }
}

@media screen and (min-width: 769px) {
  .form__wrap {
    position: relative;
  }

  .form__register {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .form__footer-wrap {
    width: 100%;
  }

  .form__confirm {
    flex-grow: 1;
  }
}

@media screen and (max-height: 700px) and (min-width: 769px) {
  .form__footer-wrap {
    bottom: 16px;
  }
}

@media (max-width: 1300px) {
  .form__block {
    max-width: 470px;
  }
}

@media (max-width: 1024px) {
  .desktop {
    display: none;
  }

  .offer-tablet,
  .footer-tablet {
    display: block;
  }

  .footer {
    display: none;
  }

  .tablet {
    display: inline-block;
  }

  .hero {
    margin-right: 0 !important;
    max-width: 70vw;
  }

  .app {
    background-image: url("../assets/img/tablet.avif") !important;
    background-position: center top !important;
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
  }

  .form__block {
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
    width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: static;
  }

  .form__wrap {
    max-width: 100%;
    margin-bottom: 0;
  }

  .form__tabs {
    margin-bottom: 16px;
  }

  .form__confirm {
    margin-top: 0;
    padding-block: 0;
  }

  .payments__wrap {
    display: flex;
    padding: 0 20px 20px;
    flex: 1;
    align-items: flex-end;
    justify-content: center;
  }

  .tablet-banner {
    display: block;
    width: 100%;
    object-position: center top;
    object-fit: cover;
  }

  .logo {
    width: auto;
    height: 50px;
    top: 32px;
    z-index: 1000;
  }

  .app {
    background: #131416;
    padding-right: 0;
  }

  .input {
    font-size: 22px;
    letter-spacing: -0.26px;
  }

  .dropdown__title {
    font-size: 22px;
  }

  .form__confirm p,
  .form__confirm a {
    font-size: 14px;
  }

  .form__button-submit {
    margin-bottom: 16px;
  }

  .dropdown__list li {
    font-size: 26px;
  }

  .phone__input-wrap {
    gap: 10px;
  }

  [data-text="formSubmitBtn"] {
    font-size: 26px;
  }

  .country__code {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .register-drop-currency {
    margin-top: 0;
  }

  .form__confirm {
    margin-top: 16px;
  }

  .payments {
    gap: 32px;
  }
}

@media (max-width: 580px) {
  .tablet-banner {
    display: none;
  }

  .hero {
    display: none;
  }

  .form__wrap {
    padding: 32px 16px !important;
  }

  .app {
    background-image: url("../assets/img/mobile.avif") !important;
  }

  .mobile-banner {
    display: block;
    position: absolute;

    object-position: center top;
    object-fit: cover;
  }

  .offer-tablet,
  .footer-tablet {
    display: none;
  }

  .offer-mobile,
  .footer-mob {
    display: block;
  }

  .form__tabs {
    font-size: 12px;
    margin-bottom: 12px;
    gap: 8px;
  }

  .dropdown__title,
  .dropdown__list {
    font-size: 14px;
  }

  .form__confirm {
    margin-block: 12px;
  }

  .form__confirm p,
  .form__confirm a {
    font-size: 12px;
  }

  .input {
    font-size: 16px;
    height: var(--mobile-height);
  }

  .form__button-submit-code {
    display: none;
  }

  .dropdown__title {
    font-size: 11px;
  }

  .form__subtitle {
    font-size: 13px;
  }

  .form__tabs span {
    text-align: center;
    font-size: 3.2vw;
    height: var(--mobile-height);
    border-radius: 8px;
  }

  .input-wrap .input,
  .dropdown__head {
    height: var(--mobile-height);
  }

  .register-country,
  .dropdown__head {
    height: var(--mobile-height);
    border-radius: 8px;
  }

  .register-country span {
    font-size: 14px;
  }

  [data-text="formSubmitBtn"] {
    font-size: 18px;
  }

  .form__footer {
    font-size: 8px;
  }

  .form__button-submit {
    font-size: 24px;
  }

  .rules {
    margin-top: 10px !important;
  }

  .logo {
    height: 28px;
    top: 16px;
    left: 16px;
    transform: translateX(0);
  }

  .dropdown__list li {
    height: 35px;
    font-size: 14px;
  }

  .form__confirm p,
  .form__confirm a {
    font-size: 10px;
  }

  .form__confirm p span,
  .form__confirm a {
    font-size: 8px;
  }

  .form__button-submit {
    height: 42px;
    font-size: 20px;
    margin-bottom: 12px;
  }
}

@media (max-width: 440px) {
  .tablet {
    display: none;
  }

  .desktop {
    display: inline-block;
  }
}
