@extends('layouts.app')

@section('content')
  <main class="main-content  mt-0">
    <section>
      <div class="page-header min-vh-100">
        <div class="container">
          <div class="row">
            <div class="col-xl-4 col-lg-5 col-md-7 d-flex flex-column mx-lg-0 mx-auto">
              <div class="card card-plain" style="border: none">
                <div class="card-header pb-0 text-start" style="border: none; background-color: unset;">
                  <h4 class="font-weight-bolder">
                    Reset your password
                  </h4>
                  <p class="mb-0">
                    Enter your email and please wait a few seconds
                  </p>
                </div>
                <div class="card-body">
                  <form role="form" method="post" action="{{ route('reset.perform') }}">
                    @csrf
                    @method('post')
                    <div class="flex flex-col mb-3">
                      <input type="email" name="email" class="form-control form-control-lg" placeholder="Email"
                        value="{{ old('email') }}" aria-label="Email">
                      @error('email')
                        <p class="text-danger text-xs pt-1">
                          {{ $message }}
                        </p>
                      @enderror
                    </div>
                    <div class="text-center">
                      <button type="submit" class="btn btn-lg btn-primary btn-lg w-100 mt-4 mb-0">Send Reset
                        Link
                      </button>
                    </div>
                  </form>
                </div>
                <div id="alert">
                  @include('components.alert')
                </div>
              </div>
            </div>
            <div
              class="col-6 d-lg-flex d-none h-100 my-auto pe-0 position-absolute top-0 end-0 text-center justify-content-center flex-column">
              <div
                class="position-relative bg-gradient-primary h-100 m-3 px-7 border-radius-lg d-flex flex-column justify-content-center overflow-hidden"
                style="background-image: url('https://images.unsplash.com/photo-1624969862644-791f3dc98927?q=100&w=2070');
                  background-size: cover;">
                <span class="mask bg-gradient-primary opacity-6"></span>
                <h4 class="mt-5 text-white font-weight-bolder position-relative">
                  Reset your password in this page
                </h4>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  </main>
@endsection
