<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login - Ryll Store</title>
        <link rel="icon" type="image/webp" href="{{ asset('images/ryll.webp') }}">

    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .font-orbitron { font-family: 'Orbitron', sans-serif; }
        .neon-border { box-shadow: 0 0 10px #22d3ee, inset 0 0 5px #22d3ee; }
        .neon-text { text-shadow: 0 0 10px #22d3ee; }
        body { background: radial-gradient(circle at center, #0f172a 0%, #000000 100%); }
    </style>
</head>
<body class="min-h-screen flex items-center justify-center px-4">
    <div class="max-w-md w-full">
        <div class="text-center mb-8">
            <h1 class="text-4xl font-bold text-cyan-400 font-orbitron neon-text mb-2">RYLL STORE</h1>
            <p class="text-gray-400">Login pikeun neraskeun transaksi</p>
        </div>

        <div class="bg-gray-900/80 backdrop-blur-xl p-8 rounded-3xl border border-cyan-400/30 neon-border">
            @if(session('success'))
                <div class="mb-4 p-3 bg-green-500/20 border border-green-500 text-green-400 rounded-lg text-sm">
                    {{ session('success') }}
                </div>
            @endif

            <form action="{{ route('login') }}" method="POST">
                @csrf
                <div class="mb-6">
                    <label class="block text-cyan-400 text-sm font-bold mb-2 tracking-widest uppercase">Email Address</label>
                    <div class="relative">
                        <i class="fas fa-envelope absolute left-4 top-1/2 -translate-y-1/2 text-gray-500"></i>
                        <input type="email" name="email" class="w-full bg-black/50 border border-gray-700 rounded-xl py-3 pl-12 pr-4 text-white focus:border-cyan-400 focus:outline-none transition" placeholder="conto@email.com" required>
                    </div>
                    @error('email') <span class="text-red-500 text-xs mt-1">{{ $message }}</span> @enderror
                </div>

                <div class="mb-6">
                    <label class="block text-cyan-400 text-sm font-bold mb-2 tracking-widest uppercase">Password</label>
                    <div class="relative">
                        <i class="fas fa-lock absolute left-4 top-1/2 -translate-y-1/2 text-gray-500"></i>
                        <input type="password" name="password" class="w-full bg-black/50 border border-gray-700 rounded-xl py-3 pl-12 pr-4 text-white focus:border-cyan-400 focus:outline-none transition" placeholder="••••••••" required>
                    </div>
                </div>

                <button type="submit" class="w-full bg-gradient-to-r from-cyan-500 to-blue-600 hover:from-cyan-400 hover:to-blue-500 text-white font-bold py-3 rounded-xl transition-all transform hover:scale-[1.02] shadow-lg shadow-cyan-500/25">
                    MASUK AYEUNA
                </button>
            </form>

            <div class="mt-8 text-center border-t border-gray-800 pt-6">
                <p class="text-gray-500 text-sm">Tacan gaduh akun? 
                    {{-- <a href="{{ route('register') }}" class="text-cyan-400 hover:underline">Daptar didieu</a> --}}
                </p>
            </div>
        </div>
        
        <div class="mt-6 text-center">
            <a href="/" class="text-gray-500 hover:text-cyan-400 transition text-sm">
                <i class="fas fa-arrow-left mr-2"></i>Balik ka Home
            </a>
        </div>
    </div>
</body>
</html>
