<div>
    <div class="auth-bg d-flex min-vh-100 justify-content-center align-items-center">
        <div class="row g-0 justify-content-center w-100 m-xxl-5 px-xxl-4 m-3">
            <div class="col-xl-4 col-lg-5 col-md-6">
                <div class="card overflow-hidden text-center h-100 p-xxl-4 p-3 mb-0">
                    @include('auth.layouts.header')

                    <h3 class="fw-semibold mb-2">Login your account</h3>

                    <p class="text-muted mb-4">Enter your email address or account number, along with your password, to
                        securely access your account.</p>

                    <form wire:submit.prevent="login" class="text-start mb-3">
                        <div class="mb-3">
                            <label class="form-label" for="email">Email</label>
                            <input type="text" wire:model.defer="email"
                                class="form-control @error('email') is-invalid @enderror" placeholder="Enter your email"
                                autocomplete="email" required>
                            @error('email')
                                <span class="invalid-feedback">{{ $message }}</span>
                            @enderror
                        </div>

                        <div class="mb-3">
                            <label class="form-label" for="password">Password</label>
                            <input type="password" wire:model.defer="password"
                                class="form-control @error('password') is-invalid @enderror"
                                placeholder="Enter your password" autocomplete="current-password" required>
                            @error('password')
                                <span class="invalid-feedback">{{ $message }}</span>
                            @enderror
                        </div>

                        <div class="d-flex justify-content-between mb-3">
                            <div class="form-check">
                                <input type="checkbox" class="form-check-input" id="remember_me">
                                <label class="form-check-label" for="remember_me" name="remember">Remember me</label>
                            </div>

                            <a href="{{ route('password.request') }}"
                                class="text-muted border-bottom border-dashed">Forgot
                                Password?</a>
                        </div>

                        <div class="d-grid mt-3">
                            <button type="submit" class="btn btn-primary">
                                <span wire:loading.remove>Login</span>
                                <span wire:loading>Processing...</span>
                            </button>
                        </div>
                    </form>

                    <p class="text-danger fs-14 mb-4">Don't have an account? <a href="{{ route('register') }}"
                            class="fw-semibold text-dark ms-1">Sign Up !</a></p>

                    @include('auth.layouts.footer')
                </div>
            </div>
        </div>
    </div>
</div>
