@extends($activeTemplate . 'layouts.app')

@section('panel')
    <main>
        <div class="account-section bg-img" data-background-image="{{ asset($activeTemplateTrue . 'images/account-bg.png') }}">
            @include('Template::user.auth.auth_sidebar')

            <div class="account-content">
                <form action="{{ route('user.login') }}" method="POST" class="account-form verify-gcaptcha">
                    @csrf
                    <div class="account-heading">
                        <a href="{{ route('home') }}" class="account-heading__logo">
                            <img class="logo-img" src="{{ siteLogo() }}" alt="Logo">
                        </a>
                        <h3 class="account-heading__title">@lang('Sign in')</h3>
                        <h5 class="account-heading__text">@lang('Enter your email and password to sign in.')</h5>
                    </div>

                    <div class="form-group">
                        <label class="form--label style-two">@lang('Email')</label>
                        <div class="input-wrapper">
                            <span class="input-wrapper__label-icon">
                                <i class="fa-regular fa-envelope"></i>
                            </span>
                            <input class="form--control md-style" type="email" name="email" value="{{ old('email') }}" required>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="password" class="form--label style-two">@lang('Password')</label>
                        <div class="input-wrapper">
                            <span class="input-wrapper__label-icon">
                                @include('admin.partials.svg.lock')
                            </span>
                            <input type="password" name="password" class="form--control md-style" required>
                            <span class="password-show-hide fa-regular fa-eye toggle-password fa-eye-slash" id="#password"></span>
                        </div>
                    </div>

                    <x-captcha />

                    <div class="flex-between mb-4 gap-2">
                        <div class="form--check">
                            <input class="form-check-input" type="checkbox" name="remember">
                            <label class="form-check-label fw-normal text--dark" for="remember">@lang('Keep me logged in')</label>
                        </div>
                        <p class="fs-14">@lang('Forgot your password? Reset it') <a href="{{ route('user.password.request') }}" class="text--base">@lang('here.')</a>
                        </p>
                    </div>

                    <div class="form-group">
                        <button type="submit" class="btn btn--base btn--md w-100">@lang('Sign In')</button>
                    </div>
                    <p class="mb-0 fs-14">@lang('Don\'t have an account?') <a href="{{ route('user.register') }}">@lang('Register')</a></p>
                </form>
            </div>
        </div>
    </main>
@endsection
