@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">Forgot Password</h3>
                        <form method="POST" action="{{ route('password.email') }}">
                            @csrf

                            <fieldset class="p-4">

                                @if (session('status'))
                                    <div class="alert alert-success" role="alert">
                                        {{ session('status') }}
                                    </div>
                                @endif

                                <input class="form-control mb-3 @error('email') is-invalid @enderror" type="text" placeholder="Registered Email" id="email" name="email" value="{{ old('email') }}" required>
                                @error('email')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror

                                <p class="mb-0 d-block small">Enter your registered email and we will send a reset link</p>

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

                                <p class="mt-3 d-block text-right">Remember your password, <a class="text-primary" href="{{ route('login') }}">Back to login</a></p>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
@endsection
