diff --git a/web/public/brand/nafith-ar-white.png b/web/public/brand/nafith-ar-white.png
new file mode 100644
index 0000000..45bcd1c
Binary files /dev/null and b/web/public/brand/nafith-ar-white.png differ
diff --git a/web/public/brand/nafith-en-white.png b/web/public/brand/nafith-en-white.png
new file mode 100644
index 0000000..8c40141
Binary files /dev/null and b/web/public/brand/nafith-en-white.png differ
diff --git a/web/src/components/Logo.tsx b/web/src/components/Logo.tsx
index 579c82d..a7116ed 100644
--- a/web/src/components/Logo.tsx
+++ b/web/src/components/Logo.tsx
@@ -9,7 +9,9 @@ import { useThemeMode } from '@/providers/ThemeProvider';
* variants (white-text version for dark) when brand assets are available - only this file changes.
*/
const SRC = { ar: '/brand/nafith-ar.gif', en: '/brand/nafith-en.jpg' } as const;
-const SIZE = { ar: { w: 375, h: 81 }, en: { w: 176, h: 43 } } as const;
+// White-mark versions with a transparent background (made from the originals: white -> transparent, the rest -> white) for dark surfaces.
+const SRC_ON_DARK = { ar: '/brand/nafith-ar-white.png', en: '/brand/nafith-en-white.png' } as const;
+const SIZE ={ ar: { w: 375, h: 81 }, en: { w: 176, h: 43 } } as const;
export function Logo({ height = 36, on }: { height?: number; on?: 'dark' | 'light' }) {
const { lang } = useLanguage();
@@ -21,10 +23,9 @@ export function Logo({ height = 36, on }: { height?: number; on?: 'dark' | 'ligh
-
+
);
}
diff --git a/web/src/i18n/ui.ts b/web/src/i18n/ui.ts
index 889e389..b9d3cec 100644
--- a/web/src/i18n/ui.ts
+++ b/web/src/i18n/ui.ts
@@ -14,6 +14,8 @@ export const ui = {
// login
'login.title': { en: 'Sign in', ar: 'تسجيل الدخول' },
'login.subtitle': { en: 'Enter your account details to continue', ar: 'أدخل بيانات حسابك للمتابعة' },
+ 'login.copyright': { en: 'All rights reserved to Nafith Logistics Services Company', ar: 'جميع الحقوق محفوظة لشركة نافذ للخدمات اللوجستية' },
+ 'login.heroTitle': { en: 'Nafith Trucks System', ar: 'نظام نافذ للشاحنات' },
'login.username': { en: 'Username', ar: 'اسم المستخدم' },
'login.password': { en: 'Password', ar: 'كلمة المرور' },
'login.submit': { en: 'Sign in', ar: 'دخول' },
diff --git a/web/src/shell/LoginHero.tsx b/web/src/shell/LoginHero.tsx
new file mode 100644
index 0000000..4bac211
--- /dev/null
+++ b/web/src/shell/LoginHero.tsx
@@ -0,0 +1,95 @@
+import { Box } from '@mui/material';
+import { Logo } from '@/components/Logo';
+
+const WHITE = '#ffffff';
+
+/**
+ * Flat, translucent truck silhouette (facing right in its own coordinates, ground at y = 62; mirrored by the caller).
+ * Cab with a window cut-out, a tanker barrel or a grain box with a heaped load, three trailer wheels, two tractor wheels.
+ */
+function SymbolTruck({ kind, opacity }: { kind: 'tanker' | 'grain'; opacity: number }) {
+ return (
+
+ {/* cab, window cut out */}
+
+
+ {kind === 'tanker' ? (
+ <>
+
+
+
+
+ >
+ ) : (
+ <>
+
+
+ >
+ )}
+
+ {/* wheels: three on the trailer, two on the tractor */}
+ {[-132, -100, -68, 8, 42].map((x) => )}
+
+ );
+}
+
+/**
+ * Symbolic background scene: soft blocks and a gantry in the distance, a dashed road and two flat truck silhouettes (a fuel tanker
+ * and a grain hauler) heading left, the reading direction. Everything is white at low opacity, so it reads as texture, not as artwork.
+ */
+function Scene() {
+ return (
+
+
+
+ );
+}
+
+/** Brand panel of the login page (md and up): gradient, symbolic road scene and the logo. */
+export function LoginHero() {
+ return (
+
+
+
+
+ );
+}
diff --git a/web/src/shell/LoginPage.tsx b/web/src/shell/LoginPage.tsx
index f3ef003..bee9423 100644
--- a/web/src/shell/LoginPage.tsx
+++ b/web/src/shell/LoginPage.tsx
@@ -1,17 +1,19 @@
import { useState, type FormEvent } from 'react';
import { Navigate, useLocation } from 'react-router-dom';
-import { Alert, Box, Button, Card, CardContent, IconButton, InputAdornment, Stack, TextField, Typography } from '@mui/material';
+import { Alert, Box, Button, Card, CardContent, IconButton, InputAdornment, Stack, TextField, Typography, useTheme } from '@mui/material';
import VisibilityIcon from '@mui/icons-material/Visibility';
import VisibilityOffIcon from '@mui/icons-material/VisibilityOff';
import { ApiError } from '@/api/client';
import { Logo } from '@/components/Logo';
import { useUi } from '@/i18n/useUi';
import { useAuth } from '@/providers/AuthProvider';
+import { LoginHero } from './LoginHero';
import { ThemeToggle } from './Toggles';
/** Pre-login page: uses ONLY the built-in ui table (no server captions exist before sign-in). */
export function LoginPage() {
const { t } = useUi();
+ const theme = useTheme();
const { status, login } = useAuth();
const location = useLocation();
const [username, setUsername] = useState('');
@@ -41,18 +43,22 @@ export function LoginPage() {
}
return (
-
+ // the brand panel (first child) sits on the physical right in both directions (the RTL style plugin would flip a "direction" rule)
+
+
+
-
-
-
+
+
+
-
- {t('login.title')}
- {t('login.subtitle')}
+ {/* on wide screens the logo is in the brand panel */}
+
+ {t('login.heroTitle')}
+ {t('login.subtitle')}
{error && {error}}
- {t('app.name')}
+ {t('login.copyright')} - {new Date().getFullYear()}
+
);
}