*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: Helvetica;
}

body{
  background-image: url(../images/imagen01.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.titulo{
  display: flex;
  width: 100%;
  text-align: left;
  background-color: #102763;
  margin-top: 50px;
  margin-bottom: 5px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.image2 {
  width: 50px; 
  height: 50px; 
  margin: 5px 10px 0px 40px;
}

hprincipal {
    font-weight: bold;
    font-size: 40px;
    padding:5px 20px 5px 5px;
    color: white;
    font-family: 'circular';
}

hsecundario {
    font-weight: bold;
    font-size: 12px;
    padding:18px 0px 0px 20px;
    color: white;
    font-family: 'circular';
}


main{
  width: 100%;
  padding: 20px;
  margin: auto;
  margin-top: 130px;
}


.contenedor_total{
  width: 100%;
  max-width: 800px;
  margin: auto;
  position: relative;
}

.caja_posterior{
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  backdrop-filter: blur(3px);
  background-color: rgba(0, 128, 255, 0.8);
  border-radius: 15px;
}

.caja_posterior div{
  margin: 100px 50px;
  color: White;
  transition: all 500ms;
}

.caja_posterior div p,
.caja_posterior div button{
  margin-top: 30px;
}

.caja_posterior div h3{
  font-weight: 400;
  font-size: 26px;
}

.caja_posterior button{
  padding: 10px 40px;
  border: 2px solid #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: White;
  outline: none;
  transition: all 300ms;
}

.caja_posterior button:hover{
  background: #fff;
  color: #46A2FD;
}

.caja_anterior{
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 380px;
  position: relative;
  top: -185px;
  left: 10px;
  transition: left 500ms cubic-bezier(0.75,0.885,0.320,1.1);

}

.caja_anterior form{
  width: 100%;
  padding: 80px 20px;
  background: White;
  position: absolute;
  border-radius: 15px;
}

.caja_anterior form h2{
  font-size: 30px;
  text-align: center;
  margin-bottom: 20px;
  color: #46A2FD;
}

.caja_anterior form input{
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  border: none;
  background: #F2F2F2;
  outline: none;
}

.caja_anterior form button{
  padding: 10px 40px;
  margin-top: 40px;
  border: none;
  font-size: 14px;
  background: #46A2FD;
  font-weight: 600;
  color: White;
  cursor: pointer;
  outline: none;
}

.formulario_login{
  opacity: 1;
  display: block;
}

.formulario_register{
  display: none;
}


@media screen and (max-width: 850px){
  main{
    margin-top: 50px;
  }

  .caja_posterior{
    max-width: 350px;
    height: 300px;
    flex-direction: column;
    margin: auto;
  }

  .caja_posterior div{
    margin: 0px;
    position: absolute;
  }

  .caja_anterior{
    top: -10px;
    left: -5px;
    margin: auto;
  }

  .caja_anterior form{
    position: relative;
  }
}
