*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
   
}

body{
    background-image: url(../imagenes/BANNER-INICIO-SESIONv2.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;

}

main{
    width: 100%;
    padding: 20px;
    margin: auto;
    margin-top: 250px;
}

.contenedor_todo{
    width: 100%;
    max-width: 800px;
    margin: auto;
    position: relative;
}

.caja_trasera{
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: linear-gradient(to right, #2b2e83, #2d96d2);

}

.caja_trasera div{
    margin: 100px 40px;
    color: white;
    transition: all 500ms;
}


.caja_trasera div p,
.caja_trasera button{
    margin-top: 10px;
}

.caja_trasera div h3{
    font-weight: 400;
    font-size: 26px;
}

.caja_trasera div p{
    font-size: 16px;
    font-weight: 300;
}

.caja_trasera button{
    padding: 10px 40px;
    border: 2px solid #fff;
    font-size: 14px;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    color: white;
    outline: none;
    transition: all 300ms;
}

.caja_trasera button:hover{
    background: #fff;
    color: #2b2e83;
}

/*Formularios*/

.contenedor_login_register{
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 390px;
    position: relative;
    top: -185px;
    left: 10px;
    margin-left: -5PX;

    /*La transicion va despues del codigo JS*/
    transition: left 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
}

.contenedor_login_register form{
    width: 100%;
    padding: 80px 20px;
    background: white;
    opacity: 0.9;
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 0 0 4px #229434;
}

.contenedor_login_register form h2{
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
    color: #2b2e83;
}

.contenedor_login_register form input{
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    border: none;
    background: #F2F2F2;
    font-size: 16px;
    outline: none;
}

.contenedor_login_register form button{
    padding: 10px 40px;
    margin-top: 40px;
    border: none;
    font-size: 14px;
    background: #2b2e83;
    font-weight: 600;
    cursor: pointer;
    color: white;
    outline: none;
}




.formulario_login{
    opacity: 1;
    display: block;
}
.formulario_register{
    display: none;
}

.caja_trasera_login{
    opacity: 0.0;
}


@media screen and (max-width: 850px){

    main{
        margin-top: 50px;
    }

    .caja_trasera{
        max-width: 350px;
        height: 300px;
        flex-direction: column;
        margin: auto;
    }

    .caja_trasera div{
        margin: 0px;
        position: absolute;
    }


    /*Formularios*/

    .contenedor_login_register{
        top: -10px;
        left: -5px;
        margin: auto;
    }

    .contenedor_login_register form{
        position: relative;
    }
}

@media screen and (max-width: 400px) {

    body{
    background: linear-gradient(to left, #2b2e83, #2d96d2);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

.contenedor_todo{
    width: 80%;
    max-width: 700px;
    margin: auto;
    position: relative;
}
.caja_trasera{
    max-width: 280px;
    height: 170px;
    margin: auto;
    border-radius: 10px;
} 
.caja_trasera div h3{
    font-weight: 300;
    font-size: 20px;
    font-weight: bold;
}

.contenedor_login_register{
    max-width: 250px;

}

.caja_trasera_register{
    display: none;
}


.contenedor_login_register form h2{
    font-size: 20px;
    text-align: center;
    margin-bottom: 0px;
    color: #2b2e83
}

.contenedor_login_register form input{
    margin-top: 10px;
}

.contenedor_login_register form button{
    margin-top: 20px;
}
.formulario_register{
    height: 350px;
   
}
.formulario_register >h2{
    position: relative;
    bottom: 65px;
}
.formulario_register > input{
    position: relative;
    bottom: 65px;
}
.formulario_register .btn{
    position: relative;
    bottom: 65px;
}
.formulario_login{
    height: 260px;
}
.formulario_login >h2{
    position: relative;
    bottom: 60px;
}
.formulario_login > input{
    position: relative;
    bottom: 60px;
}
.formulario_login >button{
    position: relative;
    bottom: 60px;
}

}