<!DOCTYPE html>
<html lang="en">

<head>
    <title>Login - Admin Dashboard</title>    
    @include('layouts.header')
    <link rel="stylesheet" href="{{ asset('theme/css/pages/auth.css') }}">
</head>

<body>
    <div id="auth">

        <div class="row h-100">
            <div class="col-lg-4 col-12">
                <div id="auth-left">
                    <div class="auth-logo">
                        <img src="{{ asset('img/logo_2.png') }}" alt="Logo">
                    </div>
                    <h3 class="auth-title">Ingresar con el email y clave proporcionados..</h3>
                    
                    <form method="POST" action="{{ route('login') }}">
                        @csrf
                        <div class="form-group position-relative has-icon-left mb-4">
                            <input id="email" name="email" type="email" class="form-control form-control-xl  @error('email') is-invalid @enderror"  value="{{ old('email') }}" required  placeholder="Username">
                            <div class="form-control-icon">
                                <i class="bi bi-person"></i>
                            </div>

                            @error('email')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                            @enderror

                        </div>
                        <div class="form-group position-relative has-icon-left mb-4">
                            <input id="password" name="password" type="password" class="form-control form-control-xl @error('password') is-invalid @enderror" placeholder="Password" required>
                            <div class="form-control-icon">
                                <i class="bi bi-shield-lock"></i>
                            </div>
                            

                            @error('password')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                            @enderror
                            
                        </div>
                        <button class="btn btn-primary btn-block btn-lg shadow-lg">Log in</button>
                    </form>
                    <div class="text-center mt-5 text-lg fs-4">
                        <p><a class="font-bold" href="{{ route('password.request') }}">Forgot password?</a>.</p>
                    </div>
                </div>
            </div>
            <div class="col-lg-8 d-none d-lg-block">
                <div id="auth-right-new" class="auth-right">
                <br /><br /><br /><br /><br /><br />
                    <img src="{{ asset('img/header.png') }}" />
                </div>
            </div>
        </div>
    </div>
</body>

</html>
