<?php
include_once __DIR__ . '/helpers/admin-common.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1, user-scalable=0">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>myoptician</title>
    <!--Favicon -->
    <link rel="shortcut icon" type="image/png" href="images/favicon-icon.png" />
   
    <!--Main Stylesheet-->
    <link rel="stylesheet" type="text/css" href="css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <link rel="stylesheet" type="text/css" href="css/responsive.css">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
	<style>
		.error-container {
			text-align: center;
        }
        p.error-text {
            margin-top: 20px;
            color: #d9534f;
        }

		.success-container {
			text-align: center;
        }
        p.success-text {
            margin-top: 20px;
            color: #8fdf82;
        }
		.message-container {
			text-align: center;
        }
        p.message-text {
            margin-top: 20px;
            color: #cb993d;
        }
	</style>
</head>

<body>

	<div class="login">
		<div class="sitecontainer">
			<?php if(isset($_GET['error']) && !empty($_GET['error'])) : ?>
				<div class="error-container">
					<p class="error-text"><?= $_GET['error'] ?></p>
				</div>
			<?php endif; ?>
			<?php if(isset($_GET['success']) && !empty($_GET['success'])) : ?>
				<div class="success-container">
					<p class="success-text"><?= $_GET['success'] ?></p>
				</div>
			<?php endif; ?>
			<?php if(isset($_GET['message']) && !empty($_GET['message'])) : ?>
				<div class="message-container">
					<p class="message-text"><?= $_GET['message'] ?></p>
				</div>
			<?php endif; ?>
			<div class="logininner">
				<h3>Login</h3>
				<div class="loginform">
					<form action="login.php" method="post">
					    <label>User Name</label>
					    <input type="text" name="username" required>
					    <label>Password</label>
					    <input type="password" name="password" required>
					    <button type="submit">login</button>
					</form>
				</div>
			</div>
		</div>
	</div>

	<script src="js/jquery.min.js"></script>
	<script src="js/bootstrap.min.js"></script>

	<?php include_once(__DIR__ . '/../footer.php'); ?>
  
</body>
</html>