body {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(img/loog.png) no-repeat bottom right fixed;
}

.forms-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-title {
  font-size: 3rem;
  color: #fff;
}

.forms {
  display: flex;
  align-items: flex-start;
  margin-top: 10%;
}

.form-wrapper {
  animation: hideLayer 0.3s ease-out forwards;
}

.form-wrapper.is-active {
  animation: showLayer 0.3s ease-in forwards;
}

@keyframes showLayer {
  50% {
    z-index: 1;
  }
  100% {
    z-index: 1;
  }
}

@keyframes hideLayer {
  0% {
    z-index: 1;
  }
  49.999% {
    z-index: 1;
  }
}

.switcher {
  position: relative;
  cursor: pointer;
  display: block;
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: #fff;
  background-color: transparent;
  border: none;
  outline: none;
  transform: translateX(0);
  transition: all 0.3s ease-out;
}

.form-wrapper.is-active .switcher-login {
  color: #fff;
  transform: translateX(90px);
}

.form-wrapper.is-active .switcher-signup {
  color: #fff;
  transform: translateX(-90px);
}

.underline {
  position: absolute;
  bottom: -5px;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  width: 100%;
  height: 4px;
}

.underline::before {
  content: "";
  position: absolute;
  top: 0;
  left: inherit;
  display: block;
  width: inherit;
  height: inherit;
  background-color: #00a0e0;
  transition: transform 0.2s ease-out;
}

.switcher-login .underline::before {
  transform: translateX(101%);
}

.switcher-signup .underline::before {
  transform: translateX(-101%);
}

.form-wrapper.is-active .underline::before {
  transform: translateX(0);
}

.form {
  overflow: hidden;
  min-width: 460px;
  margin-top: 50px;
  padding: 30px 25px;
  border-radius: 15px;
  transform-origin: top;
}

.form-login {
  animation: hideLogin 0.3s ease-out forwards;
}

.form-wrapper.is-active .form-login {
  animation: showLogin 0.3s ease-in forwards;
}

@keyframes showLogin {
  0% {
    background: #d7e7f1;
    transform: translate(40%, 10px);
  }
  50% {
    transform: translate(0, 0);
  }
  100% {
    background-color: #fff;
    transform: translate(35%, -20px);
  }
}

@keyframes hideLogin {
  0% {
    background-color: #fff;
    transform: translate(35%, -20px);
  }
  50% {
    transform: translate(0, 0);
  }
  100% {
    background: #d7e7f1;
    transform: translate(40%, 10px);
  }
}

.form-signup {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(7, auto);
  grid-template-areas:
    "name lastname"
    "email sucur"
    "check check"
    "edo edo"
    "pw pw2"
    "img img"
    "capch capch"
    "btnreg btnreg";
  animation: hideSignup 0.3s ease-out forwards;
}

/* start grid */
.name {
  grid-area: name;
}

.lastname {
  grid-area: lastname;
}
.email {
  grid-area: email;
}
.sucur {
  grid-area: sucur;
}
.check {
  grid-area: check;
}
.edo {
  grid-area: edo;
}
.pw {
  grid-area: pw;
}
.pw2 {
  grid-area: pw2;
}
.img {
  grid-area: img;
}
.capch {
  grid-area: capch;
}
.btnreg {
  grid-area: btnreg;
}
/* End grid */

.form-wrapper.is-active .form-signup {
  animation: showSignup 0.3s ease-in forwards;
}

@keyframes showSignup {
  0% {
    background: #d7e7f1;
    transform: translate(-40%, 10px) scaleY(0.8);
  }
  50% {
    transform: translate(0, 0) scaleY(0.8);
  }
  100% {
    background-color: #fff;
    transform: translate(-35%, -20px) scaleY(1);
  }
}

@keyframes hideSignup {
  0% {
    background-color: #fff;
    transform: translate(-35%, -20px) scaleY(1);
  }
  50% {
    transform: translate(0, 0) scaleY(0.8);
  }
  100% {
    background: #d7e7f1;
    transform: translate(-40%, 10px) scaleY(0.8);
  }
}

.input-block {
  margin-bottom: 20px;
}

.input-block label {
  font-size: 1.2rem;
  color: #000;
}

.input-block input, select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding-right: 15px;
  padding-left: 15px;
  font-size: 16px;
  line-height: 40px;
  color: #06205c;
  background: none;
  border: 1px solid #06205c;
  border-radius: 30px;
}

.form [type="submit"] {
  opacity: 0;
  display: block;
  min-width: 80%;
  margin: auto;
  font-size: 1.5rem;
  line-height: 40px;
  border-radius: 30px;
  border: none;
  transition: all 0.3s ease-out;
}

.form-wrapper.is-active .form [type="submit"] {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s ease-in;
}

.btn-login {
  color: #fff;
  background: #00a0e0;
  transform: translateX(-30%);
}

.btn-login:hover {
  background: #06205c;
}

.btn-signup {
  color: #00a0e0;
  background: #fff;
  box-shadow: inset 0 0 0 2px #00a0e0;
  transform: translateX(30%);
}

.btn-signup:hover {
  color: #06205c;
  box-shadow: inset 0 0 0 2px #06205c;
}
@media only screen and (max-width:600px) {
  body {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(img/loog.png) no-repeat bottom right/80% fixed;
  }
}

@media only screen and (max-width: 636px) {
  .form {
    min-width: 350px;
  }
  .form-signup {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(8, auto);
    grid-template-areas:
      "name"
      "lastname"
      "email"
      "sucur"
      "edo"
      "pw"
      "pw2"
      "img"
      "btnreg";
    animation: hideSignup 0.3s ease-out forwards;
  }
  @keyframes showLogin {
    100% {
      background-color: #fff;
      transform: translate(50%, -20px);
    }
  }
  @keyframes hideLogin {
    100% {
      background: #d7e7f1;
      transform: translate(45%, 10px);
    }
  }
  @keyframes showSignup {
    100% {
      background: #fff;
      transform: translate(-50%, -20px) scaleY(1);
    }
  }

  @keyframes hideSignup {
    100% {
      background: #d7e7f1;
      transform: translate(-45%, 10px) scaleY(0.8);
    }
  }
}
