<!-- Content -->

<div class="authentication-wrapper authentication-cover authentication-bg">
    <div class="authentication-inner row">
        <!-- /Left Text -->
        <div class="d-none d-lg-flex col-lg-7 p-0">
            <div class="auth-cover-bg auth-cover-bg-color d-flex justify-content-center align-items-center">
                <img
                        src="<?=site_url('themes/vuexy/img/illustrations/auth-forgot-password-illustration-light.png')?>"
                        alt="auth-forgot-password-cover"
                        class="img-fluid my-5 auth-illustration"
                        data-app-light-img="illustrations/auth-forgot-password-illustration-light.png"
                        data-app-dark-img="illustrations/auth-forgot-password-illustration-dark.png"
                />

                <img
                        src="<?=site_url('themes/vuexy/img/illustrations/bg-shape-image-light.png'); ?>"
                        alt="auth-forgot-password-cover"
                        class="platform-bg"
                        data-app-light-img="illustrations/bg-shape-image-light.png"
                        data-app-dark-img="illustrations/bg-shape-image-dark.png"
                />
            </div>
        </div>
        <!-- /Left Text -->

        <!-- Forgot Password -->
        <div class="d-flex col-12 col-lg-5 align-items-center p-sm-5 p-4">
            <div class="w-px-400 mx-auto">
                <!-- Logo -->
                <div class="app-brand mb-4">
                    <a href="index.html" class="app-brand-link gap-2">
                 <span class="app-brand-logo">
                  <img src="<?=site_url('themes/vuexy/img/branding/logo.png')?>"
                </span>
                    </a>
                </div>
                <!-- /Logo -->
                <h3 class="mb-1 fw-bold"><?= lang("App.login_title_forgot_password") ?> 🔒</h3>
                <p class="mb-4">Enter your email and we'll send you instructions to reset your password</p>
                <?= formAlert() ?>
                <form id="sendForm" class="mb-3" action="<?=site_url("integration/reset_password")?>" method="post">
                    <?= csrf_field() ?>
                    <div class="mb-3">
                        <label for="email" class="form-label"><?= lang("App.login_email") ?></label>
                        <input
                                type="email"
                                class="form-control"
                                id="email"
                                name="email"
                                placeholder="<?= lang("App.login_email_ph") ?>"
                                autofocus
                        />
                    </div>
                    <?php
                    // TODO IMN remove recaptcha options?
                    if($settings['captcha_recovery']??false): ?>
                        <?php if($settings['captcha_gateway'] == 'recaptcha'): ?>
                            <div class="text-center mt-2">
                                <div class="g-recaptcha" style="display: inline-block" data-sitekey="<?=$settings['captcha_site_key']??''?>"></div>
                            </div>
                        <?php endif; ?>
                        <?php if($settings['captcha_gateway'] == 'hcaptcha'): ?>
                            <div class="text-center mt-2">
                                <div class="h-captcha" style="display: inline-block" data-sitekey="<?=$settings['captcha_site_key']??''?>"></div>
                            </div>
                        <?php endif; ?>
                    <?php endif; ?>
                    <button class="btn btn-primary d-grid w-100"><?= lang("App.login_request") ?></button>
                </form>
                <div class="text-center">
                    <a href="<?=site_url("login")?>" class="d-flex align-items-center justify-content-center">
                        <i class="ti ti-chevron-left scaleX-n1-rtl"></i>
                        <?= lang("App.login_come_back") ?>
                    </a>
                </div>
            </div>
        </div>
        <!-- /Forgot Password -->
    </div>
</div>

<!-- / Content -->