
<x-app-layout customClass="justify-center items-center" mainClass="my-16 w-11/12 bg-white px-6 py-4 shadow-sm ring-1 ring-gray-950/5 sm:rounded-xl sm:px-12 sm:max-w-lg">
    <img src="images/logo_univ.png" alt="logo" class="h-32 mx-auto mb-1"/>
    <!-- Session Status -->
    <x-auth-session-status class="mb-4" :status="session('status')" />

    <x-slot:title>
        Login
    </x-slot>

    <div class="text-center grid gap-y-2">
        <h2 class="text-lg font-bold">Sistem Tugas Akhir Fasilkom</h2>
        <h2 class="text-lg font-bold">Login</h2>
    </div>


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

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

        <!-- Password -->
        <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>

        <!-- Remember Me -->
        <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 flex-col items-center justify-center mt-4">
            <x-button class="ms-3 w-full bg-blue text-white hover:opacity-75">
                {{ __('Login') }}
            </x-button>

            @if (Route::has('password.request'))
                <a class="underline mt-2 text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" href="{{ route('password.request') }}">
                    {{ __('Forgot your password?') }}
                </a>
            @endif
                <a class="underline mt-2 text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" href="{{ route('register') }}">
                    {{ __('Create your account') }}
                </a>

        </div>
    </form>
</x-app-layout>