/* ==========================
   Fuentes
========================== */
.ubuntu-light {
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .ubuntu-regular {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .ubuntu-medium {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .ubuntu-bold {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .ubuntu-light-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .ubuntu-regular-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .ubuntu-medium-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .ubuntu-bold-italic {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: italic;
  }

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
}

body{
    background-color: #1f1f1f; /* Fondo gris oscuro */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

main{
    width: 100%;
    padding: 20px;
    margin: auto;
    margin-top: 100px;
    font-family: "Ubuntu", sans-serif;
}

.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(100px);
    background: rgba(31, 31, 31, 0.9); /* Gris oscuro translúcido */
    border-radius: 5px;
    border: 2px solid rgba(220, 38, 38, 0.8); /* Rojo */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}

.caja__trasera div{
    margin: 100px 40px;
    color: #f3f4f6; /* Gris claro */
    transition: all 500ms;
}

.caja__trasera div p,
.caja__trasera button{
    margin-top: 30px;
}

.caja__trasera div h3{
    font-weight: 400;
    font-size: 24px;
}

.caja__trasera div p{
    font-size: 16px;
    font-weight: 300;
}

.caja__trasera button{
    padding: 10px 40px;
    border: 2px solid #dc2626; /* Rojo */
    font-size: 14px;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    color: #dc2626; /* Rojo */
    outline: none;
    transition: all 300ms;
}

.caja__trasera button:hover{
    background: #dc2626; /* Rojo */
    color: white;
}

/*Formularios*/

.contenedor__login-register{
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 380px;
    position: relative;
    top: -185px;
    left: 10px;

    /*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: #2d2d2d; /* Gris más oscuro */
    position: absolute;
    border-radius: 20px;
    border: 2px solid rgba(220, 38, 38, 0.8); /* Rojo */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}

.contenedor__login-register form h2{
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
    color: #f3f4f6; /* Gris claro */
}

.contenedor__login-register form input{
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    border: 2px solid #dc2626; /* Rojo */
    background: #1f1f1f; /* Gris oscuro */
    font-size: 16px;
    color: #f3f4f6; /* Gris claro */
    outline: none;
    border-radius: 5px;
    transition: all 300ms;
}

.contenedor__login-register form input:focus{
    border-color: #dc2626; /* Rojo */
    background: #2d2d2d; /* Gris más oscuro */
    box-shadow: 0 0 5px #dc2626;
}

.contenedor__login-register form button{
    padding: 10px 40px;
    margin-top: 40px;
    border: none;
    font-size: 14px;
    background: #dc2626; /* Rojo */
    font-weight: 600;
    cursor: pointer;
    color: white;
    outline: none;
    border-radius: 5px;
    transition: all 300ms;
}

.contenedor__login-register form button:hover{
    background: #a81e1e; /* Rojo más oscuro */
    box-shadow: 0 0 10px #dc2626;
}

.formulario__login{
    opacity: 1;
    display: block;
}
.formulario__register{
    display: none;
}

.btn__cerrar {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #dc2626; /* Rojo */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: background-color 300ms, transform 200ms;
}

.btn__cerrar:hover {
    background-color: #a81e1e; /* Rojo más oscuro */
    transform: scale(1.1);
}

@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;
    }
}