<div class="flex min-h-screen">
    <div class="flex-1 flex justify-center items-center">
        <div class="w-80 md:w-100 space-y-6">
            <div class="flex justify-center opacity-50">
                <flux:brand href="{{ route('homepage') }}" name="Yadi Parfum" wire:navigate>
                    <x-slot name="logo">
                        <div
                            class="size-8 rounded shrink-0 bg-accent text-accent-foreground flex items-center justify-center">
                            <i class="font-serif font-bold">YD</i>
                        </div>
                    </x-slot>
                </flux:brand>
            </div>

            <flux:heading size="lg" class="mb-1">Selamat datang!</flux:heading>
            <flux:text>
                Silakan akses panel dengan memasukkan nama pengguna, email, dan kata sandi Anda.
            </flux:text>

            <div class="flex flex-col gap-6">
                <flux:field>
                    <flux:label>Nama Pengguna atau Email <span class="text-red-500 ms-1">*</span></flux:label>
                    <flux:input wire:model="form.login" type="text"
                        placeholder="johndoe / info.pangestuyoga@gmail.com" autocomplete="off" />
                    <flux:error name="form.login" />
                </flux:field>

                <flux:field>
                    <div class="mb-3 flex justify-between">
                        <flux:label>Kata Sandi <span class="text-red-500 ms-1">*</span></flux:label>

                        <flux:link href="{{ route('password.request') }}" variant="subtle" class="text-sm"
                            wire:navigate>Lupa kata
                            sandi?</flux:link>
                    </div>

                    <flux:input wire:model="form.password" type="password" placeholder="********" viewable />

                    <flux:error name="form.password" />
                </flux:field>

                <flux:button variant="primary" class="w-full cursor-pointer" wire:click="auth">Masuk</flux:button>
            </div>
            <flux:subheading class="text-center">
                Nikmati berbagai keuntungan! <flux:link href="{{ route('register') }}" wire:navigate>Daftar
                    sekarang.
                </flux:link>
            </flux:subheading>
        </div>
    </div>

    <div class="flex-1 p-4 max-lg:hidden">
        <div class="relative rounded-lg h-full w-full bg-zinc-100 flex flex-col items-start justify-end p-16 bg-cover bg-center bg-no-repeat"
            style="background-image: url('/assets/images/cover.jpg')">
        </div>
    </div>
</div>
