* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: sans-serif;
    flex-wrap: wrap;
    
}

body {
    background-image: url("../img/fondo.png");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        background-attachment: fixed;
        height: 100vh;
        
       
    
    /* Codigo para hacer el degradado
    background: rgb(88, 0, 0);
    background: linear-gradient(90deg, rgba(88, 0, 0, 1) 0%, rgba(130, 18, 6, 1) 35%, rgba(189, 19, 0, 1) 100%); */
}

main {
    width: 100%;
    padding: 20px;
    margin: auto;
    margin-top: 100px;
}

.contenedor__todo {
    width: 100%;
    max-width: 800px;
    margin: auto;
    position: relative;
}

.caja__trasera {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    backdrop-filter: blur(10px);
    background-color: rgba(214, 153, 95, 0.5);

}

.caja__trasera div {
    margin: 100px 40px;
    color: white;
    transition: all 500ms;
}

.caja__trasera div p,
.caja__trasera div button {
    margin-top: 30px;
}

.caja__trasera div h3 {
    font-weight: 400;
    font-size: 26px;
}

.caja__trasera button {
    padding: 10px 40px;
    border: 2px solid white;
    background: transparent;
    font-size: 14 px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    outline: none;
    transition: all 300ms;
}

.caja__trasera button:hover {
    background: white;
    color: black;
}


/* Vamos a trabajar con los formularios */
.contenedor_log-reg {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 380px;
    position: relative;
    top: -185px;
    left: 10px;

    transition: left 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
}

.contenedor_log-reg form {
    width: 100%;
    padding: 80px 20px;
    background: rgba(228, 151, 79, 0.5);
    position: absolute;
    border-radius: 20px;
}

.contenedor_log-reg form h2{
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
}

.contenedor_log-reg form input, select{
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    border: none;
    background: #f2f2f2;
    font-size: 16px;
    outline: none;
}

.contenedor_log-reg form button{
    padding: 10px 40px;
    margin-top: 40px;
    border: none;
    font-size: 14px;
    color:black;
    cursor: pointer;
    outline: none;
}

.formulario__log{
    opacity: 1;
    display: block;
}
.formulario__reg{
    display: none;
}
/* MODO RESPONSIVE DISIGN */
@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;
    }

    /* vamos a trabajar en el reponsive design de los forms */
    .contenedor_log-reg{
        top: -10px;
        left: -5px;
        margin: auto;
    }

    .contenedor_log-reg form{
        position: relative;
    }

}