body {
    margin: 0;
    padding: 0 20px;
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.contenedor {
    background: #ffffff;
    max-width: 350px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(26, 22, 22, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.left {
    flex: 1 1 100%;
    padding: 20px;
}

.right {
    display: none;
    flex: 1 1 100%;
    background-image: url('../img/llamame.png');
    background-size: cover;       /* Hace que la imagen cubra todo el div */
    background-position: center;  /* Centra la imagen */
    background-repeat: no-repeat; /* Evita repeticiones */
}

.contenedor h2 {
    margin-top: 0;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px;
    background-color: #009DDF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #3367d6;
}

/* ----------- Desktop (más de 600px) ----------- */
@media screen and (min-width: 600px) {
    .contenedor {
        flex-direction: row;
        max-width: 750px;
    }

    .left {
        flex: 1 1 55%;
    }

    .right {
        display: block;
        flex: 1 1 45%;
    }
}

 #loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: none;
    z-index: 9999;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semitransparente */
    z-index: 9999; /* Asegura que la superposición esté encima de todo */
    display: none; /* Inicialmente oculta */
}