<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="utf-8" />
    <title>Login || Admin Dashboard</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="Admin Dashboard" name="description" />
    <meta content="Decent Web Services LLP" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <!-- App favicon -->
    <link rel="shortcut icon" href="<?php echo base_url();?>/assets/images/favicon.ico">
    <link rel="stylesheet" href="<?=base_url('assets/login/');?>style.css">

</head>
<body>
<!-- partial:index.partial.html -->
<section>
  
  <div class="box">
    
    <div class="square" style="--i:0;"></div>
    <div class="square" style="--i:1;"></div>
    <div class="square" style="--i:2;"></div>
    <div class="square" style="--i:3;"></div>
    <div class="square" style="--i:4;"></div>
    <div class="square" style="--i:5;"></div>
    
   <div class="container"> 
    <div class="form"> 
      <h2>LOGIN</h2>
      
      <form action="<?= base_url().'master/login/authenticate'; ?>" name="loginForm" id="loginForm" method="post">
        <div class="inputBx">
          <input type="text" name="username" id="username" required="required">
          <span>Login</span>
          <img src="https://www.flaticon.com/svg/static/icons/svg/709/709699.svg" alt="user">
        </div>
        <div class="inputBx password">
          <input id="password-input" type="password" name="password" required="required">
          <span>Password</span>
          <a href="#" class="password-control" onclick="return show_hide_password(this);"></a>
          <img src="https://www.flaticon.com/svg/static/icons/svg/1828/1828471.svg" alt="lock">
        </div>
        <div class="inputBx">
          <input type="submit" value="Log in" > 
        </div>
        <div class="px-3 py-0 my-0">
            <?php 
            $message = $this->session->flashdata('msg');
            if (isset($message)) {
              echo "<div class='alert alert-danger'>".$message."</div>";
            }
            
            $success = $this->session->flashdata('success');
            if (isset($success)) {
              echo "<div class='alert alert-success'>".$success."</div>";
            }
          ?>
    </div>
      </form>
    </div>
  </div>
    
  </div>
</section>
<!-- partial -->
  <script  src="<?=base_url('assets/login/');?>script.js"></script>

</body>
</html>
