<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="Start your development with a Dashboard for Bootstrap 4.">
    <meta name="author" content="Creative Tim">
    <title>SPK. Pemilihan Jenis Makanan Balita Metode SAW</title>
    <!-- Favicon -->
    <link rel="icon" href="<?=base_url()?>assets/argon/img/brand/favicon.png" type="image/png">
    <!-- Fonts -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700">
    <!-- Icons -->
    <link rel="stylesheet" href="<?=base_url()?>assets/argon/vendor/nucleo/css/nucleo.css" type="text/css">
    <link rel="stylesheet" href="<?=base_url()?>assets/argon/vendor/@fortawesome/fontawesome-free/css/all.min.css"
        type="text/css">
    <!-- Argon CSS -->
    <link rel="stylesheet" href="<?=base_url()?>assets/argon/css/argon.css?v=1.1.0" type="text/css">
    <style>
    body {
        background-color: #0B3C1E;
        overflow: hidden;
        /* Menghilangkan scrollbar */
        margin: 0;
        /* Menghilangkan margin default */
        padding: 0;
        /* Menghilangkan padding default */
    }

    .imgg {
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
    }

    .col-md-6 {
        padding: 0;
    }

    .btn-success {
        background-color: #00B207;
    }
    </style>
</head>

<body style="background-color:#0B3C1E;">

    <!-- Main content -->
    <div class="main-content">
        <div class="row">
            <div class="col-md-6">

                <!-- Page content -->
                <div class="container mt-6">
                    <div class="row justify-content-center mr-2 ml-2">
                        <div class="col-md-8">
                            <div class="text-center text-muted mb-4">

                                <?= $this->session->flashdata('msg') ?>
                            </div>
                            <div class="text-center text-muted mb-5">
                                <h1 class="text-white">Sistem Pendukung Keputusan</h1>
                                <p class="text-lead text-white">
                                <h2 class="text-lead text-white">Pemilihan Jenis Makanan Balita Stunting
                                    Menggunakan
                                    Metode
                                    SAW</h2>
                                </p>
                            </div>
                            <form role="form" action="<?=base_url('login/cek')?>" method="POST">
                                <div class="form-group mb-3">
                                    <label for="" class="text-white">Email</label>
                                    <div class="input-group input-group-merge input-group-alternative">
                                        <div class="input-group-prepend">
                                            <span class="input-group-text"><i class="ni ni-email-83"></i></span>
                                        </div>
                                        <input class="form-control" placeholder="Email" type="email" required
                                            name="email" value="<?php
                                                                        if(isset($_COOKIE['email_temp'])) {echo $_COOKIE['email_temp'];} 
                                                                    ?>"
                                            <?php if(empty($_COOKIE['email_temp'])) {echo 'autofocus';}?>
                                            pattern="^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="" class="text-white">Password</label>
                                    <div class="input-group input-group-merge input-group-alternative">
                                        <div class="input-group-prepend">
                                            <span class="input-group-text"><i class="ni ni-lock-circle-open"></i></span>
                                        </div>
                                        <input class="form-control" placeholder="Password" type="password" required
                                            name="password">
                                    </div>
                                </div>
                                <div class="text-center text-white">
                                    <a class="text-center text-white" href="<?=base_url('lupapassword');?>">Lupa
                                        Password?</a>
                                </div>
                                <div class="text-right">
                                    <button type="submit" class="btn btn-success border-0">Login</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>
            <div class="col-md-6">
                <img src="<?=base_url()?>assets/img/img-hidangan.png" class="imgg" width="100%" alt="Responsive image">
            </div>
        </div>
    </div>
    <!-- Footer -->

    <!-- Argon Scripts -->
    <!-- Core -->
    <script src="<?=base_url()?>assets/argon/vendor/jquery/dist/jquery.min.js"></script>
    <script src="<?=base_url()?>assets/argon/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script src="<?=base_url()?>assets/argon/vendor/js-cookie/js.cookie.js"></script>
    <script src="<?=base_url()?>assets/argon/vendor/jquery.scrollbar/jquery.scrollbar.min.js"></script>
    <script src="<?=base_url()?>assets/argon/vendor/jquery-scroll-lock/dist/jquery-scrollLock.min.js"></script>
    <!-- Argon JS -->
    <script src="<?=base_url()?>assets/argon/js/argon.js?v=1.1.0"></script>
    <!-- Demo JS - remove this in your project -->
    <script src="<?=base_url()?>assets/argon/js/demo.min.js"></script>
</body>

</html>