<div class="row justify-content-center">
    <div class="col-xl-5 col-lg-6 col-md-8">
        <div class="card o-hidden border-0 shadow-lg my-5">
            <div class="card-body p-5">

                <div class="text-center mb-4">
                    <h1 class="h4 text-gray-900">Registrasi Akun User</h1>
                </div>

                <?php if($this->session->flashdata('error')): ?>
                    <div class="alert alert-danger"><?= $this->session->flashdata('error'); ?></div>
                <?php endif; ?>

                <form method="post" action="<?= base_url('auth/register_process'); ?>">
                    <div class="form-group">
                        <input type="text" class="form-control" name="name" placeholder="Nama Lengkap" required>
                    </div>
                    <div class="form-group">
                        <input type="email" class="form-control" name="email" placeholder="Email" required>
                    </div>
                    <div class="form-group">
                        <input type="password" class="form-control" name="password" placeholder="Password" required>
                    </div>
                    <button type="submit" class="btn btn-success btn-block">Registrasi</button>
                </form>

                <hr>
                <div class="text-center">
                    <a class="small" href="<?= base_url('auth'); ?>">Sudah punya akun? Login!</a>
                </div>
            </div>
        </div>
    </div>
</div>
