@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 {
    min-height: 100vh;
    width: 100%;
}

body,
input {
  font-family: "Poppins", sans-serif; 
}

.container {
  position: relative;
  width: 100%;
  background-color: #f8ba1d;
  min-height: 100vh;
  overflow: hidden;
  padding-bottom: 0%;
}

.forms-container {
  position: absolute;
  width: 100%;
  min-height: 100%;
  padding-bottom: 0%;
  top: 0;
  left: 0;
}

/* /////////////////////////////////////////////////// */
/* Log in div */
.signin-signup {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 76%;
  width: 58%;
  transition: 1s 0.7s ease-in-out;
  display: grid;
  grid-template-columns: 1fr;
  z-index: 5;
}

form.sign-in-form {
  z-index: 2;
}
/* /////////////////////////////////////////////////// */


/* ///////////////////////// Form style ////////////////////////// */

form {
  width: 70%;
  margin-left: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0rem 5rem; 
  transition: all 0.2s 0.7s;
  overflow: hidden;
}
.title-blue {
  font-size: 2.2rem;
  color: #25408f;
  margin-bottom: 10px;
}
.title-white {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 10px;
}
.input-field {
  width: 100%;
  background-color: #f0f0f0;
  margin-top:5px;
  margin-bottom: 5px; 
  height: 40px;
  border-radius: 50px;
  display: grid;
  grid-template-columns: 10% 90%;
  padding: 0 1rem;
  position: relative;
}


/* Input field - icon style */
.one-col-input .input-field i {
  text-align: center;
  line-height: 40px;
  color: #25408f;
  transition: 0.5s;
  font-size: 1rem;
}
.two-col-input .col .input-field {
  width: 100%;
  background-color: #f0f0f0;
  margin-top:5px;
  margin-bottom: 5px; 
  height: 40px;
  border-radius: 50px;
  display: grid;
  grid-template-columns: 21% 79%;
  padding: 0 1rem;
  position: relative;
}
.two-col-input .col .input-field i {
  text-align: center;
  line-height: 35px;
  color: #25408f;
  transition: 0.5s;
  font-size: 1rem;
}

/* Input field - text style */
.input-field input {
  width: 100%;
  background: none;
  outline: none;
  border: none;
  margin-top: 5px;
  margin-bottom: 5px;
  line-height: 1;
  font-weight: 600;
  font-size: 1rem;
  color: #25408f;
}

/* Input field - placeholder style */
.input-field input::placeholder {
  color: #25408f;
  font-weight: 500;
}
/* Input field - placeholder ERROR style */
.error {
    color: #ff8630;
    font-weight: 500;
    font-size: 1rem;
    display: block;
  }
