<!DOCTYPE html>
<html>
<head>
    <title>Admin Login</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
    <style>
        body {
            background-color: #f5f5f5;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-image: url('/images/college.png');
            background-size: cover;
        }
        .box {  
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 20px;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        padding: 3rem;
        width: 30rem;
        text-align: center;
    }

    h1 {
        font-size: 4rem;
        font-weight: bold;
        margin-bottom: 2rem;
        color: black;
    }

    .form-control {
        border-radius: 10px;
        font-size: 1.2rem;
        padding: 1rem;
    }

    .btn-primary {
        background-color: black;
        border-color: #007bff;
        font-size: 1.2rem;
        padding: 1rem 3rem;
        border-radius: 10px;
        margin-top: 2rem;
    }

    .btn-primary:hover {
        background-color: #0069d9;
        border-color: #0062cc;
    }

    .error {
        color: red;
        margin-top: 1rem;
    }
    @media (max-width: 768px) {
    /* Adjust box width */
    .box {
        width: 90%;
    }

    /* Adjust font size for small screens */
    h1 {
        font-size: 3rem;
    }

    .form-control {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 0.5rem 2rem;
        margin-top: 1rem;
    }
}
</style>
</head>
<body>
    <div class="box">  
        <div class="container">
            <div class="text-center">
                <h1>Admin Login</h1>
                <% if (message && message.length > 0) { %>
                    <p class="error"><%= message[0] %></p>
                <% } %>
            </div>
            <form method="POST" action="/adminexcelredirect">
                <div class="form-control mb-3">
                    <input type="text" name="username" id="username" class="form-control" placeholder="Username">
                </div>
    
                <div class="form-control mb-3">
                    <input type="password" name="password" id="password" class="form-control" placeholder="Password">
                </div>
    
                <button type="submit" class="btn btn-primary">Login</button>
            </form>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script>

</body>
</html> 