<?php 
include_once('header.php'); 

if(!empty($_POST['email_id']))
$pass=student_login();
?>

<!-- START SECTION TOP -->
	<section class="section-top">
		<div class="container">
			<div class="col-lg-10 offset-lg-1 text-center">
				<div class="section-top-title wow fadeInRight" data-wow-duration="1s" data-wow-delay="0.3s" data-wow-offset="0">
					<h1>Login Page</h1>
					<ul>
						<li><a href="index.html">Home</a></li>
						<li> / Login Page</li>
					</ul>
				</div><!-- //.HERO-TEXT -->
			</div><!--- END COL -->
		</div><!--- END CONTAINER -->
	</section>	
	<!-- END SECTION TOP -->
 		<?php
		  if(!empty($_GET['fail']))
		  {
		  ?>
          	<div class="alert alert-danger w-50 container mt-4" align="center"><strong style="color:black"> <centrer> Invalid Login Details </strong> </center> </div>
            <?php
				}
			?>
	<!-- START LOGIN -->
	<section class="login_register section-padding">
		<div class="container">
			<div class="row">
            	 <form method="post" action="<?php $_SERVER['PHP_SELF']; ?>" id="form1" enctype="multipart/form-data" onSubmit="return validate_login();">				
				<div class="col-lg-6 offset-lg-3 col-xs-12">
					<div class="login">
						<h4 class="login_register_title">Already a member? Sign in:</h4>
						<div class="form-group">
							<label for="">Email Address</label> <div class="err"></div>
							<input type="email" id="email_id" class="form-control" name="email_id">
						</div>
						<div class="form-group">
							<label for="">Password</label>  <div class="err"></div>
							<input type="password" id="password" class="form-control" name="password" >
						</div>
						<div class="form-group col-lg-12">
							<button class="btn_one" type="submit" name="submit">login</button>
						</div>
						<p>Don't have an account? <a href="register.php">Register Now</a></p>
					</div>
				</div><!--- END COL -->	
                </form>
			</div><!--- END ROW -->
		</div><!--- END CONTAINER -->
	</section>
	<!-- END LOGIN -->

<?php include_once('footer.php'); ?>