<!DOCTYPE html>
<html >
  <head>
    <meta charset="UTF-8">
    <title>Medical System Information Klinik BBMC</title>    
    <link rel="stylesheet" href="<?php echo base_url()?>media/css/login/css/style.css">
  </head>
  <body>
    <style type="text/css">
      .lupa a{color:#fff;}
    </style>     
    <div class="wrapper" style="background: #42c299">
      <div class="container">
        <h1 style="margin-top:-10px; font-size:30px">
          MSI BBMC<br>
          <p style="font-size:15px"> Medical System Information BBMC - Batu Bulan</p>
        </h1>
                
        <form action="<?=site_url('account/authentication')?>" method="POST" class="form" id="form">
          <?php if($this->session->flashdata('login_error')) { ?>
            <div style="margin-top:-20px; margin-bottom:5px;">username atau password salah</div>
          <?php } else if($this->session->flashdata('auth_error')) { ?>
            <div style="margin-top:-20px; margin-bottom:5px;">silahkan hubungi admin untuk mendapatkan hak akses</div>
          <?php } ?>         
          <input type="text" placeholder="Username"  name="username"  style="font-family: Segoe UI;" autocomplete="off">
          <input type="password" placeholder="Password"  name="password"  style="font-family: Segoe UI;">
          <button type="submit" id="login-button" style="font-family: Segoe UI;">Login</button>        
        </form>

        <a href="<?php echo site_url()?>/account/log_update" target="_Blank"  style="color:#fff; position:relative; z-index:999999; text-decoration:none">v<?=$this->Content_m->get_value('siak_re_data','id','8','value')?></a>
      </div>

      <ul class="bg-bubbles">
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
      </ul>

    </div>
  <script src='<?php echo base_url()?>media/css/login/js/jquery.min.js'></script>
  <script src="<?php echo base_url()?>media/css/login/js/index.js"></script>
  </body>
</html>


<script type="text/javascript">
  $('#login-button').click(function(){
      setTimeout(explode, 1200);
  });

  function explode(){
    document.getElementById("form").submit();
  }
</script>