* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: rgb(25, 143, 117);
  transition: .5s;
}

body.active {
  background-color: rgb(57, 180, 252);
}

.container {
  position: relative;
  width: 800px;
  height: 500px;
  margin: 30px;
}

.bgBranco {
  position: absolute;
  top: 40px;
  width: 100%;
  height: 420px;
  background-color: rgba(255, 255, 2555,.2);
  box-shadow: 0 5px 45px rgba(04,03,05,.15);
  display: flex;
  justify-content: center;
  align-items: center;
}

.bgBranco .caixa {
  position: relative;
  width: 50%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.bgBranco .caixa h2 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.bgBranco .caixa button {
  cursor: pointer;
  padding: 10px 20px;
  background-color: #fff;
  color: #040305;
  font-size: 1rem;
  font-weight: 500;
  border: none;
}

.caixaForm {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: #fff;
  z-index: 10;
  box-shadow: 0 5px 45px rgba(04,03,05,.25);
  transition: .5s ease-in-out;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caixaForm.active {
  left: 50%;
}

.caixaForm .form {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 50px;
  transition: .5s;
}

.caixaForm .form form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.caixaForm .form form h3 {
  font-size: 1.5rem;
  color: #040305;
  margin-bottom: 20px ;
  font-weight: 500;
}

.caixaForm .form form input {
  margin-bottom: 20px;
  padding: 10px;
  font-size: 1.12rem;
  border: 1px solid #040305;
  outline: none;
}

.caixaForm .form form input[type="submit"] {
  background-color: rgb(25, 143, 117);
  color: #fff;
  max-width: 100px;
  cursor: pointer;
}

.caixaForm .form form .esqueceu {
  color: #040305;
}

.caixaForm.active .formEntrar {
  transition-delay: .25s;
  transform: translate3d(-100%, 0, 0);
}

.caixaForm .formInscrever {
  transform: translate3d(100%, 0, 0);
}

.caixaForm.active .formInscrever {
  transform: translate3d(0, 0, 0);
  transition-delay: .25s;
}

.caixaForm .formInscrever input[type="submit"] {
  background-color: rgb(57, 180, 252) !important ;
}

@media only screen and (max-width: 959px) {
  .container {
    max-width: 400px;
    height: 650px;
  }

  .caixaForm {
    width: 100%;
    height: 500px;
  }

  .bgBranco {
    top: 0;
    height: 100%;
  }

  .bgBranco .caixa {
    position: absolute;
    width: 100%;
    height: 150px;
    bottom: 0;
  }

  .bgBranco .caixa:nth-of-type(1) {
    top: 0;
  }

  .caixaForm.active {
    left: 0;
    top: 150px;
  }
}