
    .login-page { background: #050d1a; min-height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: 'Cairo', sans-serif; margin: 0; transition: background 0.4s ease; }
    
    .login-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
    .login-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; animation: float 10s infinite alternate ease-in-out; transition: all 0.5s ease; }
    .login-orb-1 { width: 450px; height: 450px; background: #233dff; top: -100px; right: -100px; animation-delay: 0s; }
    .login-orb-2 { width: 400px; height: 400px; background: #1034a8; bottom: -50px; left: -50px; animation-delay: -3s; }
    .login-orb-3 { width: 350px; height: 350px; background: #38bdf8; top: 40%; left: 30%; animation-delay: -6s; }
    @keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(30px, -50px) scale(1.1); } }
    
    .login-lang-toggle,
    .login-theme-toggle { position: absolute; top: 20px; z-index: 10; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 0.95rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: all 0.3s ease; outline: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
    .login-lang-toggle { right: 20px; }
    .login-theme-toggle { right: 72px; }
    html[dir="ltr"] .login-lang-toggle { right: auto; left: 20px; }
    html[dir="ltr"] .login-theme-toggle { right: auto; left: 72px; }
    .login-lang-toggle:hover, .login-theme-toggle:hover { background: rgba(35, 61, 255, 0.25); border-color: #233dff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(35, 61, 255, 0.3); }
    
    .login-wrapper { position: relative; z-index: 1; width: 100%; max-width: 480px; padding: 20px; box-sizing: border-box; }
    .login-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 28px; padding: 40px; box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 40px rgba(35, 61, 255, 0.15); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); transition: all 0.4s ease; }
    
    .login-logo { text-align: center; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
    .login-brand-name { font-size: 1.6rem; font-weight: 900; color: #fff; margin: 0; line-height: 1.2; transition: color 0.3s ease; }
    .login-brand-sub { color: #38bdf8; font-size: 0.95rem; font-weight: 700; margin: 2px 0 0; letter-spacing: 0.5px; transition: color 0.3s ease; }
    

    .form-group { margin-bottom: 20px; text-align: right; }
    html[dir="ltr"] .form-group { text-align: left; }
    .form-label { display: block; color: #f1f5f9; font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; transition: color 0.3s ease; }
    .input-wrapper { position: relative; display: flex; align-items: center; }
    .input-icon { position: absolute; right: 15px; width: 18px; height: 18px; fill: rgba(255,255,255,0.4); transition: fill 0.3s ease; }
    html[dir="ltr"] .input-icon { right: auto; left: 15px; }
    .form-control { width: 100%; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; padding: 12px 15px 12px 45px; border-radius: 14px; font-family: 'Cairo', sans-serif; font-size: 0.95rem; font-weight: 600; transition: all 0.3s ease; outline: none; box-sizing: border-box; }
    html[dir="rtl"] .form-control { padding: 12px 45px 12px 15px; }
    .form-control:focus { border-color: #233dff; background: rgba(35, 61, 255, 0.12); box-shadow: 0 0 0 4px rgba(35, 61, 255, 0.25); }
    .form-control:focus ~ .input-icon, .input-wrapper:focus-within .input-icon { fill: #38bdf8; }
    .form-control::placeholder { color: rgba(255,255,255,0.3); font-weight: 400; }
    .password-toggle { position: absolute; left: 15px; background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; padding: 0; outline: none; transition: color 0.3s ease; }
    html[dir="ltr"] .password-toggle { left: auto; right: 15px; }
    .password-toggle:hover { color: #38bdf8; }
    .password-toggle svg { width: 18px; height: 18px; fill: currentColor; }
    
    .form-error { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); padding: 12px 15px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; text-align: center; }
    
    .login-submit { width: 100%; padding: 14px; border: none; border-radius: 14px; background: linear-gradient(135deg, #233dff 0%, #1034a8 100%); color: #fff; font-family: 'Cairo', sans-serif; font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); display: flex; justify-content: center; align-items: center; gap: 10px; box-shadow: 0 10px 25px rgba(35, 61, 255, 0.4); }
    .login-submit:hover { background: linear-gradient(135deg, #3850ff 0%, #1b42c4 100%); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(35, 61, 255, 0.6); }
    .login-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
    
    .login-footer { margin-top: 25px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
    .back-home { color: #94a3b8; text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: all 0.3s ease; display: inline-block; }
    .back-home:hover { color: #38bdf8; transform: translateX(-3px); }
    html[dir="ltr"] .back-home:hover { transform: translateX(3px); }
    .demo-hint { color: rgba(255,255,255,0.45); font-size: 0.85rem; font-weight: 600; margin: 0; }

    /* ===================== LIGHT MODE OVERRIDES FOR LOGIN PAGE ===================== */
    body.theme-light.login-page { background: #f8fafc !important; }
    body.theme-light .login-orb-1 { background: rgba(35, 61, 255, 0.25) !important; }
    body.theme-light .login-orb-2 { background: rgba(16, 52, 168, 0.2) !important; }
    body.theme-light .login-orb-3 { background: rgba(56, 189, 248, 0.25) !important; }
    
    body.theme-light .login-lang-toggle,
    body.theme-light .login-theme-toggle { background: #ffffff !important; border-color: rgba(16, 52, 168, 0.2) !important; color: #1034a8 !important; box-shadow: 0 4px 15px rgba(16, 52, 168, 0.1) !important; }
    body.theme-light .login-lang-toggle:hover,
    body.theme-light .login-theme-toggle:hover { background: rgba(35, 61, 255, 0.1) !important; border-color: #233dff !important; }

    body.theme-light .login-card { background: rgba(255, 255, 255, 0.92) !important; border-color: rgba(16, 52, 168, 0.18) !important; box-shadow: 0 25px 60px rgba(16, 52, 168, 0.15), 0 0 30px rgba(35, 61, 255, 0.08) !important; }
    body.theme-light .login-brand-name { color: #000000 !important; }
    body.theme-light .login-brand-sub { color: #1034a8 !important; }

    body.theme-light .form-label { color: #000000 !important; }
    body.theme-light .form-control { background: #ffffff !important; border-color: rgba(16, 52, 168, 0.25) !important; color: #000000 !important; box-shadow: 0 2px 8px rgba(16, 52, 168, 0.04) !important; }
    body.theme-light .form-control:focus { border-color: #1034a8 !important; background: #ffffff !important; box-shadow: 0 0 0 4px rgba(16, 52, 168, 0.15) !important; }
    body.theme-light .form-control::placeholder { color: rgba(0,0,0,0.35) !important; }
    body.theme-light .input-icon { fill: rgba(16, 52, 168, 0.5) !important; }
    body.theme-light .password-toggle { color: rgba(16, 52, 168, 0.5) !important; }
    body.theme-light .password-toggle:hover { color: #1034a8 !important; }
    body.theme-light .back-home { color: #475569 !important; }
    body.theme-light .back-home:hover { color: #1034a8 !important; }
    body.theme-light .demo-hint { color: rgba(0,0,0,0.55) !important; }
  
