@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #081b29;
}

.wrapper{
  position: relative;
  width: 750px;
  height: 450px;
  background: transparent;
  border: 2px solid #1e90ff;
  box-shadow: 0 0 25px #1e90ff;
  overflow: hidden;
}

.wrapper .form-box{
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wrapper .form-box.login{
  left: 0;
  padding: 0 40px
}

.wrapper .form-box.login .animation{
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
  transition: .7s ease;
  /* transition-delay: calc(.1s * var(--j)); */
}

.wrapper.active .form-box.login .animation{
  transform: translateX(-120%);
  opacity: 0;
  filter: blur(10px);
  transition-delay: calc(.1s * var(--i));
}

.form-box h2{
  font-size: 32px;
  color: #fff;
  text-align: center;
}

.form-box .input-box{
  position: relative;
  width: 100%;
  height: 50px;
  margin: 25px 0;
}

.input-box input{
  width: 100%;
  height: 100%;
  background:transparent;
  border: none;
  outline: none;
  border-bottom: 2px solid #fff;
  padding-right: 23px;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  transition: .5s;
}

.input-box input:focus,
.input-box input:valid{
  border-bottom-color: #1e90ff ;
}

.input-box label{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 16px;
  color: #fff; 
  pointer-events: none;
  transition: .5s;
}



.input-box input:focus~label,
.input-box input:valid~label{
  top: -5px;
  color: #1e90ff;
}

.input-box i{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 18px;
  color: #fff;
  transition: .5s;
}

.input-box input:focus~i,
.input-box input:valid~i{
  color: #1e90ff;
}

.btn{
  position: relative;
  width: 100%;
  height: 45px;
  background: transparent;
  border: 2px solid #1e90ff;
  outline: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  z-index: 1;
  overflow: hidden;
}

.btn::before{
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 300%;
  background: linear-gradient(#081b29, #1e90ff, #081b29, #1e90ff);
  z-index: -1;
  transition: .5s;
}

.btn:hover::before{
  top: 0;
}

.form-box .logreg-link{
  font-size: 14.5px;
  color: #fff;
  text-align: center;
  margin: 20px 0 10px;
}

.logreg-link p a{
  color: #1e90ff;
  text-decoration: none;
  font-weight: 600;
}

.logreg-link p a:hover{
  text-decoration: underline;
}

.wrapper .info-text{
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wrapper .info-text.login{
  right: 0;
  text-align: right;
  padding: 0 40px 60px 150px;
}

.info-text h2{
  font-size: 36px;
  color: #fff;
  line-height: 1.3;
  text-transform: uppercase;
}

.info-text p{
  font-size: 16px;
  color: #fff;
}

.info-text p span{
  font-weight: 900;
}

.wrapper .info-text.login .animation{
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
  transition: .7s ease;
  /* transition-delay: calc(.1s * var(--j)); */
}

.wrapper.active .info-text.login .animation{
  transform: translateX(120%);
  opacity: 0;
  filter: blur(10px);
  transition-delay: calc(.1s * var(--i));
}

.wrapper .bg-animate{
  position: absolute;
  top: 0px;
  right: 0;
  width: 850px;
  height: 600px;
  background: linear-gradient(45deg, #081b29, #1e90ff);
  border: 3px solid #1e90ff;
  transform: rotate(10deg) skewY(40deg);
  transform-origin: bottom right;
  transition: 1.5s ease;
  transition-delay: 1.5s;
}

.wrapper.active .bg-animate{
  transform: rotate(0deg) skewY(0deg);
  transition-delay: .5s;
}

/* .wrapper .bg-animate2{
  position: absolute;
  top: 0px;
  right: 0;
  width: 850px;
  height: 600px;
  background: linear-gradient(45deg, #081b29, #1e90ff);
  border: 3px solid #1e90ff;
  transform: rotate(0deg) skewY(0deg);
  transform-origin: bottom right;
} */

.wrapper .rules-box{
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.wrapper .rules-box.rules .animation{
  transform: translateX(-220%);
  transition: .7s ease;
  opacity: 0;
  filter: blur(10px);
  /* transition-delay: calc(.1s * var(--j)); */
}

.wrapper.active .rules-box.rules .animation{
  transform: translateX(0%);
  opacity: 1;
  filter: blur(0);
  transition-delay: calc(.1s * var(--i));
}



.wrapper .description-box.rules .animation{
  transform: translateX(120%);
  transition: .7s ease;
  opacity: 0;
  filter: blur(10px);
  /* transition-delay: calc(.1s * var(--j)); */
}

.wrapper.active .description-box.rules .animation{
  transform: translateX(0%);
  opacity: 1;
  filter: blur(0);
  transition-delay: calc(.1s * var(--i));
}



.wrapper .rules-box{
  left: 0;
  padding: 0px 0px 0px 40px;
}

.rules-box h2{
  font-size: 32px;
  color: #fff;
  text-align: center;
}

.rules-text{
  left: 0;
  text-align: left;
}

.rules-text p{
  color: #fff;
  font-size: 16px;
  bottom: 0;
}

.rules-text i{
  color: #0ef;
  font-weight: 600;
  position: relative;
  top: 25px;
  left: -20px;
}


.rules-text p span{
  color: #0ef;
  font-weight: 900;
}

.wrapper .description-box{
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.wrapper .description-box{
  right: 0;
  text-align: right;
  padding: 0px 40px;
}

.description-box h2{
  font-size: 36px;
  color: #fff;
  line-height: 1.3;
  text-transform: uppercase;
}

.description-box p{
  font-size: 16px;
  color: #fff;
}

.description-box p span{
  font-weight: 900;
}

.btn2{
  position: relative;
  width: 100%;
  height: 45px;
  background: transparent;
  border: 2px solid #0ef;
  outline: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  z-index: 1;
  overflow: hidden;
  top: 15px;
}

.btn2::before{
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 300%;
  background: linear-gradient(transparent, #0ef, transparent, #0ef);
  z-index: -1;
  transition: .5s;
}

.btn2:hover::before{
  top: 0;
}


.description-box .logreg-link2{
  font-size: 14.5px;
  color: #fff;
  text-align: center;
  margin: 20px 0 10px;
}

.logreg-link2 p a{
  color: #0ef;
  text-decoration: none;
  font-weight: 800;
}
/* Links diretos para o Google Forms, mantendo o visual dos botoes. */
.participation-copy{
  margin: 22px 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.participation-note{
  margin-top: 12px;
  color: #c4d8e7;
  font-size: 12px;
  text-align: center;
}

a.btn, a.btn2{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 8px 12px;
  flex-shrink: 0;
  text-decoration: none;
  text-align: center;
}

.description-box .back-link{
  position: absolute;
  top: 8px;
  right: 20px;
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}

a.btn:focus-visible, a.btn2:focus-visible, .rules-link:focus-visible, .back-link:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Mantem os links da pesquisa legiveis e acessiveis no celular. */
@media (max-width: 700px){
  body{
    align-items: flex-start;
    padding: 24px 16px;
  }

  .wrapper{
    width: 100%;
    height: auto;
  }

  .wrapper .bg-animate, .wrapper.active .bg-animate{
    width: 100%;
    height: 100%;
    border: 0;
    transform: none;
    background: linear-gradient(145deg, #081b29, #0d4574);
    transition: none;
  }

  .wrapper .form-box.login,
  .wrapper .info-text.login,
  .wrapper .rules-box.rules,
  .wrapper .description-box.rules{
    position: relative;
    width: 100%;
    height: auto;
    padding: 28px 24px;
    text-align: left;
  }

  .wrapper .info-text.login{
    gap: 16px;
    border-top: 1px solid #1e90ff;
    text-align: center;
  }

  .wrapper .description-box.rules{
    gap: 16px;
    padding-top: 48px;
    border-top: 1px solid #1e90ff;
  }

  .wrapper:not(.active) .rules, .wrapper.active .login{
    display: none;
  }

  .wrapper .animation{
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }

  .rules-text{
    padding-left: 20px;
  }

  .rules-text p, .description-box p{
    font-size: 14px;
    line-height: 1.6;
  }

  .info-text h2, .description-box h2{
    font-size: 28px;
  }

  a.btn, a.btn2{
    height: auto;
    min-height: 48px;
  }

  a.btn2{
    top: 0;
  }
}
