/* Importar una fuente limpia y moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --background-color: #f0f2f5;
    --card-background: #ffffff;
    --text-color: #333;
    --label-color: #555;
    --border-color: #ddd;
    --error-color: #dc3545;
}

body {
    font-family: 'Inter', sans-serif;
    display: grid;
    place-items: center; /* Centrado vertical y horizontal perfecto */
    min-height: 100vh;
    margin: 0;
    background-color: var(--background-color);
    padding: 15px;
    box-sizing: border-box;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    background: var(--card-background);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h1 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 700;
}

p {
    color: var(--label-color);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--label-color);
    font-weight: 500;
    font-size: 0.9em;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
    background-color: var(--primary-hover);
}

button[type="submit"]:active {
    transform: scale(0.98);
}

button[type="submit"]:disabled {
    background-color: #a0c3e6;
    cursor: not-allowed;
}

.error-message {
    background-color: #f8d7da;
    color: var(--error-color);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9em;
    display: none; /* Oculto por defecto */
    text-align: center;
}