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

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

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

.container {
  position: relative;
  max-width: 100%;
  background-color: #fff;
  background-image: url("/assets/images/0002.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow: hidden;
}

.forms-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  pointer-events: none;
}

.signin-signup {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 68%;
  width: 50%;
  transition: 1s 0.7s ease-in-out;
  display: grid;
  grid-template-columns: 1fr;
  z-index: 10;
  pointer-events: all;
}

form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0rem 5rem;
  transition: all 0.2s 0.7s;
  overflow: hidden;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  pointer-events: all;
}

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

form.sign-in-form {
  z-index: 2;
}

.title {
  font-size: 1.5rem;
  color: #757575;
  margin-bottom: 10px;
}

.input-field:focus-within {
  border: 2px solid #8f201cfd;
  box-shadow: none;
}

.input-field:hover {
  box-shadow: 0 0 7px #000, 0 0 7px #000, 0 0 20px #8f201cfd;
}

.input-field {
  max-width: 380px;
  width: 100%;
  background-color: #f0f0f0;
  margin: 10px 0;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 15% 85%;
  padding: 0 0.4rem;
  position: relative;
  box-shadow: 0 0 3px #8f201cfd, 0 0 3px #000, 0 0 5px #757575;
  align-items: center;
  min-height: 52px;
}

.input-field--password {
  grid-template-columns: 15% 1fr 48px;
}

.input-field i {
  text-align: center;
  line-height: 52px;
  color: #757575;
  transition: 0.5s;
  font-size: 2rem;
}

.toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #757575;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.25rem;
  line-height: 1;
}

.toggle-password:hover {
  color: #8f201cfd;
}

.btn-danger i {
  text-align: center;
  color: #faf6f6;
  transition: 0.5s;
  font-size: 2rem;
}

.input-field input {
  background: none;
  outline: none;
  border: none;
  border-radius: 10px;
  line-height: 1;
  font-weight: 400;
  font-size: 1.1rem;
  color: #333;
  width: 100%;
  padding: 0.5rem 0.25rem;
}

.input-field input::placeholder {
  color: #aaa;
  font-weight: 400;
}

.input-field input:-webkit-autofill,
.input-field input:-webkit-autofill:hover,
.input-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f0f0f0 inset;
  -webkit-text-fill-color: #333;
  font-weight: 400;
  transition: background-color 9999s ease-out 0s;
}

.social-text {
  padding: 0.7rem 0;
  font-size: 1rem;
}

.social-media {
  display: flex;
  justify-content: center;
}

