<?php
require_once 'autoload.php';

$uni = new university_controller;
$info = $uni->index();

?>
<!doctype html>
<html lang="en" class="remember-theme">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>SERS - Login</title>
<meta name="description" content="Students Examinations Registration System">
<meta name="author" content="Bwire Mashauri">
<meta name="robots" content="index, follow">
<link rel="shortcut icon" href="storage/images/misc/<?php echo $info['icon']; ?>">
<link rel="stylesheet" id="css-main" href="assets/css/main.css">
<?php echo $info['theme'] !== '0' ? '<link type="text/css" rel="stylesheet" id="css-theme" href="assets/css/themes/'.$info['theme'].'.css">' : '' ; ?>
<link href="assets/js/plugins/sweetalert2/sweetalert2.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="page-loader" class="show"></div>

<div id="page-container">

<main id="main-container">

<div class="bg-image" >

<div class="row g-0 justify-content-center bg-primary-dark-op">
<div class="hero-static col-sm-8 col-md-6 col-xl-3 d-flex align-items-center p-2 px-sm-0">
<div class="block block-transparent block-rounded w-100 mb-0 overflow-hidden">
<div class="block-content block-content-full px-lg-5 px-xl-6 py-4 py-md-5 py-lg-6 bg-body-extra-light">

<div class="text-center">
<img src="storage/images/misc/<?php echo $info['logo']; ?>" height="130" alt="School Logo">
<h5 class="font-size-10 mt-3">Students Examinations Registration System (SERS)</h5>
<p class="text-muted login_paragraph">Enter your credentials to login</p>
</div>
<form autocomplete="off" class="app_frm" action="routes/auth" method="POST">
<div class="mb-2">
<div class="input-group input-group-lg">
<input type="email" class="form-control" required name="login-email" placeholder="Enter your email address">
<span class="input-group-text">
<i class="fa fa-envelope"></i>
</span>
</div>
</div>
<div class="mb-1">
<div class="input-group input-group-lg">
<input type="password" class="form-control" required name="login-password" placeholder="Enter your login password">
<span class="input-group-text">
<i class="fa fa-lock"></i>
</span>
</div>
</div>
<div class="d-sm-flex justify-content-sm-between align-items-sm-center text-center text-sm-start mb-2">
<div class="fw-semibold fs-sm py-1">
<a href="forgot_pw">Forgot Password?</a>
</div>
</div>
<div class="text-center mb-4">
<button type="submit" class="btn btn-hero btn-primary w-100 app_btn">Login</button>
</div>
<?= $waf->csrf_field('auth.php', 600) ?>
</form>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<script src="assets/js/main.js"></script>
<script src="assets/js/lib/jquery.min.js"></script>
<script src="assets/js/forms.js"></script>
<script src="assets/js/plugins/sweetalert2/sweetalert2.min.js"></script>
<?php require_once('includes/check_reply.php'); ?>
</body>
</html>
