<?php defined('BASEPATH')or exit('No Direct Access is Allowed');?>
<style>
button.social-signin {
margin-top:2px;
   margin-bottom:0px;
    width:100%;
    height: 36px;
    border: none;
    border-radius: 2px;
    color: #FFF;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: 0.2s ease;
    cursor: pointer;
}
button.social-signin.google {
    background: #DD4B39;
}
button.social-signin:hover, button.social-signin:focus {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: 0.2s ease;
}

.mar_teacher{
      margin-top: 15px
}

</style>
 <div class="services-login1">
<div class="container student-logins">


<?php if($error=$this->session->flashdata('login_failed')): ?>
<div class="row">
  <div class="col-lg-12">
        <div class="alert alert-dismissible alert-danger">
          <?php echo $error;?>  <!-- <div class="status alert alert-success"></div> -->
        </div>
    </div>
</div>
<?php endif;?>

<?php if ($this->session->flashdata('success') == TRUE): ?>
  <div class="alert alert-success"><?php echo $this->session->flashdata('success'); ?></div>
<?php endif; ?>
<?php if ($this->session->flashdata('danger') == TRUE): ?>
  <div class="alert alert-danger alert-dismissible"><?php echo $this->session->flashdata('danger'); ?></div>
<?php endif; ?>

	  <div class="reg1">
          <h3 class="reg1x">Student Login</h3>
      </div>
		<div class="loginx agileits">
			<!-- <form action="#" method="post"> -->
			<?=form_open('student/signin')?>
				<label class="email-box">Email</label>
				<?php echo form_error('email','<p class="text-danger">','</p>'); ?>
				<?=form_input('email',set_value('email'),array('class'=>'form-control user','placeholder'=>'Email Address'));?>
				<!-- <input type="text" class="user" placeholder="Email" required=""> -->
        <label class="email-box" >Password</label>
          <?php echo form_error('password','<p class="text-danger">','</p>'); ?>
      <div class="input-group" id="show_hide_password">
        <?php  echo form_password('password','',array('class'=>'form-control pass','id'=>'','placeholder'=>'Password','maxlength'=>'15'));?>

     <div class="input-group-addon">
       <a href=""><i class="fa fa-eye-slash" aria-hidden="true"></i></a>
     </div>
   </div>
    <div class="mar_teacher">
			<ul>
				<li>
					<input type="checkbox" id="brand1" value="">
					<label for="brand1"><span></span>Remember me</label>
				</li>
			</ul>

			<a href="<?=site_url('student/password/forget');?>" style="float:right;">Forgot password?</a>
    </div>
			<div class="row">
				  <div class="text-center Login-ins">
					<!-- <button type="button" id="submit" name="submit" class="btn btn-primary btn btn-default  send-btns logins-btn btn-block login-f">Sign In</button> -->
				  <!-- <button type="button" id="submit" name="submit" class="btn btn-primary btn btn-default  send-btns logins-btn">Sign In</button> -->
        			<?=form_submit('Login','Login','class="btn btn-primary btn btn-default  send-btns logins-btn btn-block login-f"')?>
        			<?php echo form_close();?>
				  </div>
				</div>

			<?php /*?>
		  <div class="login-facebook">
			<div class="reg-or agileits w3layouts">

			<h3>Or Login with</h3>
			</div>
			<div class="reg agileits w3layouts">

    			<ul class="social-icons">
     				<li class="login-top"><a class="g" href="<?php echo $gplus_login;?>"> </a></li>
     				<!-- <li class="login-top"><a class="li" href="<?php echo site_url('student/lnk/signin');?>"> </a></li>-->

     				<!--  <li class="login-top"><a class="fa" href="#"> </a></li>
     				<li class="login-top"><a class="tw" href="#"> </a></li>
    				<li class="login-top"><a class="li" href="#"> </a></li>-->
    				<!-- <li class="login-top"><a class="in" href="<?php echo site_url('student/insta/signin');?>"> </a></li>
     				<li class="login-top"><a class="fa" href="<?php echo site_url('student/fb/signin');?>"> </a></li>
     				<li class="login-top"><a class="tw" href="<?php echo site_url('student/twitter/signin');?>"> </a></li>-->

     			</ul>

			</div>
			</div>
			<?php */ ?>


			<div>
			<div class="reg agileits w3layouts">

			<h3 style="margin-top:11px;">Not a member?</h3>
			</div>
			<div class="reg agileits w3layouts">
			<a class="popup-with-zoom-anim hvr-underline-from-left reg_heres" href="<?php echo site_url('student/signup');?>">Register Here</a>
			</div>
			<div class="clear"></div>
			</div>
			<div class="">
	       <button class="social-signin google" id="glogin">Log in with Google+</button>

			</div>


			</div>
		</div>
	</div>

	<script type="text/javascript">
        document.getElementById("glogin").onclick = function () {
            location.href = "<?php echo $gplus_login;?>";
        };
    </script>
