@extends('layouts.auth')

@section('title')
    Login
@endsection

@section('content')

<section class="md:h-screen py-36 flex items-center bg-orange-500/10 dark:bg-orange-500/20 bg-[url('../../assets/images/hero/bg-shape.html')] bg-center bg-no-repeat bg-cover">
    <div class="container relative">
        <div class="grid grid-cols-1">
            <div class="relative overflow-hidden bg-white rounded-md shadow dark:shadow-gray-700 dark:bg-slate-900">
                <div class="grid items-center grid-cols-1 md:grid-cols-2">
                    <div class="relative md:shrink-0">
                        <img class="lg:h-full h-52 w-full object-cover md:h-[34rem]" src="{{ asset('images/auth-1.jpg') }}" alt="">
                    </div>

                    <div class="p-8 lg:px-20">
                        <div class="text-center">
                            <a href="{{ url('/') }}">
                                <img src="{{ asset('images/logo-dark.png') }}" style="height: 40px;" class="block mx-auto dark:hidden" alt="">
                                <img src="{{ asset('images/logo.png') }}" style="height: 40px;" class="hidden mx-auto dark:block" alt="">
                            </a>
                        </div>

                        <form class="py-8 text-start lg:py-20" method="POST" action="{{ route('login') }}">
                            @csrf
                            <div class="grid grid-cols-1">
                                <div class="mb-4">
                                    <label class="font-semibold" for="LoginEmail">Email Address:</label>
                                    <input id="LoginEmail" name="email" type="email" class="w-full h-10 px-3 py-2 mt-3 bg-transparent border border-gray-100 rounded outline-none dark:bg-slate-900 dark:text-slate-200 dark:border-gray-800 focus:ring-0" placeholder="name@example.com">
                                    @error('email')
                                        <span class="mx-auto text-red-600 invalid-feedback" role="alert">
                                            <small class="text-center">{{ $message }}</small>
                                        </span>
                                    @enderror
                                </div>

                                <div class="mb-4">
                                    <label class="font-semibold" for="LoginPassword">Password:</label>
                                    <input id="LoginPassword" type="password" name="password" class="w-full h-10 px-3 py-2 mt-3 bg-transparent border border-gray-100 rounded outline-none dark:bg-slate-900 dark:text-slate-200 dark:border-gray-800 focus:ring-0" placeholder="Password:">
                                    @error('password')
                                        <span class="mx-auto text-red-600 invalid-feedback" role="alert">
                                            <small class="text-center">{{ $message }}</small>
                                        </span>
                                    @enderror
                                </div>

                                <div class="flex justify-between mb-4">
                                    <div class="flex items-center mb-0">
                                        <input class="text-orange-500 border-gray-100 rounded form-checkbox dark:border-gray-800 focus:border-orange-300 focus:ring focus:ring-offset-0 focus:ring-orange-200 focus:ring-opacity-50 me-2" 
                                        type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
                                        <label class="form-checkbox-label text-slate-400" for="RememberMe">Remember</label>
                                    </div>
                                    @if (Route::has('password.request'))
                                        <p class="mb-0 text-slate-400"><a href="{{ route('password.request') }}" class="text-slate-400">Forgot password ?</a></p>
                                    @endif
                                </div>

                                <div class="mb-4">
                                    <input type="submit" class="inline-block w-full px-5 py-2 text-base tracking-wide text-center text-white align-middle duration-500 bg-orange-500 rounded-md cursor-pointer" value="Sign in">
                                </div>

                                <div class="text-center">
                                    <span class="text-slate-400 me-2">Don't have an account ?</span> <a href="{{ route('register') }}" class="inline-block font-bold text-black dark:text-white">Sign Up</a>
                                </div>
                            </div>
                        </form>

                        <div class="text-center">
                            <p class="mb-0 text-slate-400">© <script>document.write(new Date().getFullYear())</script> Global Ecommerce Arbitrage Store.</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section><!--end section -->

@endsection