<?php

require_once("config/conexion.php");

if(isset($_POST["enviar"]) and $_POST["enviar"]=="si"){
    require_once("models/Colab.php");
    $usuario = new Usuario();
    $usuario -> login();

}
?>

<!DOCTYPE html>
<html lang="es">
<head>
	<meta charset="utf-8">
	<title>Acceso | Colaborador</title>
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
	<meta content="" name="description">
	<meta content="" name="author">
	
	<!-- ================== BEGIN BASE CSS STYLE ================== -->
	<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
	<link href="assets\css\default\app.min.css" rel="stylesheet">
	<!-- ================== END BASE CSS STYLE ================== -->
</head>
<body class="pace-top">
	<!-- begin #page-loader -->
	<div id="page-loader" class="fade show"><span class="spinner"></span></div>
	<!-- end #page-loader -->
	
	<!-- begin #page-container -->
	<div id="page-container" class="fade">
		<!-- begin login -->
		<div class="login login-with-news-feed">
			<!-- begin news-feed -->
			<div class="news-feed">
				<div class="news-image" style="background-image: url(assets/img/login-bg/login-bg-11.jpeg)"></div>
				
			</div>
			<!-- end news-feed -->
			<!-- begin right-content -->
			<div class="right-content">
				<!-- begin login-header -->
				<div class="login-header">
					<div class="brand">
						<span class="logo"></span> <b>Acceso Colaborador</b>
						<small>Ingrese correo y contraseña</small>
					</div>
					<div class="icon">
						<i class="fa fa-sign-in-alt"></i>
					</div>
				</div>
				<!-- end login-header -->
				<!-- begin login-content -->
				<div class="login-content">
					<form action="" method="POST" class="margin-bottom-0">
						<div class="form-group m-b-15">
							<input type="text" id="email_colab" name="email_colab" class="form-control form-control-lg" placeholder="Correo" required="">
						</div>
						<div class="form-group m-b-15">
							<input type="password" id="pass_colab" name="pass_colab" class="form-control form-control-lg" placeholder="Contraseña" required="">
						</div>
						
						<div class="login-buttons">
                            <input type="hidden" name="enviar" value="si">
							<button type="submit"  class="btn btn-success btn-block btn-lg">Ingresar</button>
						</div>
						
						<hr>
						<p class="text-center text-grey-darker mb-0">
							&copy; BenitezWeisser 2025
						</p>
					</form>
				</div>
				<!-- end login-content -->
			</div>
			<!-- end right-container -->
		</div>
		
	</div>
	
	<script src="assets\js\app.min.js"></script>
	<script src="assets\js\theme\default.min.js"></script>
	<!-- ================== END BASE JS ================== -->

</body>
</html>