.two-col-input .col .input-field input::placeholder {
  color: #25408f;
  font-weight: 500;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

/* Drop-down list - style */
.input-field select {
  width: 100%;
  color: #25408f;
  font-weight: 500;
  background-color: #f0f0f0;
  height: 35px;
  border-radius: 50px;

  margin-top: 3px;
  position: relative;
  border: none;
}
.input-field select::placeholder {
  color: #25408f;
  font-weight: 500;
  border: none;
}
.input-field select::selected {
  color: #25408f;
  font-weight: 500;
  border: none;
}

/* //////////////////// Fieldset /////////////////// */
fieldset {
  width: 100%;
  overflow: hidden;
  border: none;
  text-align: left;
}
label {
  float: left;
  clear: none;
  display: block;
  padding: 0px 50px 0px 20px;
  color: #25408f;
  font-weight: 600;
  font-size: 1rem;
}

/* Radio buttons */
.input-field-radio {
  float: center;
  clear: none; 
  margin-top: 10px;
  width: 100%;
}
input[type=radio],
input.radio {
  float: left;
  clear: none;
  margin: 7px 0 0 5px;
}

/* Checkbox */
.input-field-checkbox {
  /* float: left;
  clear: none; */ 
  display: inline-block;
  margin-top: 20px;
}
.input-field-checkbox .square {
  width: 5%;
  float: left;
  padding-left: 10px;
}
.input-field-checkbox .label {
  width: 95%;
  float: left;
  padding-left: 10px;
  color: #25408f;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.6rem;
}

.input-field-checkbox a {
  text-decoration-style: solid;
  text-decoration: underline;
  color: #25408f;
  font-weight: 800;
}
/* ////////////////////////////////////////////// */

/* /////////////////////// Button style /////////////////////// */
.btn {
  width: 150px;
  background-color: #25408f;
  border: none;
  outline: none;
  height: 40px;
  border-radius: 50px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  margin: 30px 0;
  cursor: pointer;
  transition: 0.5s;
}
.btn:hover {
  width: 150px;
  border: solid 2px #25408f;
  outline: none;
  height: 40px;
  border-radius: 50px;
  color: #25408f;
  text-transform: uppercase;
  font-weight: 600;
  margin: 30px 0;
  cursor: pointer;
  transition: 0.5s;
  background: none;
}
/* /////////////////////////////////////////////////// */


form.sign-up-form {
  opacity: 0;
  z-index: 1;
  padding-left: 0%;
  padding-right: 0%;
  padding-top: 0%;
  padding-bottom: 0%;
  margin-right: 15%;
  width: 70%;
  min-height: 100vh;
}

.panels-container {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.container:before {
  content: "";
  position: absolute;
  height: 2000px;
  width: 2000px;
  top: -50%;
  right: 48%;
  transform: translateY(-50%);
  /* background-image: linear-gradient(-45deg, #4481eb 0%, #04befe 100%); */
  background-image: url("img/earth.jpg");
  transition: 1.8s ease-in-out;
  border-radius: 50%;
  z-index: 6;
  /* Rotating Earth left on the page. This works with code "@keyframes rotation" below*/
  animation: rotation 30s infinite linear; 
}
@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.logo-login {
  width: 100%;
  transition: transform 1.5s ease-in-out;
  transition-delay: 0.4s;
}
.logo-registration {
  width: 40%;
  transition: transform 1.5s 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: 6;
}

.left-panel {
  pointer-events: all;
  margin-right: 5%; 
  margin-left: 20%; 
}

.right-panel {
  pointer-events: none;
  padding-left: -15%;
  padding-right: 7%;
  padding-top: 0%;
  padding-bottom: 0%;
  margin-top: 0%;
  margin-bottom: 0%;
  min-height: 100vh;
}

.registration-form {
  width: 70%;
  text-align: center;
  z-index: 6;
}

.one-col-input {
  width: 100%;
  text-align: center;
  z-index: 6;
  padding-left: 5px;
  padding-right: 5px;
}
.two-col-input {
  width: 100%;
  display: inline-flex;
  text-align: center;
  z-index: 6;
}
.col {
  margin-left: 5px;
  margin-right: 5px;
  width: 100%;
  display: inline-block;
  justify-content: left;
}

.panel .content {
  color: #fff;
  transition: transform 0.9s ease-in-out;
  transition-delay: 0.6s;
  margin-left:50%;
  margin-right:0%;
  width: 50%;
}

.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: 2px solid #fff;
  width: 130px;
  height: 40px;
  font-weight: 600;
  font-size: 0.8rem;
}
.btn.transparent:hover {
  border: 2px solid #f8ba1d;
  color:#f8ba1d;
}

.btn.transparent-blue {
  margin: 0;
  margin-top: 10px;
  background: none;
  border: 2px solid #25408f;
  width: 130px;
  height: 40px;
  font-weight: 800;
  font-size: 0.8rem;
  color:#25408f;
}
.btn.transparent-blue:hover  {
  margin: 0;
  margin-top: 10px;
  background: none;
  border: 2px solid #fff;
  width: 130px;
  height: 40px;
  font-weight: 800;
  font-size: 0.8rem;
  color:#fff;
}

.right-panel .image,
.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(-1500px); /* Slide left and hide the left panel outside the screen visible area */
}

.container.sign-up-mode .signin-signup {
  left: 25%;
}

.container.sign-up-mode form.sign-up-form {
  opacity: 1;
  z-index: 2;
}

.container.sign-up-mode form.sign-in-form {
  opacity: 0;
  z-index: 1;
}

.container.sign-up-mode .right-panel .image,
.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;
}

@media (max-width: 870px) {
  .container {
    min-height: 800px;
    height: 100vh;
  }
  .signin-signup {
    width: 80%;
    top: 95%;
    transform: translate(-50%, -100%);
    transition: 1s 0.8s ease-in-out;
  }

  .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;
    font-weight: 600;
  }

  .panel h2 {
    font-size: 1.2rem;
    color:#25408f;
  }

  .panel p {
    font-size: 0.7rem;
    padding: 0.5rem 0;
  }

  .btn.transparent {
    width: 110px;
    height: 35px;
    font-size: 0.7rem;
  }

  .container:before {
    width: 1500px;
    height: 1500px;
    transform: translateX(-50%);
    left: 30%;
    bottom: 68%;
    right: initial;
    top: initial;
    transition: 2s ease-in-out;
  }

  .container.sign-up-mode:before {
    transform: translate(-50%, 100%);
    bottom: 32%;
    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 .image,
  .container.sign-up-mode .right-panel .content {
    transform: translateY(0px);
  }

  .right-panel .image,
  .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: 72%;
    left: 50%;
  }

  .container.sign-up-mode:before {
    bottom: 28%;
    left: 50%;
  }
}
