/* ==========================================================================
   VTX STYLE - ESTILOS UNIFICADOS (Login Moderno + App)
   ========================================================================== */

:root {
    --vtx-primary: #1B55E2;
    --vtx-primary-hover: #1544b8;
    --vtx-zoom: 1;
}

/* --------------------------------------------------------------------------
   1. CONFIGURACIÓN BASE
   -------------------------------------------------------------------------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #1f2937;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   2. ESTILOS ESPECÍFICOS DEL LOGIN (Split Screen)
   -------------------------------------------------------------------------- */
body.login-body {
    height: 100vh;
    overflow: hidden; /* Evita scrollbars en la pantalla de login */
    background-color: #fff;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(2px);
}

/* Logo en Login */
.logo-login {
    max-height: 100px; /* Tamaño equilibrado */
    width: auto;
    display: inline-block;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}
.logo-login:hover { transform: scale(1.02); }

/* Títulos Login */
.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.login-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* Inputs Modernos (Floating look) */
.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.input-group-merge {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    background-color: #f9fafb;
}
.input-group-merge:focus-within {
    background-color: #fff;
    border-color: var(--vtx-primary);
    box-shadow: 0 0 0 3px rgba(27, 85, 226, 0.1);
}

.input-group-merge .form-control {
    border: none;
    background-color: transparent;
    font-size: 0.95rem;
    height: 48px;
    color: #334155;
    padding-left: 0;
}
.input-group-merge .form-control:focus { box-shadow: none; }

.input-group-merge .input-group-text {
    background-color: transparent;
    border: none;
    color: #94a3b8;
    padding-left: 15px;
    padding-right: 10px;
}
.input-group-merge:focus-within .input-group-text { color: var(--vtx-primary); }

/* Botones Login */
.btn-primary {
    background-color: var(--vtx-primary);
    border-color: var(--vtx-primary);
    font-size: 0.95rem;
    padding: 12px;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    border-radius: 8px;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--vtx-primary-hover);
    border-color: var(--vtx-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 85, 226, 0.25);
}

.link-sm { font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.cursor-pointer { cursor: pointer; }

/* Imagen de Fondo (Derecha) */
.bg-cover-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center center;
    animation: zoomIn 20s infinite alternate; 
    z-index: 0;
}
@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.overlay-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(27, 85, 226, 0.9));
    z-index: 1;
}
.relative-z { position: relative; z-index: 2; }

/* Footer Login */
.login-footer { font-size: 0.8rem; color: #94a3b8; }

.social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%; background-color: #f1f5f9; color: #64748b;
    margin: 0 4px; font-size: 0.9rem; transition: all 0.2s; text-decoration: none !important;
}
.social-btn:hover { background-color: var(--vtx-primary); color: #fff; transform: translateY(-2px); }

/* Animaciones */
.login-content, .fade-in-animation { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Carrusel de Texto */
.carousel-text {
    display: none; opacity: 0; transition: opacity 0.5s ease;
}
.carousel-text.active {
    display: block; opacity: 1; animation: slideUpText 0.5s ease-out;
}
@keyframes slideUpText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   3. ESTILOS DE COMPONENTES (Botones IA, Utilitarios)
   -------------------------------------------------------------------------- */
   
/* Botones IA (Azul Claro) */
.btn-ia-enhanced {
    background-color: #f0f8ff !important; 
    border: 1px solid #1e90ff !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
    transition: all 0.2s ease;
    margin-left: 5px;
    border-radius: 8px;
    color: #1e90ff !important;
    padding: 6px 10px;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none !important;
}
.btn-ia-enhanced:hover {
    background-color: #e0f0ff !important;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.25);
    transform: translateY(-2px);
}
.ia-sparkle { color: #ffc107; margin-right: 5px; }

/* Botones Circulares (Visor) */
.btn-utilidad {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid #e2e8f0; background-color: #fff;
    margin: 0 4px; transition: all 0.2s ease; color: #4b5563;
}
.btn-utilidad:hover {
    background-color: #f8fafc; transform: scale(1.1);
    border-color: #cbd5e1; color: var(--vtx-primary);
}

/* Validación Password (reseteo.php) */
.validation-item { 
    font-size: 0.85rem; color: #9ca3af; 
    display: flex; align-items: center; margin-bottom: 5px;
    transition: color 0.3s;
}
.validation-item i { width: 20px; text-align: center; margin-right: 5px; }
.validation-item.valido { color: #10b981; font-weight: 600; }
.validation-item.invalido { color: #ef4444; }

/* --------------------------------------------------------------------------
   4. UTILIDADES DE ALERTA
   -------------------------------------------------------------------------- */
.alert-danger { background-color: #fff; border-left: 4px solid #dc3545; color: #333; }
.alert-warning { background-color: #fff; border-left: 4px solid #ffc107; color: #333; }
.alert-info { background-color: #fff; border-left: 4px solid #17a2b8; color: #333; }
.alert-success { background-color: #fff; border-left: 4px solid #28a745; color: #333; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }