<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Password Protected</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: black;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .container {
            text-align: center;
        }
        input[type="password"] {
            padding: 10px;
            margin-top: 10px;
            border: 1px solid white;
            background-color: black;
            color: white;
        }
        button {
            padding: 10px 20px;
            margin-top: 10px;
            border: 1px solid white;
            background-color: black;
            color: white;
            cursor: pointer;
        }
        button:hover {
            background-color: white;
            color: black;
        }
        .message {
            margin-top: 20px;
            font-size: 1.2em;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Enter Password</h1>
        <input type="password" id="password" placeholder="Password">
        <button onclick="checkPassword()">Submit</button>
        <div id="message" class="message"></div>
    </div>

    <script>
        function checkPassword() {
            const correctPassword = "secret123"; // Change this to your desired password
            const userInput = document.getElementById("password").value;
            const message = document.getElementById("message");

            if (userInput === correctPassword) {
                message.innerHTML = '<a href="https://example.com" style="color: white;">link here</a>';
            } else {
                message.innerHTML = "Incorrect password. Try again.";
            }
        }
    </script>
</body>
</html>