body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.login-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.input-group input[type="text"],
.input-group input[type="password"],
.input-group input[type="email"],
.input-group select /* <-- ¡NUEVO SELECTOR PARA EL CAMPO DE SELECCIÓN! */
{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    /* El campo select a veces necesita un poco más de margen en ciertos navegadores */
    height: 40px; 
}

.login-button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #0056b3;
}

.error-message {
    color: #ff0000;
    margin-top: 15px;
    padding: 10px;
    background-color: #ffe0e0;
    border: 1px solid #ff0000;
    border-radius: 4px;
}
/* ... [CSS anterior para body, .login-container, .input-group, etc.] ... */

.login-button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
    margin-bottom: 20px; /* Añade espacio debajo del botón */
}

.login-button:hover {
    background-color: #0056b3;
}

/* NUEVOS ESTILOS PARA EL ENLACE DE REGISTRO */
.register-link {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.register-link a {
    color: #007bff; /* Mismo color azul que el botón */
    text-decoration: none; /* Elimina el subrayado por defecto */
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline; /* Añade subrayado al pasar el ratón */
}

/* Estilos para mensajes de Éxito y Error */
.success-message, .error-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}