<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">

    <title>login Here</title>

    <style>
        .auth-section{
            position: relative;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
        }
        .auth-body{
            position: absolute;
            width: 30%;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            background: #f5f5f5;
            padding: 30px;
        }
    </style>
  </head>
  <body>



    <section class="auth-section">
        <div class="auth-body">
            @if ($errors->any())
            <div class="alert alert-danger">
                <ul>
                    @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
            @endif
            @if( session()->has('login_failed') )
            <div class="alert alert-danger">
                <ul>
                    <li>{{ session()->get('login_failed') }}</li>
                </ul>
            </div>
            @endif
            @if( session()->has('reset') )
            <div class="alert alert-success">
                <ul>
                    <li>{{ session()->get('reset') }}</li>
                </ul>
            </div>
            @endif
            <h2 class="text-center">Login Here</h2>
            <form action="{{ route('login') }}" method="post">
                @csrf
                <div class="form-group">
                    <label>Email</label>
                    <input type="email" class="form-control" placeholder="Email Address" name="email">
                </div>
                <div class="form-group">
                    <label>Password</label>
                    <input type="password" class="form-control" name="password">
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-success" style="margin-top: 15px">Login</button>
                </div>
            </form>
            <a href="{{ route('register.view') }}">Register Here</a> <br>
            <a href="{{ route('get.email') }}">Forget Password?</a>
        </div>
    </section>


    <!-- Optional JavaScript; choose one of the two! -->
    <!-- Option 1: Bootstrap Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>

    <!-- Option 2: Separate Popper and Bootstrap JS -->
    <!--
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js" integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js" integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj" crossorigin="anonymous"></script>
    -->
  </body>
</html>