@extends('master')

@section('content')
    <section class="login py-5 border-top-1">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-lg-5 col-md-8 align-item-center">
                    <div class="border">
                        <h3 class="bg-gray p-4">Welcome</h3>
                        <form action="{{ route('login') }}" method="POST">
                            @csrf
                            <fieldset class="p-4">
                                <input class="form-control mb-3 @error('email') is-invalid @enderror" type="text" placeholder="Email" name="email" value="{{ old('email') }}" required>
                                @error('email')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror

                                <input class="form-control mb-3 @error('password') is-invalid @enderror" name="password" type="password" placeholder="Password" required>
                                @error('password')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror

                                <p class="mb-0 d-block small">
                                    Forgot Password ?
                                    @if (Route::has('password.request'))
                                        <a class="text-primary" href="{{ route('password.request') }}">Click Here</a>
                                    @endif
                                </p>

                                <div class="text-right">
                                    <button type="submit" class="btn btn-primary font-weight-bold mt-3">Log in</button>
                                </div>

                                <p class="mt-3 d-block text-right">New User, <a class="text-primary" href="{{ route('register') }}">Register Here</a></p>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
@endsection
