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

<div class="container idx1-page-wrapper">
    <div class="row justify-content-center">
        <div class="col-md-7 col-lg-6 col-xl-5">
            <div class="idx1-card fade-in-up">

                <!-- Card Header -->
                <div class="text-center mb-4 idx1-stagger-1">
                    <div class="idx1-header-icon">
                        <i class="bi bi-person-plus-fill"></i>
                    </div>
                    <h3 class="idx1-card-title"><?= __('front.create_account') ?></h3>
                    <p class="idx1-card-subtitle"><?= __('front.join_us_get_started') ?></p>
                </div>

                <!-- Nav Pills -->
                <ul class="nav nav-pills idx1-nav-pills justify-content-center mb-4 idx1-stagger-2" id="pills-tab" role="tablist">
                    <li class="nav-item flex-fill">
                        <a class="nav-link" href="<?= base_url() ?>">
                            <i class="bi bi-box-arrow-in-right me-1"></i><?= __('front.login') ?>
                        </a>
                    </li>
                    <li class="nav-item flex-fill">
                        <a class="nav-link active" href="<?= base_url('register') ?>">
                            <i class="bi bi-person-plus me-1"></i><?= __('front.register') ?>
                        </a>
                    </li>
                </ul>

                <!-- Info Banner -->
                <div class="idx1-info-banner mb-4 idx1-stagger-3">
                    <div class="d-flex align-items-start">
                        <i class="bi bi-info-circle-fill me-3 fs-5 flex-shrink-0"></i>
                        <div>
                            <h6 class="fw-bold mb-1"><?= __('front.getting_started') ?></h6>
                            <p class="mb-0 small"><?= __('front.enter_your_information_to_setup_a_new_account') ?></p>
                        </div>
                    </div>
                </div>

                <!-- Registration Form (dynamic builder) -->
                <div class="registration-form-container idx1-stagger-4">
                    <?= $register_fomm ?>
                </div>

                <!-- Trust Footer -->
                <div class="idx1-card-footer text-center mt-4 idx1-stagger-5">
                    <small>
                        <i class="bi bi-shield-check me-1"></i><?= __('front.your_information_secure') ?>
                    </small>
                </div>

            </div>
        </div>
    </div>
</div>

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