<!DOCTYPE html>
<html lang="id" class="h-full">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@yield('title') — POS UMKM</title>
    <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap" rel="stylesheet">
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: { extend: { fontFamily: { sans: ['Plus Jakarta Sans', 'sans-serif'] } } }
        }
    </script>
</head>
<body class="h-full bg-slate-50 font-sans flex items-center justify-center p-6">
    <div class="text-center max-w-md">
        <div class="text-8xl font-black text-slate-200 mb-4 leading-none">@yield('code')</div>
        <div class="text-6xl mb-6">@yield('emoji')</div>
        <h1 class="text-2xl font-bold text-slate-800 mb-2">@yield('title')</h1>
        <p class="text-slate-500 mb-8">@yield('message')</p>
        <div class="flex gap-3 justify-center">
            <button onclick="history.back()"
                class="px-5 py-2.5 bg-slate-100 hover:bg-slate-200 text-slate-700 font-semibold rounded-xl transition text-sm">
                ← Kembali
            </button>
            @auth
            <a href="{{ route('pos.index') }}"
               class="px-5 py-2.5 bg-blue-500 hover:bg-blue-600 text-white font-bold rounded-xl transition text-sm shadow-lg shadow-blue-500/30">
                🏠 Ke Kasir
            </a>
            @else
            <a href="{{ route('login') }}"
               class="px-5 py-2.5 bg-blue-500 hover:bg-blue-600 text-white font-bold rounded-xl transition text-sm shadow-lg shadow-blue-500/30">
                🔑 Login
            </a>
            @endauth
        </div>
    </div>
</body>
</html>
