<x-guest-layout>
    <!-- Session Status -->
    <x-auth-session-status class="mb-4" :status="session('status')" />

    <form method="POST" action="{{ route('login') }}" class="auth">
        @csrf

        <!-- Email Address -->
        <div class="input-row input-row--1">
            <div class="input-cell">
                <x-input.label for="email" :value="__('Email')" />
                <x-input.text
                    id="email"
                    type="email"
                    name="email"
                    :value="old('email')"
                    required
                    autofocus
                    autocomplete="username" />
                <x-input.error :messages="$errors->get('email')" class="mt-2" />
            </div>
        </div>

        <!-- Password -->
       <div class="input-row input-row--1">
            <div class="input-cell">
                <x-input.label for="password" :value="__('Password')" />
                <x-input.text
                    id="password"
                    type="password"
                    name="password"
                    required
                    autocomplete="current-password" />
                <x-input.error :messages="$errors->get('password')" class="mt-2" />
            </div>
        </div>

        <!-- Remember Me -->
        <div class="input-row input-row--1">
            <div class="input-cell">
                <label for="remember_me" class="inline-flex items-center gap-2">
                    <input id="remember_me" type="checkbox" name="remember">
                    <span>{{ __('Remember me') }}</span>
                </label>
            </div>
        </div>

        <div class="flex items-center justify-between mt-4 gap-4">
            @if (Route::has('password.request'))
                <a href="{{ route('password.request') }}" class="text">
                    {{ __('Forgot your password?') }}
                </a>
            @endif

            <x-button variant="primary" type="submit">
                {{ __('Log in') }}
            </x-button>
        </div>
    </form>
</x-guest-layout>
