import { redirect } from 'next/navigation'; /** * Root page — always redirects to /login. * * Authentication state is checked client-side by the login page itself * (if already authenticated, it can redirect to /overview). * Using a server-side redirect here avoids the black-screen flash that * occurs when the root page renders null and waits for client JS. */ export default function RootPage() { redirect('/login'); }