        :root {
            --primary-color: #bc9831;
            --primary-hover: #073454;
            --secondary-color: #52677c;
            --bg-dark: #020718;
            --card-bg: rgba(21, 40, 60, 0.95);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            min-height: 100vh;
            overflow-x: hidden;
            background: linear-gradient(-45deg, #15283c, #073454, #020718, #15283c);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* Partículas flotantes de fondo */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            display: block;
            list-style: none;
            width: 20px;
            height: 20px;
            background: rgba(7, 52, 84, 0.3);
            animation: float 25s linear infinite;
            bottom: -150px;
            border-radius: 50%;
        }

        .particle:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
        .particle:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
        .particle:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
        .particle:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
        .particle:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
        .particle:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
        .particle:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
        .particle:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
        .particle:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
        .particle:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

        @keyframes float {
            0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
            100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
        }

        /* Contenedor principal */
        .login-wrapper {
            position: relative;
            z-index: 1;
            width: 100%;
            padding: 20px;
        }

        .login-card {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            border-radius: 30px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            border: 1px solid rgba(82, 103, 124, 0.3);
            animation: slideUp 0.8s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Panel izquierdo - Imagen/Branding */
        .brand-panel {
            background: linear-gradient(135deg, #bc9831 0%, #073454 100%);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 40px;
            min-height: 100%;
        }

        .brand-panel::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(7, 52, 84, 0.2) 1px, transparent 1px);
            background-size: 20px 20px;
            opacity: 0.3;
        }

        .brand-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: #ebeef1;
        }

        .logo-container {
            background: rgba(7, 52, 84, 0.3);
            border-radius: 24px;
            padding: 30px;
            margin-bottom: 30px;
            backdrop-filter: blur(10px);
            border: 2px solid rgba(82, 103, 124, 0.3);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            display: inline-block;
        }

        .logo-container:hover {
            transform: scale(1.05) rotate(2deg);
        }

        .logo-container img {
            max-width: 180px;
            filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
        }

        .brand-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        .brand-subtitle {
            font-size: 1rem;
            opacity: 0.9;
            font-weight: 300;
        }

        /* Panel derecho - Formulario */
        .form-panel {
            padding: 50px 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .form-header {
            margin-bottom: 35px;
            text-align: center;
        }

        .form-header h2 {
            color: #ebeef1;
            font-weight: 700;
            font-size: 1.8rem;
            margin-bottom: 8px;
        }

        .form-header p {
            color: #9aa4ad;
            font-size: 0.95rem;
        }

        /* Inputs estilizados */
        .custom-input-group {
            position: relative;
            margin-bottom: 24px;
        }

        .custom-input-group .input-group-text {
            background: linear-gradient(135deg, #424f51 0%, #424f51 100%);
            border: 2px solid #424f51;
            border-right: none;
            color: var(--primary-color);
            padding: 14px 16px;
            border-radius: 16px 0 0 16px;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .custom-input-group .form-control {
            border: 2px solid #424f51;
            border-left: none;
            border-radius: 0 16px 16px 0;
            padding: 14px 18px;
            font-size: 0.95rem;
            background: #424f51;
            transition: all 0.3s ease;
            color: #9aa4ad;
        }

        .custom-input-group .form-control:focus {
            background: #15283c;
            box-shadow: none;
            border-color: var(--primary-color);
        }

        .custom-input-group:focus-within .input-group-text {
            border-color: var(--primary-color);
            color: var(--primary-hover);
            background: #15283c;
        }

        .custom-input-group .form-control::placeholder {
            color: #9aa4ad;
        }

        /* Botón toggle password */
        .btn-toggle-password {
            border: 2px solid #424f51;
            border-left: none;
            border-radius: 0 16px 16px 0;
            background: #424f51;
            color: #9aa4ad;
            padding: 0 16px;
            transition: all 0.3s ease;
        }

        .btn-toggle-password:hover {
            background: #424f51;
            color: var(--primary-color);
        }

        .custom-input-group:focus-within .btn-toggle-password {
            border-color: var(--primary-color);
        }

        /* Enlace olvidó contraseña */
        .forgot-link {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            position: relative;
        }

        .forgot-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            transition: width 0.3s ease;
        }

        .forgot-link:hover {
            color: var(--primary-hover);
        }

        .forgot-link:hover::after {
            width: 100%;
        }

        /* Botón principal */
        .btn-login-main {
            background: linear-gradient(135deg, #bc9831 0%, #073454 100%);
            border: none;
            color: #ebeef1;
            padding: 14px 48px;
            border-radius: 16px;
            font-weight: 600;
            font-size: 1.05rem;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(188, 152, 49, 0.4);
            position: relative;
            overflow: hidden;
        }

        .btn-login-main::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(82, 103, 124, 0.3), transparent);
            transition: left 0.5s ease;
        }

        .btn-login-main:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(188, 152, 49, 0.5);
        }

        .btn-login-main:hover::before {
            left: 100%;
        }

        .btn-login-main:active {
            transform: translateY(-1px);
        }

        /* Efecto de brillo en los inputs al focus */
        .glow-effect:focus-within {
            filter: drop-shadow(0 0 8px rgba(188, 152, 49, 0.2));
        }

        /* Responsive */
        @media (max-width: 991px) {
            .brand-panel {
                padding: 40px 20px;
                min-height: auto;
            }
            
            .form-panel {
                padding: 40px 25px;
            }
            
            .brand-title {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 576px) {
            .login-card {
                border-radius: 20px;
            }
            
            .form-panel {
                padding: 30px 20px;
            }
        }

        /* Animación de entrada para elementos */
        .animate-in {
            animation: fadeInUp 0.6s ease-out forwards;
            opacity: 0;
        }

        .animate-in:nth-child(1) { animation-delay: 0.1s; }
        .animate-in:nth-child(2) { animation-delay: 0.2s; }
        .animate-in:nth-child(3) { animation-delay: 0.3s; }
        .animate-in:nth-child(4) { animation-delay: 0.4s; }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        #fmodal_olvido input:focus { background: #15283c !important; border-color: #bc9831 !important; }
    #fmodal_olvido #b_rcv:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(188, 152, 49, 0.45) !important; }