<x-guest-layout>
    <div class="mb-6 flex justify-center">
        <img
            src="{{ asset('images/mega-theron-logo.png') }}"
            alt="Mega Theron Group"
            class="h-20 w-auto object-contain"
        />
    </div>

    <!-- Session Status -->
    <x-auth-session-status class="mb-4 text-sm text-gray-700" :status="session('status')" />

    <form method="POST" action="{{ route('login') }}" class="space-y-4">
        @csrf

        <!-- Email Address -->
        <div>
            <x-input-label for="email" :value="__('Email')" class="text-gray-700" />
            <x-text-input
                id="email"
                class="block mt-1 w-full rounded-md focus:ring-red-500 focus:border-red-500"
                type="email"
                name="email"
                :value="old('email')"
                required
                autofocus
                autocomplete="username"
            />
            <x-input-error :messages="$errors->get('email')" class="mt-2" />
        </div>

        <!-- Password -->
        <div>
            <x-input-label for="password" :value="__('Password')" class="text-gray-700" />

            <x-text-input
                id="password"
                class="block mt-1 w-full rounded-md focus:ring-red-500 focus:border-red-500"
                type="password"
                name="password"
                required
                autocomplete="current-password"
            />

            <x-input-error :messages="$errors->get('password')" class="mt-2" />
        </div>

        <!-- Remember Me -->
        <div class="block">
            <label for="remember_me" class="inline-flex items-center">
                <input id="remember_me" type="checkbox" class="rounded border-gray-300 text-[var(--dealer-accent-color)] shadow-sm focus:ring-[var(--dealer-accent-color)]" name="remember">
                <span class="ms-2 text-sm text-gray-600">{{ __('Remember me') }}</span>
            </label>
        </div>

        <div class="flex items-center justify-between pt-2">
            @if (Route::has('password.request'))
                <a class="underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[var(--dealer-accent-color)]" href="{{ route('password.request') }}">
                    {{ __('Forgot your password?') }}
                </a>
            @endif

            <x-primary-button
                class="ms-3 bg-[var(--dealer-accent-color)] hover:bg-[var(--dealer-accent-hover-color)] focus:bg-[var(--dealer-accent-hover-color)] active:bg-[var(--dealer-accent-hover-color)] focus:ring-[var(--dealer-accent-color)]"
            >
                {{ __('Log in') }}
            </x-primary-button>
        </div>
    </form>
</x-guest-layout>
