
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.back_btn img {
  margin-left: 19px;
  width: 25px;
  margin-top: 18px;
  cursor: pointer;
}

#date {
  background: none;
  outline: none;
  text-align: right;
  transition: 250ms width ease, 250ms border-color ease;
}

.error_msg_div {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.error_msg_div p {
  color: #D22B2B;
  font-size: 14px;
}

body,
input {
  font-family: "Poppins", sans-serif;
}

main {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-color: #e1dddb;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box {
  position: relative;
  width: 100%;
  max-width: 1020px;
  height: 760px;
  background-color: #fff;
  border-radius: 1.3rem;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.inner-box {
  position: absolute;
  width: calc(100% - 4.1rem);
  height: calc(100% - 4.1rem);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.forms-wrap {
  position: absolute;
  height: 100%;
  width: 45%;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  transition: 0.8s ease-in-out;
}

.sign-in-form,
.sign-up-form {
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  transition: opacity 0.02s 0.4s;
}



form.sign-up-form {
  opacity: 0;
  pointer-events: none;
}

.logo {
  text-align: center;
}


.logo img {
  width: 230px;
}

.logo h4 {
  font-size: 1.1rem;
  margin-top: -9px;
  letter-spacing: -0.5px;
  color: #151111;
}

.heading h2 {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 10px;
  color: #2e358b;
}

.heading h6 {
  color: #bababa;
  font-weight: 400;
  font-size: 0.75rem;
  display: inline;
}


.sign-in-up h6 {
  color: #656060;
  font-weight: 400;
  font-size: 0.75rem;
  display: inline;
}

.sign-in-up {
  text-align: center
}

.toggle {
  color: #007bff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: 0.3s;
  cursor: pointer;
}

.toggle:hover {
  color: #0dcaf0;
}

.input-wrap {
  position: relative;
  height: 37px;
  margin-bottom: 1.5rem;
}

.input_field {
  position: absolute;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  outline: none;
  border-bottom: 1px solid #797777;
  padding: 0;
  font-size: 0.95rem;
  color: #151111;
  transition: 0.4s;
}



.input_field::-webkit-outer-spin-button,
.input_field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/*for eye design*/
.form-floating {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
}


.lbl-input {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #0a0909;
  pointer-events: none;
  transition: 0.4s;
}

.input_field.active {
  border-bottom-color: #151111;
}

.input_field.active+label {
  font-size: 0.75rem;
  top: -2px;
}



#button {
  width: 100%;
  height: 43px;
  background-color: #007bff;
  color: #ffffff;
  font-size: 0.8rem;
  border: none;
  border-radius: 0.8rem;
  font-family: system-ui;
  cursor: pointer;
  margin-bottom: 1rem;
  font-weight: bold;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

#button:hover {
  background-color: #0dcaf0;
}

.spinner {
  width: 34px;
  height: 34px;
  background: transparent;
  box-sizing: border-box;
  border-top: 4px solid #ffffff;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-radius: 100%;
  animation: spin 0.6s ease-out infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.sign-btn {
  display: inline-block;
  width: 100%;
  height: 43px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  transition: 0.3s;
}

.sign-btn:hover {
  background-color: #0dcaf0;
}

.text {
  color: #000;
  margin-top: 11px;
  margin-left: 2px;
  font-size: 10px;
}


.text a {
  color: #007bff;
  font-size: 10px;
}

.text a:hover {
  color: #0dcaf0;
}

main.sign-up-mode form.sign-in-form {
  opacity: 0;
  pointer-events: none;
}

main.sign-up-mode form.sign-up-form {
  opacity: 1;
  pointer-events: all;
}

main.sign-up-mode .forms-wrap {
  left: 55%;
}

main.sign-up-mode .carousel {
  left: 0%;
}

.carousel {
  position: absolute;
  height: 100%;
  width: 55%;
  left: 45%;
  top: 0;
  padding-top: 5%;
  background-color: #2e88e9;
  border-radius: 2rem;
  display: grid;
  grid-template-rows: auto 1fr;
  padding-bottom: 2rem;
  overflow: hidden;
  transition: 0.8s ease-in-out;
}

.images-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.image {
  width: 100%;
  grid-column: 1/2;
  grid-row: 1/2;
  opacity: 0;
  transition: opacity 0.3s, transform 0.5s;
}

.img-1 {
  transform: translate(0, -50px);
}

.img-2 {
  transform: scale(0.4, 0.5);
}

.img-3 {
  transform: scale(0.3) rotate(-20deg);
}

.image.show {
  opacity: 1;
  transform: none;
  margin: auto;
  width: 93%;
}

.text-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 24px
}

.text-wrap {
  max-height: 2.2rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.text-group {
  display: flex;
  flex-direction: column;
  text-align: center;
  transform: translateY(0);
  transition: 0.5s;
}

.text-group h2 {
  line-height: 2.2rem;
  font-weight: 600;
  color: #fff;
  font-size: 1.6rem;
}

.bullets {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bullets span {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #fff;
  margin: 0 0.25rem;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.bullets span.active {
  width: 1.1rem;
  background-color: #fff;
  border-radius: 1rem;
}

@media (max-width: 850px) {
  .box {
    height: auto;
    max-width: 550px;
    overflow: hidden;
  }

  .sign-in-form,
  .sign-up-form {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    grid-column: 1 / 2;
    display: block;
    grid-row: 1 / 2;
    transition: opacity 0.02s 0.4s;
  }

  .inner-box {
    position: static;
    transform: none;
    width: revert;
    height: revert;
    padding: 2rem;
  }

  .forms-wrap {
    position: revert;
    width: 100%;
    height: auto;
  }

  form {
    max-width: revert;
    padding: 1.5rem 2.5rem 2rem;
    transition: transform 0.8s ease-in-out, opacity 0.45s linear;
  }

  .heading {
    margin: 1rem 0;
  }


  form.sign-up-form {
    transform: translateX(100%);
  }

  .sign-up-form,
  .sign-in-form {
    height: auto;
  }

  main.sign-up-mode form.sign-in-form {
    transform: translateX(-100%);
  }

  main.sign-up-mode form.sign-up-form {
    transform: translateX(0%);
  }

  .logo img {
    width: 230px;
    margin-top: 0;
  }

  .carousel {
    position: absolute;
    left: 0;
    height: auto;
    width: 100%;
    padding: 3rem 2rem;
    display: none;
  }

  .images-wrapper {
    display: none;
  }

  .text-slider {
    width: 100%;
  }

  .sign-in-form {
    max-width: 100%;

  }

  .sign-up-form {
    max-width: 100%;
  }
}


@media (max-width: 530px) {
  main {
    padding: 10px;
  }

  .box {
    border-radius: 2rem;
  }

  .inner-box {
    padding: 0rem;
  }

  .carousel {
    padding: 1.5rem 1rem;
    border-radius: 1.6rem;
  }

  .text-wrap {
    margin-bottom: 1rem;
  }

  .text-group h2 {
    font-size: 1.2rem;
  }

  form {
    padding: 1rem 2rem 1.5rem;
  }
}

