 :root {
            --primary: #007bff;
            --primary-dark: #109626ff;
            --dark: #0f172a;
            --slate: #64748b;
            --glass: rgba(233, 242, 255, 0.75);
            --glass-border: rgba(255, 255, 255, 0.3);
        }

        * { box-sizing: border-box; font-family: 'Inter', sans-serif; }

        body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #1e293b 0%, #0f172a 100%), 
                url('https://erp.radartelematics.co.ke/Telematics/assets/images/bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay; 
    overflow: hidden;
}

        .bg-blur {
            position: absolute;
            width: 500px; height: 500px;
            background: var(--primary);
            filter: blur(150px);
            opacity: 0.15;
            z-index: -1;
            border-radius: 50%;
        }

        .login-card {
            background: var(--glass);
            width: 100%;
            max-width: 420px;
            padding: 2.5rem;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.6s ease-out;
            margin: 15px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(3px);
            border: 1px solid var(--glass-border);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .brand-section { text-align: center; margin-bottom: 2rem; }
        
        .brand-logo {
            width: 60px; height: 60px;
            background: var(--primary);
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: white;
            font-size: 2rem;
            box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
        }

        h2 { color: var(--dark); margin: 0; font-weight: 700; letter-spacing: -0.5px; }
        p.subtitle { color: var(--slate); font-size: 0.9rem; margin-top: 5px; }

        .form-group { margin-bottom: 1.5rem; position: relative; }
        
        .form-group i {
            position: absolute;
            left: 15px; top: 38px;
            color: var(--slate);
        }

        label { 
            display: block; 
            margin-bottom: 8px; 
            font-size: 0.85rem; 
            font-weight: 600; 
            color: var(--dark);
        }

        input {
            width: 100%;
            padding: 12px 12px 12px 42px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s;
            background: #f8fafc;
        }

        input:focus {
            outline: none;
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
        }

        .error-alert {
            background: #fef2f2;
            color: #b91c1c;
            padding: 12px;
            border-radius: 10px;
            font-size: 0.85rem;
            margin-bottom: 1.5rem;
            border-left: 4px solid var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        button {
            width: 100%;
            padding: 14px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        button:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
        }

        button:active { transform: translateY(0); }

        .footer-text {
            text-align: center;
            margin-top: 2rem;
            font-size: 0.8rem;
            color: var(--slate);
        }
        .reset-l {
            text-decoration: none;
            color: #007bff;
        }
        .reset-l:hover {
            color: blue;
        }
        .phone-hint { font-size: 13px; color: green; margin-top: 5px; font-style: italic; }
        @media (max-width: 740px) {
            body {
                height: 100%;
            }
        }