<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login - BONSDORK</title>
    <style>
        body {
            background-color: #1a1a1a;
            color: #ffffff;
            font-family: 'Courier New', Courier, monospace;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
        }
        .logo {
            width: 200px; /* Ukuran logo */
            margin-bottom: 20px;
        }
        .welcome-text {
            font-size: 2rem;
            color: #ff6347;
            text-shadow: 0 0 10px #ff6347, 0 0 20px #ff6347, 0 0 30px #ff6347, 0 0 40px #b22222, 0 0 50px #b22222, 0 0 60px #b22222;
            margin-bottom: 20px;
        }
        .input-field {
            background-color: #333;
            color: #fff;
            border: 2px solid #444;
            border-radius: 5px;
            padding: 10px;
            width: 250px;
            outline: none;
            box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
            margin-bottom: 20px;
            font-size: 1rem;
        }
        .input-field:focus {
            border-color: #ff6347;
            box-shadow: 0 0 10px #ff6347;
        }
        .login-button {
            background-color: #333;
            color: #fff;
            border: none;
            border-radius: 5px;
            padding: 10px 20px;
            cursor: pointer;
            font-size: 1rem;
            box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
            transition: background-color 0.3s;
        }
        .login-button:hover {
            background-color: #ff6347;
        }
    </style>
</head>
<body>
    <img src="https://i.ibb.co.com/r32sxDy/img.png" alt="logo" class="logo">
    <div class="welcome-text">WELCOME TO BONSDORK</div>
    <form id="loginForm" onsubmit="return checkPassword()">
        <input type="password" id="password" class="input-field" placeholder="Enter password" required>
        <br>
        <button type="submit" class="login-button">Login</button>
    </form>

    <script>
        function checkPassword() {
            var password = document.getElementById('password').value;
            if (password === 'bonsdork10') {
                window.location.href = 'dork.html';
                return false; // Prevent form submission
            } else {
                alert('Incorrect password. Please try again.');
                return false; // Prevent form submission
            }
        }
    </script>
</body>
</html>