/* css/login_style.css */

/* ==========================================================================
   VARIABLES DE TEMA (Copiadas de style.css para que el login sea independiente)
   ========================================================================== */

:root {
    /* Tema Claro (por defecto) */
    --body-bg: #f4f7f6;
    --text-color: #343a40;
    --text-color-muted: #6c757d;
    --link-color: #007bff;
    --link-hover-color: #0056b3;
    --container-bg: #ffffff;
    --container-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --border-color: #dee2e6;
    --input-bg-color: #ffffff;
    --input-text-color: #495057;
    --input-border-color: #ced4da;
    --input-focus-border-color: #80bdff;
    --input-focus-box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    --button-primary-bg: #007bff;
    --button-primary-text: #ffffff;
    --button-primary-hover-bg: #0069d9;
    --message-success-bg: #d4edda;
    --message-success-text: #155724;
    --message-success-border: #c3e6cb;
    --message-error-bg: #f8d7da;
    --message-error-text: #721c24;
    --message-error-border: #f5c6cb;
    --message-info-bg: #d1ecf1;
    --message-info-text: #0c5460;
    --message-info-border: #bee5eb;
}

body.dark-theme {
    /* Tema Oscuro */
    --body-bg: #121212;
    --text-color: #e0e0e0;
    --text-color-muted: #9e9e9e;
    --link-color: #64b5f6;
    --link-hover-color: #90caf9;
    --container-bg: #1e1e1e;
    --container-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --border-color: #424242;
    --input-bg-color: #2c2c2c;
    --input-text-color: #e0e0e0;
    --input-border-color: #555555;
    --input-focus-border-color: #64b5f6;
    --input-focus-box-shadow: 0 0 0 0.2rem rgba(100,181,246,.25);
    --button-primary-bg: #64b5f6;
    --button-primary-text: #121212;
    --button-primary-hover-bg: #90caf9;
    --message-success-bg: #2e7d32;
    --message-success-text: #e8f5e9;
    --message-success-border: #1b5e20;
    --message-error-bg: #c62828;
    --message-error-text: #ffebee;
    --message-error-border: #b71c1c;
    --message-info-bg: #0277bd;
    --message-info-text: #e1f5fe;
    --message-info-border: #01579b;
}

/* ==========================================================================
   ESTILOS GENERALES Y LAYOUT DE LA PÁGINA DE LOGIN
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body.login-page-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* ==========================================================================
   COMPONENTES DE LA PÁGINA DE LOGIN
   ========================================================================== */

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color-muted);
    margin: 5px 0 0 0;
}

#login-banner-space {
    width: 100%;
    height: 320px;
    margin-bottom: 25px;
    border-radius: 8px;
    
    /* --- PARA AÑADIR TU IMAGEN --- */
    /* La ruta es relativa a la carpeta 'css' */
    /* Descomenta la siguiente línea y asegúrate de que el nombre del archivo sea el correcto. */
    
    background-image: url('../assets/images/tu_banner.png'); 

    /* Si la imagen no carga, este borde te mostrará el espacio del banner */
    /* border: 2px dashed var(--border-color); */
    
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.login-container {
    background-color: var(--container-bg);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: var(--container-shadow);
    width: 80%;
    text-align: center;
}

.login-container h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid var(--input-border-color);
    border-radius: 4px;
    background-color: var(--input-bg-color);
    color: var(--input-text-color);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-group input:focus {
    border-color: var(--input-focus-border-color);
    outline: 0;
    box-shadow: var(--input-focus-box-shadow);
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-primary {
    color: var(--button-primary-text);
    background-color: var(--button-primary-bg);
    border-color: var(--button-primary-bg);
}

.btn-primary:hover {
    color: var(--button-primary-text);
    background-color: var(--button-primary-hover-bg);
    border-color: var(--button-primary-hover-bg);
    text-decoration: none;
}

.message {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.success-message {
    color: var(--message-success-text);
    background-color: var(--message-success-bg);
    border-color: var(--message-success-border);
}

.error-message {
    color: var(--message-error-text);
    background-color: var(--message-error-bg);
    border-color: var(--message-error-border);
}

.info-message {
    color: var(--message-info-text);
    background-color: var(--message-info-bg);
    border-color: var(--message-info-border);
}

.login-footer {
    margin-top: 30px;
    font-size: 0.85em;
    color: var(--text-color-muted);
    text-align: center;
}