<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport" />
    <title>Login &mdash; KUA WAY BUNGUR</title>
    <link rel="shortcut icon" href="logo.png" type="image/x-icon" />
    <!-- General CSS Files -->
    <link rel="stylesheet" href="<?= base_url() ?>/node_modules/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?= base_url() ?>/node_modules/@fortawesome/fontawesome-free/css/all.min.css">


    <!-- Template CSS -->
    <link rel="stylesheet" href="<?= base_url() ?>/assets/css/style.css">
    <link rel="stylesheet" href="<?= base_url() ?>/assets/css/components.css">
</head>

<body>
    <div id="app">
        <section class="section">
            <div class="container mt-5">
                <div class="row">
                    <div
                        class="col-12 col-sm-8 offset-sm-2 col-md-6 offset-md-3 col-lg-6 offset-lg-3 col-xl-4 offset-xl-4">
                        <div class="login-brand text-info">
                            <h1>KUA</h1>
                            <h1>WAY BUNGUR</h1>

                            <!--<img src="logo.png" alt="logo" width="100" class="shadow-light rounded-circle" />-->
                        </div>
                        <?php if (session()->getFlashdata('error')) : ?>
                        <div class="alert alert-danger alert-dismissible show fade">
                            <div class="alert-body">
                                <button class="close" data-dismiss="alert">X</button>
                                <b>Error !</b>
                                <?= session()->getFlashdata('error') ?>
                            </div>
                        </div>
                        <?php endif; ?>
                        <div class="card card-info">
                            <div class="card-header">
                                <h4 class="text-info">Login</h4>
                            </div>

                            <div class="card-body">
                                <form method="POST" action="login/authenticate" class="needs-validation" novalidate="">
                                    <?= csrf_field() ?>
                                    <div class="form-group">
                                        <label for="email">Email</label>
                                        <input id="email" type="email" class="form-control" name="email"
                                            value="<?= old('email') ?>" tabindex="1" required autofocus />
                                        <div class="invalid-feedback text-danger">Masukan email anda</div>
                                    </div>

                                    <div class="form-group">
                                        <div class="d-block">
                                            <label for="password" class="control-label">Password</label>
                                        </div>
                                        <input id="password" type="password" class="form-control" name="password"
                                            tabindex="2" required />
                                        <div class="invalid-feedback text-danger">Masukan password anda</div>
                                    </div>
                                    <div class="form-group">
                                        <button type="submit" name="login" class="btn btn-info btn-lg btn-block"
                                            tabindex="3">
                                            Login
                                        </button>
                                    </div>
                                </form>
                            </div>
                        </div>

                        <div class="simple-footer text-secondary">Copyright &copy; <?= date('Y') ?> KANTOR URUSAN AGAMA
                            WAY BUNGUR</div>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <!-- General JS Scripts -->
    <script src="<?= base_url() ?>/node_modules/jquery/dist/jquery.min.js"></script>
    <script src="<?= base_url() ?>/node_modules/bootstrap/dist/js/bootstrap.min.js">
    </script>
    <script src="<?= base_url() ?>/node_modules/nicescroll/dist/jquery.nicescroll.min.js"></script>
    <script src="<?= base_url() ?>/assets/js/stisla.js"></script>



    <!-- JS Libraies -->

    <!-- Template JS File -->
    <script src="<?= base_url() ?>/assets/js/scripts.js"></script>
    <script src="<?= base_url() ?>/assets/js/custom.js"></script>

    <!-- Page Specific JS File -->
</body>

</html>