<div class="container text-center">
<div class="col-md-4"></div>

<div class="col-md-4 log_box" >

<div class="img-circle lock"><i class="fa fa-lock" aria-hidden="true"></i></div>




<h3 align="center">Administration Login</h3>

<p>Use a valid username and password to gain access to the administrator backend.</p>
<p class="clr_rd"><?php echo validation_errors(); echo $error; ?></p>

<div class="col-md-2 " ></div>
<div class="col-md-8 " >
<form name="form1" id="hk" method="post" action="<?php echo site_url("Admin/login/") ; ?>" >

    <label for="inputEmail" class="sr-only">User Name</label>
    <input name="username" class="form-control" placeholder="User Name" type="text" value="<?php echo set_value('username',''); ?>" required autofocus>
<br>
    <label for="inputPassword" class="sr-only">Password</label>
    <input name="password" class="form-control" placeholder="Password" type="password" required >
<br>


<!--    <label for="inputkey" class="sr-only">Key</label>
    <input name="key" class="form-control" placeholder="Key" type="password" required >
<br>
       --> 
            <?php
	$a = rand(1,9);
		$b = rand(1,9);
		$capimage = '<b>'.$a.'&nbsp; + &nbsp;'.$b.'&nbsp; = &nbsp;</b>' ;
		echo $capimage;
		$cap_result = $a + $b ;
		
	 ?>
    <input type="hidden" name="original" value="<?=$cap_result?>"  />
<input type="text" name="captext" size="10" maxlength="10" >

        <br /><br />
	<input name="login" class="btn btn-lg btn-primary btn-block btn2" value="Log In" type="submit">
  
</form>
</div>

</div>





</div>



<div class="col-md-4"></div>



</div>