      <!-- **********************************************************************************************************************************************************
      MAIN CONTENT
      *********************************************************************************************************************************************************** -->
<div class="w3-container">
	<?php if($this->session->flashdata('login_failed')): ?>
	<?php echo '<p class="alert alert-success">'.$this->session->flashdata('login_failed').'</p>'; ?>
	<?php endif; ?>
</div>

	  <div id="login-page">
	  	<div class="container">

	  	<?php echo form_open('home/login',array('class' => 'form-login')); ?>
		        <h2 class="form-login-heading">sign in now</h2>
		        <div class="login-wrap">
					
					<?php echo form_input(['name'=>'username','class'=>'form-control','placeholder'=>'User ID','autofocus','value'=>set_value('username')]); ?>
		            <br>
					<?php echo form_password(['name'=>'password','placeholder'=>'Password','class'=>'form-control']); ?>
		            <label class="checkbox">
		                <span class="pull-right">
		                    <a data-toggle="modal" href="#myModal"> Forgot Password?</a>
		
		                </span>
		            </label>
		            <button class="btn btn-theme btn-block"  type="submit"><i class="fa fa-lock"></i> SIGN IN</button>
		<?php echo form_close(); ?>
		<?php echo validation_errors(); ?>




		            <hr>
		            
		            <div class="login-social-link centered">
		            	<p>or you can sign in via your social network</p>
		                <button class="btn btn-facebook" type="submit"><i class="fa fa-facebook"></i> Facebook</button>
		                <button class="btn btn-twitter" type="submit"><i class="fa fa-twitter"></i> Twitter</button>
		            </div>
					
		            <div class="registration">
		                Don't have an account yet?<br/>
		                <a class="" href="<?php echo base_url('home/new_register'); ?>">
		                    Create an account
		                </a>
		            </div>
		
		        </div>
				
		          <!-- Modal starts -->
				  	<?php echo form_open('home/retrive_password',array('class' => 'form-login')); ?>
		          	<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal" class="modal fade">
		              <div class="modal-dialog">
		                  <div class="modal-content">
		                      <div class="modal-header">
		                          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		                          <h4 class="modal-title">Forgot Password ?</h4>
		                      </div>
		                      <div class="modal-body">
		                          <p>Enter your e-mail address below to reset your password.</p>
		                          <input type="text" name="email" placeholder="Email" autocomplete="off" class="form-control placeholder-no-fix">
		
		                      </div>
		                      <div class="modal-footer">
		                          <button data-dismiss="modal" class="btn btn-default" type="button">Cancel</button>
		                          <button class="btn btn-theme" type="submit">Submit</button>
		                      </div>
		                  </div>
		              </div>
		          </div>
			    	<?php echo form_close(); ?>
					<?php echo validation_errors(); ?>
		          <!-- modal  ends-->
	  	
	  	</div>
	  </div>

