        :root {
            --primary-color: #0d6efd;
            --card-bg: #ffffff;
            --text-main: #1e293b;
            --text-muted: #64748b;
        }

        /* ... (Mantén todo tu CSS tal cual lo tienes arriba) ... */

        .image-section p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.95rem;
            margin-bottom: 0;
        }

        /* ==========================================================================
        NUEVO: CONTENEDOR PARA EL EFECTO DE NEURONAS INTERACTIVAS
        ========================================================================== */
        #particles-js {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1; /* Se posiciona detrás de la tarjeta del login */
            pointer-events: all; /* Permite capturar los clics en el fondo */
        }

        /* Forzar que el contenedor del login se mantenga por encima de las partículas */
        .login-container {
            position: relative;
            z-index: 2;
        }

        /* FONDO PREMIUM CON EFECTO GLOW (ESFERAS DE LUZ DEGRADADAS) */
        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            margin: 0;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #0f172a; 
            
            background-image: 
                radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.25) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(29, 78, 216, 0.2) 0px, transparent 50%),
                radial-gradient(at 50% 0%, rgba(15, 23, 42, 0.9) 0px, transparent 100%);
            background-attachment: fixed;
        }

        /* Contenedor principal estilo split-screen moderno */
        .login-container {
            background: var(--card-bg);
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            max-width: 1000px;
            width: 100%;
            min-height: 600px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Forzar que la fila contenedora ocupe todo el alto disponible sin dejar espacios */
        .row-stretch {
            display: flex;
            align-items: stretch;
            min-height: 600px;
        }

        /* Lado del Formulario */
        .form-section {
            padding: 50px 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        @media (max-width: 768px) {
            .form-section {
                padding: 40px 30px;
            }
        }

        .brand-logo {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
            letter-spacing: -0.5px;
        }

        .welcome-text {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin-bottom: 35px;
        }

        /* Inputs estilizados e integrados con iconos */
        .input-group-custom {
            position: relative;
            margin-bottom: 20px;
        }

        .input-group-custom i:not(.password-toggle) {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 1.1rem;
            transition: color 0.3s;
            z-index: 10;
        }

        .input-group-custom .form-control {
            height: 54px;
            padding-left: 50px;
            padding-right: 45px;
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-main);
            transition: all 0.3s ease;
        }

        .input-group-custom .form-control:focus {
            background-color: #fff;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
        }

        .input-group-custom .form-control:focus + i {
            color: var(--primary-color);
        }

        /* Icono de visibilidad de contraseña */
        .password-toggle {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #94a3b8;
            transition: color 0.2s;
            z-index: 10;
        }
        .password-toggle:hover {
            color: var(--text-main);
        }

        /* Enlace de recuperación */
        .forgot-link {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.87rem;
            font-weight: 600;
        }
        .forgot-link:hover {
            text-decoration: underline;
        }

        /* Botón de envío principal */
        .btn-submit {
            height: 54px;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            background: var(--primary-color);
            border: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
        }

        .btn-submit:hover {
            background: #0b5ed7;
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
        }

        /* Divisor */
        .divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin-top: 35px;
            margin-bottom: 20px;
            color: #cbd5e1;
            font-size: 0.85rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .divider::before, .divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid #e2e8f0;
        }

        .divider:not(:empty)::before { margin-right: .75em; }
        .divider:not(:empty)::after { margin-left: .75em; }

        /* Botones de redes sociales limpios */
        .social-container {
            display: flex;
            gap: 12px;
        }

        .btn-social {
            flex: 1;
            height: 48px;
            border: 1px solid #e2e8f0;
            background-color: #fff;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--text-main);
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .btn-social:hover {
            background-color: #f8fafc;
            border-color: #cbd5e1;
            transform: translateY(-1px);
        }
        .btn-social.fb-color { color: #1877f2; }
        .btn-social.tw-color { color: #1da1f2; }
        .btn-social.go-color { color: #ea4335; }

        /* Panel derecho CORREGIDO: Redondeado de esquinas derechas y ajuste perfecto */
        .image-section {
            background-image: linear-gradient(rgba(13, 110, 253, 0.1), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?q=80&w=1000&auto=format&fit=crop');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 60px;
            color: #ffffff;
            /* Recorta la imagen exactamente igual que las esquinas de la tarjeta */
            border-top-right-radius: 24px;
            border-bottom-right-radius: 24px;
            height: 100%;
        }

        .image-section h3 {
            font-weight: 700;
            font-size: 1.8rem;
            margin-bottom: 10px;
        }

        .image-section p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.95rem;
            margin-bottom: 0;
        }
        .btn-outline-primary-custom{
    border:1px solid rgba(13,110,253,.25);
    background:#fff;
    color:#0d6efd;
    border-radius:14px;
    transition:.3s;
    min-height:110px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    box-shadow:0 5px 15px rgba(0,0,0,.04);
}

.btn-outline-primary-custom:hover{
    background:#0d6efd;
    color:#fff;
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(13,110,253,.25);
}

.btn-outline-primary-custom i{
    font-size:28px;
}

.btn-outline-primary-custom span{
    line-height:1.2;
}