<!doctype html>
<html lang="en">
<head>
        <!-- Required meta tags -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="noindex">
<meta name="googlebot" content="noindex">
        <!-- App favicon -->
        <link rel="shortcut icon" href="<?php echo base_url();?>adminassets/dist/img/favicon.png">
        <!--Global Styles(used by all pages)-->
        <link href="<?php echo base_url();?>adminassets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
        <link href="<?php echo base_url();?>adminassets/plugins/metisMenu/metisMenu.min.css" rel="stylesheet">
        <link href="<?php echo base_url();?>adminassets/plugins/fontawesome/css/all.min.css" rel="stylesheet">
        <link href="<?php echo base_url();?>adminassets/plugins/typicons/src/typicons.min.css" rel="stylesheet">
        <link href="<?php echo base_url();?>adminassets/plugins/themify-icons/themify-icons.min.css" rel="stylesheet">
        <!--Third party Styles(used by this page)--> 

        <!--Start Your Custom Style Now-->
        <link href="<?php echo base_url();?>adminassets/dist/css/style.css" rel="stylesheet">
    </head>
    <body class="bg-white">
        <div class="d-flex align-items-center justify-content-center text-center h-100vh">
            <div class="form-wrapper m-auto">
                <div class="form-container my-4">
                    <div class="register-logo text-center mb-4">
                        <img src="<?php echo base_url();?>assets/logo.png" width="200px" alt="">
                    </div>
                    <div class="panel" style="background:#f2fff5;">
                        <div class="panel-header text-center mb-3">
                            <h3 class="fs-24">Admin Login</h3>
                        </div>
						<?php echo $this->session->flashdata("msg");?>
						<form class="form-horizontal" action="<?php echo base_url();?>home/swadminlogin" method="post">
                            <div class="form-group">
                                <input type="text" class="form-control" name="username" required placeholder="Username">
                            </div>
                            <div class="form-group">
                                <input type="password" class="form-control" name="password" required placeholder="Password">
                            </div>
                            <div class="row">
                                <div class="col-md-2 col-2 text-center">
                                    <h3><?php echo $this->session->userdata("rand1");?></h3>
                                </div>
                                <div class="col-md-2 col-2 text-center">
                                    <h3>+</h3>
                                </div>
                                <div class="col-md-2 col-2  text-center">
                                    <h3><?php echo $this->session->userdata("rand2");?></h3>
                                </div>
                                <div class="col-md-2 col-2  text-center">
                                    <h3>=</h3>
                                </div>
                                <div class="col-md-4 col-4">
                                    <h3><input type="number" required name="sum" class="form-control"></h3>
                                </div>
                            </div>
                            <!--<div class="needac-forgetpass">
                            <a class="lfpass" href="#">Forget Password ?</a>
                            <a class="needacc" href="register.html">Need Account ?</a>
                            </div>-->
                            <button type="submit" class="btn btn-success btn-block">Sign in</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <!-- /.End of form wrapper -->
        <!--Global script(used by all pages)-->
        <script src="<?php echo base_url();?>adminassets/plugins/jQuery/jquery-3.4.1.min.js"></script>
        <script src="<?php echo base_url();?>adminassets/dist/js/popper.min.js"></script>
        <script src="<?php echo base_url();?>adminassets/plugins/bootstrap/js/bootstrap.min.js"></script>
        <script src="<?php echo base_url();?>adminassets/plugins/metisMenu/metisMenu.min.js"></script>
        <script src="<?php echo base_url();?>adminassets/plugins/perfect-scrollbar/dist/perfect-scrollbar.min.js"></script>
        <!-- Third Party Scripts(used by this page)-->

        <!--Page Active Scripts(used by this page)-->

        <!--Page Scripts(used by all page)-->
        <script src="<?php echo base_url();?>adminassets/dist/js/sidebar.js"></script>
    </body>
</html>