<x-guest-layout>

    <div class="text-center mb-4">

        <img
            src="{{ asset('images/logo.png') }}"
            alt="KLMS"
            style="
                width: 120px;
                height: auto;
                margin: 0 auto;
            "
        >

        <h3 class="mt-3 fw-bold">
            KLMS
        </h3>

        <p class="text-muted mb-0">
            Electronic Cargo Tracking System
        </p>

    </div>

    <x-auth-session-status
        class="mb-4"
        :status="session('status')"
    />

    <form
        method="POST"
        action="{{ route('login') }}"
    >

        @csrf

        <div>

            <x-input-label
                for="username"
                :value="__('Username')"
            />

            <x-text-input
                id="username"
                class="block mt-1 w-full"
                type="text"
                name="username"
                :value="old('username')"
                required
                autofocus
                autocomplete="username"
            />

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

        </div>

        <div class="mt-4">

            <x-input-label
                for="password"
                :value="__('Password')"
            />

            <x-text-input
                id="password"
                class="block mt-1 w-full"
                type="password"
                name="password"
                required
                autocomplete="current-password"
            />

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

        </div>

        <div class="block mt-4">

            <label
                for="remember_me"
                class="inline-flex items-center"
            >

                <input
                    id="remember_me"
                    type="checkbox"
                    class="rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500"
                    name="remember"
                >

                <span class="ms-2 text-sm text-gray-600">
                    Remember me
                </span>

            </label>

        </div>

        <div class="flex items-center justify-end mt-4">

            <x-primary-button class="ms-3">

                <i class="bi bi-box-arrow-in-right me-2"></i>

                Log In

            </x-primary-button>

        </div>

    </form>

</x-guest-layout>