body {
  background: #f6f5f7;
  height: 100vh;
  margin: -0px 0 0px;
  margin-top: 0px;
}

.reg__modal-btn {
  font-size: 18px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid var(--blue-color);
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  margin: 0 auto;
  margin-top: 30px;
  color: var(--blue-color);
}

.form__title {
  font-weight: 700;
  margin: 0;
}

.overlay-panel p {
  font-size: 14px;
  font-weight: 100;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 20px 0;
}

span {
  font-size: 14px;
}

.form-container p {
  color: #333;
  font-size: 14px;
  margin: 15px 0;
  min-width: 118px;
}

.wrapper {
  background: #fff;
  border-radius: 10px;
  -webkit-box-shadow: 0 14px 28px rgb(0 0 0 / 25%), 0 10px 10px rgb(0 0 0 / 22%);
  box-shadow: 0 14px 28px rgb(0 0 0 / 25%), 0 10px 10px rgb(0 0 0 / 22%);
  position: relative;
  overflow: hidden;
  max-width: 768px;
  width: 100%;
  min-height: 400px;
  margin: 40px auto;
}

.form-container form {
  background: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 0 50px;
  height: 100%;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
}

.form-container input {
  background: #eee;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
  border-radius: 10px;
}

.hidden__block-form,
.reg__block-hidden {
  display: none;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.time__limit-text.cursor {
  cursor: pointer;
}

.overlay__btn {
  border-radius: 10px;
  border: 1px solid var(--green-color);
  background: #69f179;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  -webkit-transition: -webkit-transform 80ms ease-in;
  transition: -webkit-transform 80ms ease-in;
  -o-transition: transform 80ms ease-in;
  transition: transform 80ms ease-in;
  transition: transform 80ms ease-in, -webkit-transform 80ms ease-in;
  width: 100%;
  margin: 8px 0;
}

.overlay__btn:active {
  -webkit-transform: scale(0.95);
  -ms-transform: scale(0.95);
  transform: scale(0.95);
}

.overlay__btn:focus {
  outline: none;
}

.overlay__btn.ghost {
  background: transparent;
  border-color: #fff;
}

.last__check-label {
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.last__check-label p {
  display: initial;
  text-align: initial;
  font-size: 12px;
  line-height: 16px;
  margin: 0;
  margin-left: 5px;
}

.last__check-label p a {
  color: var(--blue-color);
  display: initial;
}

.info__reg-text {
  display: none;
  color: var(--red-color);
}

.reg__btn {
  display: none;
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 11;
}

.sign-up-container {
  left: 0;
  width: 50%;
  z-index: 1;
  opacity: 0;
}

.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: -webkit-transform 0.3s ease-in-out;
  -o-transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  z-index: 20;
}

.overlay__content {
  background: #ff416c;
  background: -webkit-gradient(linear, left top, right top, from(#c09ef7), to(#b289f5)) no-repeat 0 0 / cover;
  background: -o-linear-gradient(left, #c09ef7, #b289f5) no-repeat 0 0 / cover;
  background: linear-gradient(to right, #c09ef7, #b289f5) no-repeat 0 0 / cover;
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: -webkit-transform 0.3s ease-in-out;
  -o-transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

.overlay-panel {
  position: absolute;
  top: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0 40px;
  height: 100%;
  width: 50%;
  text-align: center;
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: -webkit-transform 0.3s ease-in-out;
  -o-transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

.overlay-right {
  right: 0;
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

.overlay-left {
  -webkit-transform: translateY(-20%);
  -ms-transform: translateY(-20%);
  transform: translateY(-20%);
}

.wrapper.right-panel-active .sign-in-container {
  -webkit-transform: translateY(100%);
  -ms-transform: translateY(100%);
  transform: translateY(100%);
}

.wrapper.right-panel-active .overlay-container {
  -webkit-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  transform: translateX(-100%);
}

.wrapper.right-panel-active .sign-up-container {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
}

.wrapper.right-panel-active .overlay__content {
  -webkit-transform: translateX(50%);
  -ms-transform: translateX(50%);
  transform: translateX(50%);
}

.wrapper.right-panel-active .overlay-left {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

.wrapper.right-panel-active .overlay-right {
  -webkit-transform: translateY(20%);
  -ms-transform: translateY(20%);
  transform: translateY(20%);
}

.modal__reg .modal__content {
  padding-top: 50px;
}

.modal__group-btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
}

.modal__group-btns button:first-child {
  background: var(--green-color);
  color: var(--blue-color);
}

.form__input-hidden {
  display: none;
}

.modal__reg input {
  margin: 0;
  margin-bottom: 15px;
}

.modal__btn-again {
  margin: 0;
}

.form-container .text__reg {
  display: none;
  font-size: 16px;
  min-width: auto;
  text-align: center;
  color: var(--red-color);
}

.auth__btn {
  display: none;
  text-align: center;
  padding: 16px 0;
}

/* ----------------- @media -------------------- */

@media screen and (max-width: 768px) {

  .form-container form,
  .overlay-panel {
    padding: 0 20px;
  }
}

@media screen and (max-width: 575px) {
  .wrapper {
    min-height: 580px;
  }

  .overlay-container {
    top: initial;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
  }

  .form-container form,
  .overlay-panel {
    padding: 20px;
  }

  .form-container input {
    padding: 10px 15px;
    margin: 5px 0;
  }

  .wrapper.right-panel-active .overlay-container {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }

  .overlay-left,
  .overlay-right {
    -webkit-transform: translateX(0%);
    -ms-transform: translateX(0%);
    transform: translateX(0%);
  }

  .sign-in-container {
    top: 0;
    width: 100%;
    height: 50%;
  }

  .sign-up-container {
    width: 100%;
  }

  .wrapper.right-panel-active .sign-up-container {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }

  .wrapper.right-panel-active .overlay-right {
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
  }

  .form-container form {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
}

@media screen and (max-width: 520px) {
  .header {
    -webkit-transform: translateY(-66%);
    -ms-transform: translateY(-66%);
    transform: translateY(-66%);
  }

  .header__container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .nav__burger .menu.open,
  .mask.open {
    top: 180px;
  }

  main {
    margin-top: -120px;
  }
}

@media screen and (max-width: 424px) {
  .modal__group-btns {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0;
  }
}

@media screen and (max-width: 375px) {
  .modal__group-btns {
    gap: 15px;
  }

  .reg__block-hidden {
    margin: 15px 0;
  }
}

@media screen and (max-width: 356px) {

  .nav__burger .menu.open,
  .mask.open {
    top: 186px;
  }
}

/* @media (max-width: 460px) {
  .last__check-label p {
    font-size: 12px;
    line-height: 14px;
  }
} */