<?php
include_once "header.php";
?>
                <div class="col-lg-5 col-xl-5">
                    <div class="idx5-card">
                        <div class="idx5-header-icon idx5-stagger-1">
                            <i class="bi bi-box-arrow-in-right"></i>
                        </div>
                        <h2 class="idx5-title idx5-stagger-1"><?= __('front.login') ?></h2>
                        <p class="idx5-subtitle idx5-stagger-2"><?= __('front.Use_your_credentials_to_login_into_account') ?></p>

                        <form id="login-form" class="mt-3">
                            <div class="idx5-input-group form-floating mb-3 idx5-stagger-3">
                                <input required class="form-control idx5-input" name="username" id="idx5_username" placeholder="<?= __('front.username_email') ?>">
                                <label for="idx5_username"><i class="bi bi-envelope me-1"></i><?= __('front.username_email') ?></label>
                            </div>

                            <div class="idx5-input-group form-floating mb-3 idx5-stagger-3">
                                <input required type="password" class="form-control idx5-input" name="password" id="loginpassowrd" placeholder="<?= __('front.password') ?>">
                                <label for="loginpassowrd"><i class="bi bi-lock me-1"></i><?= __('front.password') ?></label>
                                <button type="button" class="toggle-password" tabindex="-1"><i class="bi bi-eye"></i></button>
                            </div>

                            <div class="d-flex align-items-center justify-content-end mb-3 idx5-stagger-4">
                                <a href="<?= base_url('forget-password') ?>" class="idx5-link"><?= __('front.forget_password') ?>?</a>
                            </div>

                            <?= render_recaptcha_html('affiliate_login') ?>

                            <div class="d-grid idx5-stagger-4">
                                <button class="btn idx5-btn-primary py-3" id="login_button"><?= __('front.login') ?></button>
                            </div>

                            <div id="login-status-msg" class="mt-2 idx5-stagger-5"></div>
                        </form>

                        <?php if(isset($store['registration_status']) && $store['registration_status']==0) {}
                        else if( ($vendor_marketstatus["marketvendorstatus"]==1 || $vendor_storestatus['storestatus']) && $store['registration_status']!=3 ) { ?>
                            <p class="idx5-signup-text text-center mt-3 idx5-stagger-5">
                                <?= __('front.dont_have_an_account_yet') ?>
                                <a href="<?= base_url('register') ?>"><?= __('front.sign_up') ?></a>
                            </p>
                        <?php } else if($store['registration_status']!=2){ ?>
                            <p class="idx5-signup-text text-center mt-3 idx5-stagger-5">
                                <?= __('front.dont_have_an_account_yet') ?>
                                <a href="<?= base_url('register') ?>"><?= __('front.sign_up') ?></a>
                            </p>
                        <?php } ?>

                        <div class="idx5-trust-footer text-center idx5-stagger-6">
                            <small><i class="bi bi-shield-check me-1"></i><?= __('front.fast') ?> &amp; <?= __('front.trusted') ?></small>
                        </div>
                    </div>
                </div>

                <div class="col-lg-5 col-xl-5 d-none d-lg-block idx5-description-pane">
                    <div class="idx5-description-inner idx5-stagger-2">
                        <h3><?= $setting['heading'] ?></h3>
                        <?= $setting['content'] ?>
                    </div>
                </div>

<?php
include_once "footer.php";
?>
