<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Giriş Yap — Markamama Kariyer</title>
    @vite(['resources/css/app.css', 'resources/js/app.js'])
    <style>
        .bg-primary { background-color: #ff7b00; }
        .text-primary { color: #ff7b00; }
        .focus\:ring-orange-400:focus { --tw-ring-color: #fb923c; }
    </style>
</head>
<body class="bg-gray-100 min-h-screen flex items-center justify-center font-sans antialiased">

<div class="w-full max-w-md px-4">
    <div class="text-center mb-8">
        <h1 class="text-3xl font-bold text-primary">markamama</h1>
        <p class="text-gray-500 text-sm mt-1">Kariyer Yönetim Paneli</p>
    </div>

    <div class="bg-white rounded-2xl shadow-sm border border-gray-100 p-8">
        <h2 class="text-xl font-bold text-gray-800 mb-6">Giriş Yap</h2>

        @if(session('status'))
        <div class="bg-green-50 border border-green-200 text-green-700 px-4 py-3 rounded-lg text-sm mb-4">
            {{ session('status') }}
        </div>
        @endif

        @if($errors->any())
        <div class="bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg text-sm mb-4">
            {{ $errors->first() }}
        </div>
        @endif

        <form method="POST" action="{{ route('login') }}" class="space-y-4">
            @csrf

            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">E-posta</label>
                <input type="email" name="email" value="{{ old('email') }}" required autofocus
                       class="w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-orange-400 @error('email') border-red-400 @enderror"
                       placeholder="admin@markamama.com.tr">
            </div>

            <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">Şifre</label>
                <input type="password" name="password" required
                       class="w-full border border-gray-300 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-orange-400"
                       placeholder="••••••••">
            </div>

            <div class="flex items-center justify-between">
                <label class="flex items-center gap-2 cursor-pointer">
                    <input type="checkbox" name="remember" class="rounded border-gray-300 text-orange-500">
                    <span class="text-sm text-gray-600">Beni hatırla</span>
                </label>
            </div>

            <button type="submit"
                    class="w-full bg-primary text-white py-2.5 rounded-lg font-semibold text-sm hover:bg-orange-600 transition-colors">
                Giriş Yap
            </button>
        </form>
    </div>

    <p class="text-center text-xs text-gray-400 mt-6">
        © {{ date('Y') }} Markamama. Tüm hakları saklıdır.
    </p>
</div>

</body>
</html>