<x-guest-layout>
    <div class="mb-10 text-center">
        <h2 class="text-3xl font-display font-black text-white tracking-tight italic uppercase">Registrasi Leasing</h2>
        <p class="mt-3 text-sm font-medium text-slate-400 leading-relaxed">Kelola dan integrasikan data aset perusahaan Anda ke ekosistem global.</p>
    </div>

    <form method="POST" action="{{ route('register.leasing') }}" class="space-y-6">
        @csrf

        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
            <div class="col-span-full space-y-2">
                <x-input-label for="company_name" :value="__('Nama Perusahaan / Leasing')" class="text-[10px] font-black uppercase tracking-widest text-slate-300 px-1" />
                <div class="relative group">
                    <div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none text-slate-500 group-focus-within:text-primary-500 transition-colors">
                        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"></path></svg>
                    </div>
                    <input id="company_name" type="text" name="company_name" value="{{ old('company_name') }}" required autofocus autocomplete="off" class="block w-full pl-11 pr-4 py-4 bg-white/5 border-white/10 rounded-2xl text-sm font-bold text-white focus:ring-primary-500 focus:border-primary-500 transition-all placeholder:text-slate-600" placeholder="Contoh: PT Leasing Maju Jaya" />
                </div>
                <x-input-error :messages="$errors->get('company_name')" class="mt-2 text-xs font-bold uppercase" />
            </div>

            <div class="space-y-2">
                <x-input-label for="owner_name" :value="__('Penanggung Jawab')" class="text-[10px] font-black uppercase tracking-widest text-slate-300 px-1" />
                <div class="relative group">
                    <div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none text-slate-500 group-focus-within:text-primary-500 transition-colors">
                        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
                    </div>
                    <input id="owner_name" type="text" name="owner_name" value="{{ old('owner_name') }}" required autocomplete="off" class="block w-full pl-11 pr-4 py-4 bg-white/5 border-white/10 rounded-2xl text-sm font-bold text-white focus:ring-primary-500 focus:border-primary-500 transition-all" placeholder="Nama Lengkap Penanggung Jawab" />
                </div>
            </div>

            <div class="space-y-2">
                <x-input-label for="phone" :value="__('WhatsApp Bisnis')" class="text-[10px] font-black uppercase tracking-widest text-slate-300 px-1" />
                <div class="relative group">
                    <div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none text-slate-500 group-focus-within:text-primary-500 transition-colors">
                        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path></svg>
                    </div>
                    <input id="phone" type="text" name="phone" value="{{ old('phone') }}" required autocomplete="off" class="block w-full pl-11 pr-4 py-4 bg-white/5 border-white/10 rounded-2xl text-sm font-bold text-white focus:ring-primary-500 focus:border-primary-500 transition-all" placeholder="08xxxxxxxxxx" />
                </div>
            </div>
        </div>

        <div class="space-y-2">
            <x-input-label for="email" :value="__('Email Operasional')" class="text-[10px] font-black uppercase tracking-widest text-slate-300 px-1" />
            <div class="relative group">
                <div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none text-slate-500 group-focus-within:text-primary-500 transition-colors">
                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg>
                </div>
                <input id="email" type="email" name="email" value="{{ old('email') }}" required autocomplete="off" class="block w-full pl-11 pr-4 py-4 bg-white/5 border-white/10 rounded-2xl text-sm font-bold text-white focus:ring-primary-500 focus:border-primary-500 transition-all" placeholder="admin@perusahaan.com" />
            </div>
            <x-input-error :messages="$errors->get('email')" class="mt-2 text-xs font-bold uppercase" />
        </div>

        <div class="grid grid-cols-1 sm:grid-cols-2 gap-6">
            <div class="space-y-2">
                <x-input-label for="password" :value="__('Kata Sandi')" class="text-[10px] font-black uppercase tracking-widest text-slate-300 px-1" />
                <input id="password" type="password" name="password" required class="block w-full px-4 py-4 bg-white/5 border-white/10 rounded-2xl text-sm font-bold text-white focus:ring-primary-500 focus:border-primary-500 transition-all" placeholder="••••••••" />
            </div>
            <div class="space-y-2">
                <x-input-label for="password_confirmation" :value="__('Konfirmasi')" class="text-[10px] font-black uppercase tracking-widest text-slate-300 px-1" />
                <input id="password_confirmation" type="password" name="password_confirmation" required class="block w-full px-4 py-4 bg-white/5 border-white/10 rounded-2xl text-sm font-bold text-white focus:ring-primary-500 focus:border-primary-500 transition-all" placeholder="••••••••" />
            </div>
        </div>

        <div class="pt-4">
            <button type="submit" class="w-full btn-primary !py-5 text-[11px] shadow-2xl shadow-primary-200 uppercase">
                Integrasikan Perusahaan Sekarang
            </button>
        </div>

        <div class="text-center pt-10 border-t border-brand-50 space-y-4">
            <p class="text-[10px] font-black text-brand-300 uppercase tracking-[0.2em]">Sudah memiliki akun?</p>
            <a href="{{ route('login') }}" class="block text-[10px] font-black uppercase tracking-widest text-primary-600 hover:tracking-[0.2em] transition-all italic">Masuk Kembali</a>
            
            <div class="pt-4">
                <p class="text-[9px] font-black text-brand-200 uppercase tracking-[0.3em] mb-2 italic">Bukan Perusahaan Leasing?</p>
                <a href="{{ route('register.member') }}" class="text-[9px] font-black uppercase tracking-widest text-brand-400 hover:text-primary-500 transition-all italic underline underline-offset-4 decoration-brand-100">Daftar Sebagai Member →</a>
            </div>
        </div>
    </form>
</x-guest-layout>
