<?php
session_start();

// Include your functions and configuration files
require 'config/function.php';

?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="login.css">
    <link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
    <link rel="icon" type="image/png" href="assets/img/favicon.png">
    <title>Welcome to iDBMS</title>

    <!-- Fonts and icons -->
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" />
    <link href="admin/assets/css/nucleo-icons.css" rel="stylesheet" />
    <link href="admin/assets/css/nucleo-svg.css" rel="stylesheet" />

    <!-- Font Awesome Icons -->
    <script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
    <link href="admin/assets/css/nucleo-svg.css" rel="stylesheet" />

    <!-- CSS Files -->
    <link id="pagestyle" href="admin/assets/css/soft-ui-dashboard.css?v=1.0.7" rel="stylesheet" />
</head>

<body>
    <div class="login-body">
        <div class="wrapper">
            <?= alertMessage(); ?>
            <form action="process_login.php" method="POST">
                <img src="12.png" class="logo">
                <h1>Welcome to iDBMS</h1>
                <div class="input-box">
                    <input type="email" placeholder="Enter Email" name="email" required>
                    <i class='bx bx-user-circle'></i>
                </div>
                <div class="input-box">
                    <input type="password" placeholder="Enter Password" name="password" required>
                    <i class='bx bx-lock-alt'></i>
                </div>
                <button type="submit" name="loginBtn" class="btn btn-primary w-100">Login</button>
            </form>
        </div>
    </div>
</body>

</html>