body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background-image: url('./assets/Copia\ de\ RESULTADOS\ socio\ ALASPALABRAS.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    width: 100%; /* Set a default width */
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="submit"] {
    width: 100%;
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    margin-bottom: 10px;
}


#logo {
    max-width: 20vh;
    height: auto;
    opacity: 1;
}

/* Estilos para pantallas con una anchura máxima de 600px (generalmente smartphones) */
@media (max-width: 600px) {
    body {
        background-image: url('./assets/Copia\ de\ RESULTADOS\ socio\ ALASPALABRAS\ -\ copia.png');
        background-size: 200% 600%; /* Esto hará que la imagen de fondo cubra todo el elemento, puede distorsionar la imagen si las proporciones no son las mismas */
        background-repeat: no-repeat; /* Esto evitará que la imagen se repita */
        background-position: center; /* Esto centrará la imagen en el elemento */
        background-color: #F8F4EF;
        padding: 5%;
    }

    form {
        width: 70%; /* Full width on small screens */
    }

    .container {
        display: flex;
        align-items: center;
        flex-direction: column;
    }
}

/* Estilos para pantallas con una anchura mínima de 601px (generalmente PCs) */
@media (min-width: 601px) {
    body {
        background-image: url('./assets/Copia\ de\ RESULTADOS\ socio\ ALASPALABRAS.png');
        background-size: 100% 400%; /* Esto hará que la imagen de fondo cubra todo el elemento, puede distorsionar la imagen si las proporciones no son las mismas */
        background-repeat: no-repeat; /* Esto evitará que la imagen se repita */
        background-position: center; /* Esto centrará la imagen en el elemento */
        background-color: #F8F4EF;
    }
    form {
        width: 100%; /* Half width on large screens */
    }

    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
}