import React from 'react' import { cookies } from 'next/headers' import LoginForm from './LoginForm' import LanguageSelector from '@/components/LanguageSelector' async function getMessages() { const cookieStore = await cookies() const lang = cookieStore.get('NEXT_LOCALE')?.value || 'de' const messages = await import(`@/messages/${lang}.json`) return messages.default } export default async function LoginPage() { const messages = await getMessages() return (