<?php $this->load->view('template/header'); ?>

<div class="container">
    <div class="card my-5 text-dark bg-light mb-3">
        <div class="card-header">Login</div>
        <div class="card-body">
            <div class="row justify-content-center my-4">
                <div class="col-md-4">
                    <h4 class="text-center mb-3">LOGIN</h4>
                    <?= $this->session->flashdata('pesan'); ?>
                    <?= $this->session->flashdata('pesan2'); ?>
                    <?= $this->session->flashdata('error'); ?>
                    <form action="<?= base_url('auth/login') ?>" method="post">
                        <div class="mb-3">
                            <input type="text" class="form-control" id="username" name="username" value="<?= set_value('username') ?>" placeholder="Username" required autofocus>
                        </div>
                        <div class="mb-3">
                            <input type="password" class="form-control" id="password" name="password" placeholder="Password" required>
                        </div>
                        <div class="d-grid">
                            <button type="submit" class="btn btn-success bg-custom">Login</button>
                             <p></p><a href="<?= base_url('Auth/lupapassword') ?>">Lupa Password ?</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<?php $this->load->view('template/js'); ?>
<?php $this->load->view('template/footer'); ?>