@extends('layouts.auth')
@section('title', 'JAM Admin — Sign In')

@section('content')
<div class="min-h-screen flex items-center justify-center px-4 bg-[#0d0d0d]">
    <div class="w-full max-w-sm">
        <div class="text-center mb-10">
            <p class="text-[#D4B84A] text-xs tracking-[0.5em] uppercase font-medium">Jam Corner</p>
            <p class="text-white/30 text-xs tracking-widest uppercase mt-1">Admin Portal</p>
        </div>

        <div class="border border-[#2a2a2a] rounded-2xl p-8 bg-[#111111]">
            <h2 class="text-2xl font-semibold mb-1 text-center" style="font-family: 'Playfair Display', serif;">
                Admin Access
            </h2>
            <p class="text-white/30 text-xs text-center mb-7 tracking-wide">Authorised personnel only</p>

            @if ($errors->any())
                <div class="bg-red-900/30 border border-red-700/50 rounded-lg p-3 mb-5">
                    @foreach ($errors->all() as $error)
                        <p class="text-red-400 text-xs">{{ $error }}</p>
                    @endforeach
                </div>
            @endif

            <form method="POST" action="{{ route('admin.login.submit') }}" class="space-y-6">
                @csrf
                <div>
                    <label class="block text-xs tracking-widest uppercase text-white/40 mb-2">Email</label>
                    <input type="email" name="email" value="{{ old('email') }}" required autofocus
                           placeholder="admin@jamcorner.com.au"
                           class="w-full bg-transparent border-b border-[#2a2a2a] focus:border-[#D4B84A] outline-none text-white placeholder-white/20 py-3 text-sm transition-colors duration-200">
                </div>
                <div>
                    <label class="block text-xs tracking-widest uppercase text-white/40 mb-2">Password</label>
                    <input type="password" name="password" required
                           placeholder="••••••••"
                           class="w-full bg-transparent border-b border-[#2a2a2a] focus:border-[#D4B84A] outline-none text-white placeholder-white/20 py-3 text-sm transition-colors duration-200">
                </div>
                <button type="submit"
                        class="w-full bg-[#D4B84A] hover:bg-[#E8D080] text-black font-semibold text-xs tracking-widest uppercase py-4 rounded-full transition-colors duration-200">
                    Sign In
                </button>
            </form>
        </div>

        <p class="text-center text-white/15 text-xs mt-6">
            © {{ date('Y') }} JAM Members Club · Restricted Access
        </p>
    </div>
</div>
@endsection
