:root {
            --primary: #3b82f6;
            --primary-glow: rgba(59, 130, 246, 0.16);
            --accent: #2563eb;
            --accent-glow: rgba(37, 99, 235, 0.16);
        }
        
        body, html {
            height: 100%;
            margin: 0;
            font-family: 'Outfit', sans-serif;
            background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 45%, #e0f2fe 100%);
            color: #1f2937;
            overflow: hidden;
        }

        /* Dynamic Mesh Background */
        .bg-mesh {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: 
                radial-gradient(circle at 20% 40%, rgba(59, 130, 246, 0.12), transparent 40%),
                radial-gradient(circle at 80% 60%, rgba(59, 130, 246, 0.08), transparent 40%);
            z-index: 0;
            animation: pulse-bg 8s ease-in-out infinite;
        }

        @keyframes pulse-bg {
            0% { transform: scale(1); opacity: 0.8; }
            100% { transform: scale(1.1); opacity: 1; }
        }

        /* Grid Overlay */
        .grid-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image: linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: 1;
            mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
            -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
        }

        .login-wrapper {
            position: relative;
            z-index: 10;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        /* Glassmorphism Card */
        .login-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1.5px solid rgba(59, 130, 246, 0.15);
            border-radius: 28px;
            padding: 3.5rem;
            width: 100%;
            max-width: 480px;
            box-shadow: 0 20px 60px rgba(59, 130, 246, 0.12), 
                        0 0 1px rgba(59, 130, 246, 0.3);
            position: relative;
            overflow: hidden;
            transition: all 0.4s ease;
        }

        .login-card:hover {
            box-shadow: 0 30px 80px rgba(59, 130, 246, 0.16);
            transform: translateY(-2px);
        }

        /* Top highlight inside card */
        .login-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
            opacity: 0.5;
        }

        /* Form Controls */
        .input-wrapper {
            position: relative;
            margin-bottom: 1.25rem;
        }
        
        .form-control {
            background: #f8fafc !important;
            border: 1.5px solid #e2e8f0 !important;
            border-radius: 14px;
            color: #111827 !important;
            padding: 1.1rem 1.2rem 1.1rem 3.8rem !important;
            height: 60px;
            font-size: 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        .form-control:hover {
            border-color: rgba(59, 130, 246, 0.2) !important;
            background: #ffffff !important;
        }

        .form-control:focus {
            background: #ffffff !important;
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
        }

        .input-icon {
            position: absolute;
            left: 1.2rem;
            top: 50%;
            transform: translateY(-50%);
            color: #3b82f6;
            font-size: 1.3rem;
            z-index: 10;
            transition: all 0.3s ease;
            opacity: 0.7;
        }

        .form-control:focus ~ .input-icon,
        .input-wrapper:focus-within .input-icon {
            color: var(--primary);
            opacity: 1;
            transform: translateY(-50%) scale(1.1);
        }

        .form-control::placeholder {
            color: #cbd5e1;
            font-weight: 400;
        }

        /* Button */
        .btn-login {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            background-size: 200% 200%;
            animation: gradient-flow 5s ease infinite;
            border: none;
            border-radius: 14px;
            color: white;
            font-weight: 700;
            font-size: 1.05rem;
            letter-spacing: 0.3px;
            padding: 1.1rem;
            width: 100%;
            margin-top: 1.5rem;
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35),
                        0 0 1px rgba(59, 130, 246, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            z-index: 1;
            cursor: pointer;
        }
        
        @keyframes gradient-flow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .btn-login::after {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transform: skewX(-20deg);
            transition: 0.5s ease;
            z-index: -1;
        }

        .btn-login:hover::after {
            left: 150%;
        }

        .btn-login:hover {
            transform: translateY(-4px) scale(1.01);
            box-shadow: 0 18px 45px rgba(59, 130, 246, 0.42),
                        0 0 1px rgba(59, 130, 246, 0.5);
            color: white;
        }
        
        .btn-login:active {
            transform: translateY(0px) scale(0.98);
        }

        /* Checkbox */
        .form-check-input {
            background-color: rgba(0,0,0,0.3);
            border-color: rgba(255,255,255,0.1);
            width: 1.2em;
            height: 1.2em;
            cursor: pointer;
        }
        .form-check-input:checked {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        .form-check-label {
            color: #4b5563;
            cursor: pointer;
            padding-top: 2px;
            font-weight: 500;
        }

        /* Brand styling inside card */
        .brand-logo-container {
            background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
            border-radius: 20px;
            padding: 18px 24px;
            display: inline-block;
            margin-bottom: 3rem;
            box-shadow: 0 12px 30px rgba(59, 130, 246, 0.12),
                        0 0 1px rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.1);
            transition: all 0.3s ease;
        }

        .brand-logo-container:hover {
            transform: scale(1.05);
            box-shadow: 0 16px 40px rgba(59, 130, 246, 0.16);
        }

        .forgot-link {
            color: var(--primary);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: color 0.2s;
        }
        .forgot-link:hover {
            color: #60a5fa;
            text-decoration: underline;
        }
        
        .toggle-password {
            position: absolute;
            right: 1.2rem;
            top: 50%;
            transform: translateY(-50%);
            color: #3b82f6;
            font-size: 1.3rem;
            z-index: 10;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0.7;
            background: transparent;
            border: none;
            padding: 0;
        }
        .toggle-password:hover { 
            color: var(--primary);
            opacity: 1;
            transform: translateY(-50%) scale(1.15);
        }
        
        .form-control.password-input {
            padding-right: 3.5rem !important;
        }

        /* Fix Chrome Autofill */
        input:-webkit-autofill,
        input:-webkit-autofill:hover, 
        input:-webkit-autofill:focus, 
        input:-webkit-autofill:active {
            -webkit-text-fill-color: white !important;
            transition: background-color 5000s ease-in-out 0s !important;
        }