/* Resetear estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0; /* Reset margin for the whole page */
}

/* Contenedor general */
.container {
    width: 80%;
    margin: 0 auto;
}

/* Cabecera */
header {
    background-color: #333;
    color: white;
    padding: 20px 0;
}

header h1 {
    text-align: center;
    margin-bottom: 10px;
}

header nav ul {
    list-style-type: none;
    text-align: center;
}

header nav ul li {
    display: inline;
    margin: 0 10px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Contenido Principal */
main {
    padding: 20px 0;
    text-align: center;
}

main h2 {
    margin-bottom: 15px;
}

/* Pie de Página */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 10px 0;
    /* Consider using 'position: relative;' or 'position: sticky;' instead of 'fixed' */
    position: relative;
    bottom: 0;
    width: 100%;
    clear: both; /* Prevent footer from overlapping content */
}

/* Formulario */
form {
    width: 300px;
    margin: 20px auto; /* Add top margin for spacing */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
/* Estilo para el contenedor del mensaje de error */
.error-message {
    background-color: #f8d7da; /* Color de fondo rojo claro */
    color: #721c24; /* Texto rojo oscuro */
    border: 1px solid #f5c6cb; /* Borde rojo claro */
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    margin-top: 20px;
    text-align: center;
}

/* Estilo adicional para el mensaje de error en pantalla */
.error-message a {
    color: #721c24;
    text-decoration: underline;
}

.error-message a:hover {
    color: #000;
}
