/* estilos.css */
body {
    background-image: url('imagenes/fondo.jpg'); /* Asegúrate de que la ruta sea correcta */
    background-size: cover; /* Hace que la imagen cubra toda la pantalla */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    background-position: center center; /* Centra la imagen */
    height: 100vh; /* Asegura que el cuerpo del documento ocupe toda la altura de la pantalla */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

.login-container {
    background-color: #000000; /* Fondo negro */
    color: #ffffff; /* Texto blanco */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.login-container img {
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
    height: auto;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .login-container {
        padding: 15px;
    }

    input[type="text"],
    input[type="password"] {
        padding: 8px;
    }

    button {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    input[type="text"],
    input[type="password"] {
        padding: 6px;
    }

    button {
        padding: 6px;
    }
}
