<?php 
session_start();

	if(isset($_SESSION['usuario_autenticado'])){
		unset($GLOBALS['_SESSION']['nombre_usuario']);
		unset($GLOBALS['_SESSION']['usuario_autenticado']);
	}

 ?>

 <!DOCTYPE html>
 <html lang="en">
 <head>
 	<meta charset="UTF-8">
 	<title>Login</title>
	<link rel="stylesheet" href="css/style.css">
	<link rel="stylesheet" href="css/cardview.css">
	<link rel="stylesheet" href="bootstrap/4.0.0/css/bootstrap.min.css">
	<!-- Font Awesome JS -->
    <link rel="stylesheet" href="css/font-awesome/css/all.css">
    <link rel="shortcut icon" href="img/logo.ico" />  	
  	<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Source+Code+Pro%7CSource+Sans+Pro:n4,n6,n7" media="all">

	<script src="js/jquery/3.2.1/jquery.min.js"></script>
	<!-- Development version -->
	<script src="https://unpkg.com/@popperjs/core@2/dist/umd/popper.js"></script>
  	<script src="bootstrap/4.0.0/js/bootstrap.min.js"></script>
 </head>
 <body>
 	<br><br>
 	<div class="container">
	<div class="d-flex justify-content-center h-100">
		<div class="card">
			<div class="card-header">

				<h3><img src="img/logotext.png" height="20px;" alt=""> Ingresa</h3>
				<div class="d-flex justify-content-end social_icon">
				</div>
			</div>
			<div class="card-body">
				<form method="POST" action="authcontroller.php">
					<div class="input-group form-group">
						<div class="input-group-prepend">
							<span class="input-group-text"><i class="fas fa-user"></i></span>
						</div>
						<input type="text" class="form-control" placeholder="usuario" name="mail" required="">
						
					</div>
					<div class="input-group form-group">
						<div class="input-group-prepend">
							<span class="input-group-text"><i class="fas fa-key"></i></span>
						</div>
						<input type="password" class="form-control" placeholder="contraseña" name="password" required="">
					</div>
					<div class="row align-items-center remember">
						
					</div>
					<div class="form-group" align="center">
						<div>
							<input type="submit" value="Accesar" class="btn float-center login_btn" name="boton">
						</div>
					</div>
				</form>
			</div>
			<div class="card-footer">
			<?php 
				if(isset($_GET["action"])){
					if($_GET["action"]=="fail"){
			?>
				<div class="d-flex justify-content-center links"> <h3>Datos incorrectos</h3></div>
			<?php 
					}
				}
			 ?>
				<div class="d-flex justify-content-center">
					<a href="#">...</a>
				</div>
			</div>
		</div>
	</div>
</div>
 	
 </body>
 </html>