<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="<?=base_url('assets/style.css')?>">

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <title>Admin Login</title>
</head>
<body>
    <div class="col-md-6 mx-auto mt-5">
        <div class="loginDiv py-5 bg-white p-3 border-12">
            <h3 class="text-center">Login Here !</h3><br>
			                
                 <?php 
  if($this->session->flashdata("msg")!='')  
  { 
  ?> 
         <div class="alert alert-success" style="max-width: 100%;"> 
            <strong>Success!</strong> <?php echo $this->session->flashdata("msg");?> 
        </div> 
  <?php 
  }  
  if($this->session->flashdata("error")!='')  
  { 
  ?> 
         <div class="alert alert-danger" style="max-width: 100%;;"> 
            <strong>Error!</strong> <?php echo $this->session->flashdata("error");?>
        </div> 
  <?php 
  } 
  ?>
  
   <script>
                    window.setTimeout(function() {
                    $(".alert").fadeTo(500, 0).slideUp(500, function(){
                    $(this).remove(); 
                    });
                    }, 3500);
               </script> 
            <div class="edit-profile col-md-8 mx-auto">
			 <form method="POST" action="<?php echo base_url(); ?>Login/login_admin">
                <input type="text" placeholder="Enter Email" name="user_id" class="form-control border-12"><br>
                <input type="text" placeholder="Enter Password" name="password" class="form-control border-12">
                <div class="text-center">
                    <button id="send-Otp" class="DarkBluBtn mt-3 w-50">Login</button>
                </div>
               
                </form>
            </div>
        </div>
    </div>
</body>
</html>