<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Daftar Mitra - Tempe Zhi</title>
    
    <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
    
    <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800;900&display=swap" rel="stylesheet">

    <style>
        body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: #ffffff; }

        /* Card Register Flat Style */
        .brutal-card {
            background: white;
            border: 4px solid #064e3b;
            border-radius: 1.5rem;
        }

        /* Input Styling */
        .brutal-input {
            border: 2px solid #cbd5e1;
            transition: all 0.2s ease;
        }
        .brutal-input:focus {
            border-color: #064e3b;
        }

        /* Tombol Utama Flat */
        .btn-brutal-submit {
            background: #064e3b;
            color: white;
            border-radius: 1rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.2s ease;
        }
        .btn-brutal-submit:hover {
            background: #043427;
        }
    </style>
</head>
<body class="bg-slate-50/40">

<div class="min-h-screen flex flex-col justify-center py-16 px-4 sm:px-6 lg:px-8 relative overflow-hidden">
    {{-- Background Grid Accent --}}
    <div class="absolute inset-0 bg-[url('https://www.transparenttextures.com/patterns/cubes.png')] opacity-[0.03] pointer-events-none"></div>

    <div class="sm:mx-auto sm:w-full sm:max-w-xl relative z-10">
        {{-- Logo Otentik Tempe Zhi Flat --}}
        <div class="flex justify-center mb-6">
             <img src="{{ asset('images/tempezhi.png') }}" alt="Logo Tempe Zhi" class="h-12 w-auto object-contain">
        </div>
        
        
        <h2 class="text-center text-3xl font-[900] text-slate-900 uppercase tracking-tight leading-none">
            Daftar Mitra
        </h2>
        <p class="mt-3 text-center text-xs font-semibold text-slate-500 uppercase tracking-wider">
            Atau 
            <a href="{{ route('login') }}" class="text-[#064e3b] hover:text-yellow-600 underline underline-offset-4 transition-colors font-bold">
                masuk ke sistem di sini
            </a>
        </p>
    </div>

    <div class="mt-8 sm:mx-auto sm:w-full sm:max-w-xl relative z-10">
        <div class="brutal-card py-10 px-6 sm:px-10">

            <form action="{{ route('register') }}" method="POST" class="space-y-5">
                @csrf
                
                <div class="space-y-5">
                    <div class="border-b-2 border-slate-100 pb-1.5">
                        <h3 class="font-black text-[#064e3b] uppercase text-[10px] tracking-widest">Identitas Mitra</h3>
                    </div>

                    <div>
                        <label class="block text-[11px] font-black text-slate-700 uppercase tracking-widest mb-1.5">Nama Lengkap / Nama Toko</label>
                        <input type="text" name="name" value="{{ old('name') }}" required 
                               class="brutal-input block w-full px-4 py-3.5 bg-white text-sm font-bold text-slate-800 rounded-xl outline-none focus:ring-0 placeholder:text-slate-300"
                               placeholder="Nama resmi pendaftaran">
                    </div>

                    <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
                        <div>
                            <label class="block text-[11px] font-black text-slate-700 uppercase tracking-widest mb-1.5">Email</label>
                            <input type="email" name="email" value="{{ old('email') }}" required 
                                   class="brutal-input block w-full px-4 py-3.5 bg-white text-sm font-bold text-slate-800 rounded-xl outline-none focus:ring-0 placeholder:text-slate-300"
                                   placeholder="nama@email.com">
                        </div>
                        <div>
                            <label class="block text-[11px] font-black text-slate-700 uppercase tracking-widest mb-1.5">No. WhatsApp</label>
                            <input type="text" name="phone" value="{{ old('phone') }}" required 
                                   class="brutal-input block w-full px-4 py-3.5 bg-white text-sm font-bold text-slate-800 rounded-xl outline-none focus:ring-0 placeholder:text-slate-300"
                                   placeholder="08xxxxxxxx">
                        </div>
                    </div>

                    <div class="border-b-2 border-slate-100 pb-1.5 pt-2">
                        <h3 class="font-black text-[#064e3b] uppercase text-[10px] tracking-widest">Lokasi Distribusi</h3>
                    </div>

                    <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
                        <div>
                            <label class="block text-[11px] font-black text-slate-700 uppercase tracking-widest mb-1.5">Kota / Kabupaten</label>
                            <input type="text" name="city" value="{{ old('city') }}" required 
                                   oninput="this.value = this.value.replace(/\b\w/g, l => l.toUpperCase())"
                                   class="brutal-input block w-full px-4 py-3.5 bg-white text-sm font-bold text-slate-800 rounded-xl outline-none focus:ring-0 placeholder:text-slate-300" 
                                   placeholder="Contoh: Banjarbaru">
                        </div>
                        <div>
                            <label class="block text-[11px] font-black text-slate-700 uppercase tracking-widest mb-1.5">Kecamatan</label>
                            <input type="text" name="district" value="{{ old('district') }}" required 
                                   oninput="this.value = this.value.replace(/\b\w/g, l => l.toUpperCase())"
                                   class="brutal-input block w-full px-4 py-3.5 bg-white text-sm font-bold text-slate-800 rounded-xl outline-none focus:ring-0 placeholder:text-slate-300" 
                                   placeholder="Contoh: Cempaka">
                        </div>
                    </div>

                    <div>
                        <label class="block text-[11px] font-black text-slate-700 uppercase tracking-widest mb-1.5">Alamat Pengiriman Lengkap</label>
                        <textarea name="address" required rows="3" 
                                  class="brutal-input block w-full p-4 bg-white text-sm font-semibold text-slate-700 leading-relaxed rounded-xl outline-none focus:ring-0 placeholder:text-slate-300"
                                  placeholder="Tuliskan alamat lengkap pengiriman... Margasari, RT... etc.">{{ old('address') }}</textarea>
                    </div>

                    <div class="border-b-2 border-slate-100 pb-1.5 pt-2">
                        <h3 class="font-black text-[#064e3b] uppercase text-[10px] tracking-widest">Akses Keamanan Akun</h3>
                    </div>

                    <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
                        <div>
                            <label class="block text-[11px] font-black text-slate-700 uppercase tracking-widest mb-1.5">Password</label>
                            <input type="password" name="password" required 
                                   class="brutal-input block w-full px-4 py-3.5 bg-white text-sm font-bold text-slate-800 rounded-xl outline-none focus:ring-0 placeholder:text-slate-300"
                                   placeholder="••••••••">
                        </div>
                        <div>
                            <label class="block text-[11px] font-black text-slate-700 uppercase tracking-widest mb-1.5">Konfirmasi Password</label>
                            <input type="password" name="password_confirmation" required 
                                   class="brutal-input block w-full px-4 py-3.5 bg-white text-sm font-bold text-slate-800 rounded-xl outline-none focus:ring-0 placeholder:text-slate-300"
                                   placeholder="••••••••">
                        </div>
                    </div>
                </div>

                <div class="pt-4">
                    <button type="submit" class="w-full flex justify-center py-4 px-4 btn-brutal-submit text-xs tracking-widest transition-all cursor-pointer">
                        Daftar Sekarang
                    </button>
                </div>
            </form>

            <div class="mt-8">
                <div class="relative">
                    <div class="absolute inset-0 flex items-center">
                        <div class="w-full border-t-2 border-slate-100"></div>
                    </div>
                    <div class="relative flex justify-center text-xs">
                        <span class="px-3 bg-white text-slate-400 font-bold uppercase tracking-widest text-[9px]">
                            Akses Navigasi
                        </span>
                    </div>
                </div>

                <div class="mt-6 text-center">
                    <a href="/" class="text-[10px] font-black text-slate-400 hover:text-[#064e3b] transition-colors uppercase tracking-widest underline underline-offset-4">
                        Kembali ke Beranda
                    </a>
                </div>
            </div>

        </div>
    </div>
</div>

</body>
</html>