'use client'; import Navbar from "@/components/Navbar"; import Footer from "@/components/Footer"; import { useLanguage } from "@/lib/language-context"; import { getTranslation } from "@/lib/translations"; import { useState } from 'react'; import { motion, AnimatePresence } from "framer-motion"; import { User, Lock, MapPin, LogIn, Phone, MessageCircle } from "lucide-react"; /** * ============================================================================= * STAFF LOGIN / AUTHENTICATION PAGE * ============================================================================= * * Beautiful, theme-matched placeholder login experience. * - Fully language compatible (sv default + en/hi/ur) * - No real backend yet — always shows friendly "under construction" message * - Mobile-first: large tap targets, excellent spacing, easy form on phones * - Desktop: elegant split layout with dark luxury graphic panel + form * - Uses existing design tokens (gold accents, cream bg, rounded cards, serif titles) * * Future: when real auth is added, this will become the entry to a protected staff area * (per-site menus, orders, inventory etc. for Askim vs Backaplan). */ export default function LoginPage() { const { language } = useLanguage(); const t = getTranslation(language); const [formData, setFormData] = useState({ username: '', password: '', site: '', }); const [isSubmitted, setIsSubmitted] = useState(false); const handleChange = (e: React.ChangeEvent) => { const { name, value } = e.target; setFormData((prev) => ({ ...prev, [name]: value })); }; const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); // Placeholder behaviour: always show the construction notice. // No validation beyond native required fields — real auth coming later. setIsSubmitted(true); }; const resetForm = () => { setFormData({ username: '', password: '', site: '' }); setIsSubmitted(false); }; return (
{/* Elegant header */}
STAFF PORTAL

{t.auth.title}

{t.auth.subtitle}

{/* Content area — beautiful split layout on desktop, clean single column on mobile */}
{/* LEFT: Premium dark graphic panel (desktop only). Matches Shahi theme with gold details. */}
{/* Subtle gold frame lines */}
Shahi Kitchen
Shahi
Kitchen
STAFF ACCESS

Two locations serving Shahi Indian & Pakistani hospitality in Gothenburg since 2016.

ASKIM • BACKAPLAN
{/* RIGHT / MOBILE: The actual elegant login card */}
{/* Mobile-only logo accent for visual continuity */}
Shahi Kitchen
{!isSubmitted ? (
{/* Username */}
{/* Password */}
{/* Site / Location dropdown — Askim or Backaplan */}
{/* Custom dropdown arrow for polish */}

Select the location you are working at today.

{/* Primary gold action button — large & mobile friendly */}

{t.auth.footerNote}

) : ( /* Beautiful result state — always shows the construction notice */

{t.auth.construction.title}

{t.auth.construction.message}

{/* Helpful contact actions (real numbers from the site) */}

We appreciate your patience while we build a seamless experience.

)}
{/* Small trust line */}

SHAHI KITCHEN • GOTHENBURG • EST 2016

); }