.btn-danger {
  display: block;
  max-width: 380px;
  width: 100%;
  height: 50px;
  outline: none;
  border: none;
  background-image: linear-gradient(to right, rgb(230, 105, 94), #8f201cfd, rgba(197, 70, 65, 0.99));
  background-size: 200%;
  font-size: 1.3rem;
  color: #fff;
  margin: 1rem 0;
  cursor: pointer;
  transition: 0.5s;
  box-shadow: 0 0 3px #000, 0 0 3px #757575, 0 0 5px #757575;
}

.btn-danger:hover {
  background-position: right;
  box-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 25px #8f201cfd;
}

.btn {
  display: block;
  max-width: 380px;
  width: 100%;
  height: 50px;
  border-radius: 10px;
  outline: none;
  border: none;
  font-size: 1.3rem;
  color: #fff;
  margin: 1rem 0;
  cursor: pointer;
  transition: 0.5s;
}

.btn:hover {
  background-position: right;
  box-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 25px #8f201cfd;
}

.panels-container {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  z-index: 2;
}

.container:before {
  content: "";
  position: absolute;
  height: min(2000px, 150vmax);
  width: min(2000px, 150vmax);
  top: -6%;
  right: 45%;
  transform: translateY(-50%);
  background-image: linear-gradient(-45deg, #8f201cfd 100%, #221f1f 20%);
  transition: transform 1.8s ease-in-out, right 1.8s ease-in-out, left 1.8s ease-in-out, top 1.8s ease-in-out, bottom 1.8s ease-in-out;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 8px 0 18px 4px rgba(112, 112, 112, 0.55);
  animation: login-shadow-wave 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes login-shadow-wave {
  0%,
  100% {
    box-shadow:
      6px 0 14px 2px rgba(112, 112, 112, 0.4),
      10px 0 28px 6px rgba(143, 32, 28, 0.18);
  }
  50% {
    box-shadow:
      14px 0 32px 10px rgba(112, 112, 112, 0.65),
      18px 0 48px 14px rgba(143, 32, 28, 0.28);
  }
}

.image {
  width: 100%;
  transition: transform 1.1s ease-in-out;
  transition-delay: 0.4s;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-around;
  text-align: center;
  z-index: 3;
  position: relative;
}

.left-panel {
  pointer-events: all;
  /* padding: 1.5rem 17% 2rem 12%; */
  justify-content: flex-start;
  padding-top: 3vh;
}

.left-panel .image {
  margin-top: 1vh;
  align-self: center;
}

.right-panel {
  pointer-events: none;
  padding: 3rem 12% 2rem 17%;
}

.panel .content {
  color: #fff;
  transition: transform 0.9s ease-in-out;
  transition-delay: 0.6s;
}

.panel h3 {
  font-weight: 600;
  line-height: 1;
  font-size: 1.5rem;
}

.panel p {
  font-size: 0.95rem;
  padding: 0.7rem 0;
}

.btn.transparent {
  margin: 0;
  background: none;
  border: 1px solid #fff;
  width: 130px;
  height: 41px;
  font-weight: 600;
  font-size: 0.8rem;
}

.right-panel .content {
  transform: translateX(800px);
}

/* ANIMATION */

.container.sign-up-mode:before {
  transform: translate(100%, -50%);
  right: 52%;
}

.container.sign-up-mode .left-panel .image,
.container.sign-up-mode .left-panel .content {
  transform: translateX(-800px);
}

.container.sign-up-mode .signin-signup {
  left: 25%;
}

.container.sign-up-mode form.sign-up-form {
  opacity: 1;
  z-index: 2;
  pointer-events: all;
}

.container.sign-up-mode form.sign-in-form {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.container.sign-up-mode .right-panel .content {
  transform: translateX(0%);
}

.container.sign-up-mode .left-panel {
  pointer-events: none;
}

.container.sign-up-mode .right-panel {
  pointer-events: all;
}

.logoSD img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.login-welcome--desktop {
  display: block;
  max-width: 380px;
  width: 100%;
  margin-bottom: 1rem;
}

.login-welcome--desktop h3 {
  font-weight: 600;
  font-size: 1.35rem;
  color: #8f201cfd;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.login-welcome--desktop p {
  font-size: 0.9rem;
  color: #757575;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

.login-welcome--panel {
  display: none;
}

.form-check-input:checked {
  background-color: #8f201cfd;
  border-color: black;
}

@media (max-width: 870px) {
  .login-welcome--desktop {
    display: none;
  }

  .login-welcome--panel {
    display: block;
  }

  .container {
    min-height: 800px;
    height: 100vh;
  }

  .signin-signup {
    max-width: 100%;
    top: 90%;
    transform: translate(-50%, -100%);
    transition: 1s 0.8s ease-in-out;
  }

  .container.sign-up-mode .signin-signup {
    top: 80%;
    transform: translate(-50%, -100%);
  }

  .signin-signup,
  .container.sign-up-mode .signin-signup {
    left: 50%;
  }

  .panels-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 2fr 1fr;
  }

  .panel {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 2.5rem 8%;
    grid-column: 1 / 2;
  }

  .right-panel {
    grid-row: 3 / 4;
  }

  .left-panel {
    grid-row: 1 / 2;
  }

  .image {
    width: 200px;
    transition: transform 0.9s ease-in-out;
    transition-delay: 0.6s;
  }

  .panel .content {
    padding-right: 15%;
    transition: transform 0.9s ease-in-out;
    transition-delay: 0.8s;
  }

  .panel h3 {
    font-size: 1.2rem;
  }

  .panel p {
    font-size: 0.7rem;
    padding: 0.5rem 0;
  }

  .btn.transparent {
    width: 110px;
    height: 35px;
    font-size: 0.7rem;
  }

  .container:before {
    width: min(1500px, 180vmax);
    height: min(1500px, 180vmax);
    transform: translateX(-50%);
    left: 25%;
    bottom: 78%;
    right: initial;
    top: initial;
    transition: 2s ease-in-out;
  }

  .container.sign-up-mode:before {
    transform: translate(-50%, 100%);
    bottom: 25%;
    right: initial;
  }

  .container.sign-up-mode .left-panel .image,
  .container.sign-up-mode .left-panel .content {
    transform: translateY(-300px);
  }

  .container.sign-up-mode .right-panel .content {
    transform: translateY(0px);
  }

  .right-panel .content {
    transform: translateY(300px);
  }

  .container.sign-up-mode .signin-signup {
    top: 5%;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 570px) {
  form {
    padding: 0 1.5rem;
  }

  .image {
    display: none;
  }

  .panel .content {
    padding: 0.5rem 1rem;
  }

  .container {
    padding: 1.5rem;
  }

  .container:before {
    bottom: 77%;
    left: 50%;
  }

  .container.sign-up-mode:before {
    bottom: 28%;
    left: 50%;
  }

  .signin-signup {
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
  }

  .signin-signup form {
    width: 100%;
    padding: 0 1rem;
  }

  .container.sign-up-mode form.sign-up-form,
  .sign-up-form {
    z-index: 2;
    width: 100%;
    opacity: 1;
  }

  .input-field {
    grid-template-columns: 20% 80%;
  }

  .input-field--password {
    grid-template-columns: 20% 1fr 44px;
  }

  .input-field i {
    font-size: 1.5rem;
    line-height: 50px;
  }

  .input-field input {
    font-size: 16px;
  }

  .container.sign-up-mode .right-panel .content {
    order: 2;
    margin-top: 1rem;
  }
}
