/* ============================================================================
   VARIABLES GLOBALES (Tomadas del dashboard.css del usuario)
   ============================================================================ */
:root {
    --theme-bg-body: #111827;
    --theme-bg-container: #1f2937;
    --theme-border-color: #374151;
    --theme-primary-accent: #3b82f6;
    --theme-primary-accent-hover: #2563eb;
    --theme-secondary-button-bg: #4b5563;
    --theme-secondary-button-hover: #6b7280;
    --theme-secondary-button-text: #e5e7eb;
    --theme-text-primary: #d1d5db;
    --theme-text-secondary: #9ca3af;
    --theme-text-bright: #FFFFFF;
    --theme-text-link: #60a5fa;
    --theme-input-bg: #d1d5db;
    --theme-input-text: #1f2937;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.12);
}


/* ============================================================================
   ESTILOS GENERALES Y LOGIN (Modificados al tema del Dashboard)
   ============================================================================ */

body {
    margin: 0;
    padding: 0;
    font-family: Lato;
    
    /* CAMBIO: Fondo oscuro del dashboard */
    background: var(--theme-bg-body);
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    /* CAMBIO: Fondo de contenedor del dashboard */
    background-color: var(--theme-bg-container);
    
    border-radius: var(--border-radius);
    padding: 25px 30px;
    width: 420px; 
    max-width: 90%;
    text-align: center;
    
    /* CAMBIO: Sombra y borde del dashboard */
    box-shadow: var(--shadow);
    border: 1px solid var(--theme-border-color);
}

.login-container h1 {
    /* CAMBIO: Color primario del dashboard */
    color: var(--theme-primary-accent);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-welcome {
    /* CAMBIO: Color de texto secundario */
    color: var(--theme-text-secondary);
    margin-bottom: 20px;
}

input[type="text"], 
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 5px 0; 
    box-sizing: border-box;
    border-radius: 4px; /* Redondeo de 4px (inputs de dashboard usan 4px) */
    font-size: 1rem;
    
    /* CAMBIO: Estilo de input del dashboard */
    background-color: var(--theme-input-bg);
    color: var(--theme-input-text);
    border: 1px solid var(--theme-border-color);
}

button {
    font-family: Lato, sans-serif;
    
    /* CAMBIO: Botón primario del dashboard */
    background: var(--theme-primary-accent);
    
    margin-top: 20px;
    margin-bottom: 10px;
    
    /* CAMBIO: Color de texto de botón primario */
    color: var(--theme-text-bright);
    font-weight: bold;
    
    border: none;
    padding: 12px 20px;
    border-radius: 4px; /* Redondeo de 4px */
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    width: 100%;
    transition: background 0.3s ease;
}

button:hover {
    /* CAMBIO: Hover de botón primario */
    background: var(--theme-primary-accent-hover);
}

.forgot-password, .register-link {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    
    /* CAMBIO: Color de enlace del dashboard */
    color: var(--theme-text-link);
    
    cursor: pointer;
}

.recovery-text {
    /* CAMBIO: Color de texto secundario */
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

/* CAMBIO: Botones secundarios (Cancelar/Cerrar) */
.close-button {
    margin-top: 10px;
    background: var(--theme-secondary-button-bg);
    color: var(--theme-secondary-button-text);
    border: none;
    font-weight: normal; 
}

.close-button:hover {
    background: var(--theme-secondary-button-hover);
}

/* CAMBIO: Etiqueta para registro y olvidó */
.field-label {
    text-align: left;
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    
    /* CAMBIO: Color de etiqueta */
    color: var(--theme-text-primary);
}

/* --- INICIO DE CAMBIOS (Mantenido de tu versión original) --- */

/* ¡NUEVO! Estilo para las etiquetas de login (como en mediador) */
#loginView label {
    display: block;
    text-align: left;
    margin-top: 15px; /* Espacio sobre la etiqueta */
    margin-bottom: 5px; /* Espacio entre etiqueta e input */
    font-size: 0.9rem;
    color: var(--theme-text-primary); /* CAMBIO: Color de etiqueta */
    font-weight: bold; 
}

/* Vista de login (con labels) - ajustamos margen de input */
#loginView input {
     margin: 5px 0 8px 0; /* Margen superior pequeño, inferior más grande */
}

/* Vista de olvidó (con placeholder) - mantenemos margen original */
#forgotView input {
    margin: 8px 0;
}

/* --- FIN DE CAMBIOS --- */


#loginView, #forgotView, #confirmationView, #registerView {
    display: none;
}

/* ---------------------------------------------- */
/* Estilos específicos para el formulario de Registro */
/* (Se mantienen igual, solo heredan los nuevos colores) */
/* ---------------------------------------------- */

#registerView .recovery-text {
    margin-bottom: 15px;
}

#registerView .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 5px; 
}

#registerView .form-group {
    flex: 1; 
    text-align: left;
}

#registerView .field-label {
    margin-top: 10px; 
    font-size: 0.85rem;
}

#registerView input[type="text"],
#registerView input[type="password"],
#registerView input[type="email"] {
    padding: 10px; 
    margin: 6px 0; 
}

#registerView button {
    margin-top: 15px;
}

#registerView .close-button {
    margin-top: 5px;
}