<?php 
session_start();
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login Page</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
    .container-fluid {
        background-image: url("dist/img/photo1.png");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 100vh;
        width: 100%;
    }

    .card {
        margin-top: 25vh;

        border: none;
    }

    @media (max-width: 767px) {
        body {
            background-size: 100% auto;
            background-attachment: fixed;
        }

        .card {
            margin-top: 15vh;
        }
    }
    </style>
</head>

<body>
    <div class="container-fluid">
        <div class="row justify-content-center ">
            <!-- <div class="col-md-6 d-none d-md-block">
                <img src="dist/img/photo1.png" alt="Login Image" class="img-fluid">
            </div> -->
            <div class="col-md-4">
                <div class="card ">
                    <div class="card-body ">

                        <h3 class="card-title text-center fw-bold ">Login</h3>

                        <form action="logincode.php" method="post">
                            <div class="mb-3">
                                <label for="username" class="form-label  fw-bold">Username:</label>
                                <input type="text" class="form-control" id="username" name="username" required >
                            </div>
                            <div class="mb-3">
                                <label for="password" class="form-label fw-bold">Password:</label>
                                <input type="password" class="form-control"  id="password" name="password" required>
                            </div>
                            <div class="text-center">
                                <button type="submit" class="btn btn-dark text-red btn-block">Login</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <!-- Bootstrap JS Bundle with Popper.js -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>

</html>