<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Register - 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 #a855f7, inset 0 0 5px #a855f7; }
        .neon-text { text-shadow: 0 0 10px #a855f7; }
        body { background: radial-gradient(circle at center, #1e1b4b 0%, #000000 100%); }
    </style>
</head>
<body class="min-h-screen flex items-center justify-center px-4 py-10">
    <div class="max-w-md w-full">
        <div class="text-center mb-8">
            <h1 class="text-4xl font-bold text-purple-400 font-orbitron neon-text mb-2">JOIN US</h1>
            <p class="text-gray-400">Jieun akun anyar pikeun fitur lengkep</p>
        </div>

        <div class="bg-gray-900/80 backdrop-blur-xl p-8 rounded-3xl border border-purple-400/30 neon-border">
            <form action="{{ route('register') }}" method="POST">
                @csrf
                <div class="mb-5">
                    <label class="block text-purple-400 text-sm font-bold mb-2 tracking-widest uppercase">Nami Lengkep</label>
                    <input type="text" name="name" class="w-full bg-black/50 border border-gray-700 rounded-xl py-3 px-4 text-white focus:border-purple-400 focus:outline-none transition" placeholder="Nami anjeun" required>
                </div>

                <div class="mb-5">
                    <label class="block text-purple-400 text-sm font-bold mb-2 tracking-widest uppercase">Email</label>
                    <input type="email" name="email" class="w-full bg-black/50 border border-gray-700 rounded-xl py-3 px-4 text-white focus:border-purple-400 focus:outline-none transition" placeholder="conto@email.com" required>
                    @error('email') <span class="text-red-500 text-xs">{{ $message }}</span> @enderror
                </div>

                <div class="mb-5">
                    <label class="block text-purple-400 text-sm font-bold mb-2 tracking-widest uppercase">No. WhatsApp</label>
                    <input type="text" name="phone" class="w-full bg-black/50 border border-gray-700 rounded-xl py-3 px-4 text-white focus:border-purple-400 focus:outline-none transition" placeholder="0812xxxx" required>
                </div>

                <div class="grid grid-cols-2 gap-4 mb-6">
                    <div>
                        <label class="block text-purple-400 text-sm font-bold mb-2 uppercase">Password</label>
                        <input type="password" name="password" class="w-full bg-black/50 border border-gray-700 rounded-xl py-3 px-4 text-white focus:border-purple-400 focus:outline-none transition" placeholder="••••••••" required>
                    </div>
                    <div>
                        <label class="block text-purple-400 text-sm font-bold mb-2 uppercase">Confirm</label>
                        <input type="password" name="password_confirmation" class="w-full bg-black/50 border border-gray-700 rounded-xl py-3 px-4 text-white focus:border-purple-400 focus:outline-none transition" placeholder="••••••••" required>
                    </div>
                </div>

                <button type="submit" class="w-full bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-500 hover:to-pink-500 text-white font-bold py-3 rounded-xl transition-all shadow-lg shadow-purple-500/25">
                    DAPTAR AYEUNA
                </button>
            </form>

            <div class="mt-8 text-center border-t border-gray-800 pt-6">
                <p class="text-gray-500 text-sm">Entos gaduh akun? 
                    <a href="{{ route('login') }}" class="text-purple-400 hover:underline">Login didieu</a>
                </p>
            </div>
        </div>
    </div>
</body>
</html>
