<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Secure YouTube Viewer</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            text-align: center;
        }
        #disclaimer, #login, #videoSection {
            display: none;
        }
        #disclaimer {
            display: block;
        }
        input {
            display: block;
            margin: 10px auto;
            padding: 8px;
            width: 80%;
            max-width: 300px;
        }
        button {
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 5px;
        }
        button:hover {
            background-color: #0056b3;
        }
        iframe {
            margin-top: 20px;
            width: 80%;
            max-width: 640px;
            height: 360px;
            border: none;
        }
        p {
            margin: 15px 0;
        }
    </style>
</head>
<body>
    <!-- Disclaimer Section -->
    <div id="disclaimer">
        <h2>Notice</h2>
        <p>
            This is a secure system. Unauthorized access or attempts to bypass this login system 
            will result in prosecution to the fullest extent of the law, including potential arrest 
            and criminal charges.
        </p>
        <p>
            If you are not authorized to use this system, please leave immediately.
        </p>
        <button onclick="acceptDisclaimer()">I Understand</button>
    </div>

    <!-- Login Section -->
    <div id="login">
        <h2>Login</h2>
        <input type="text" id="username" placeholder="Username" required>
        <input type="password" id="password" placeholder="Password" required>
        <button onclick="authenticate()">Login</button>
        <p id="errorMessage" style="color: red; display: none;">Invalid username or password!</p>
    </div>

    <!-- Video Section -->
    <div id="videoSection">
        <h2>Welcome, Admin!</h2>
        <p>Here is your video:</p>
        <iframe id="youtubeVideo" 
            src="https://www.youtube.com/embed/-PIOfxpK4Kk"
            allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
            allowfullscreen>
        </iframe>
    </div>

    <script>
        function acceptDisclaimer() {
            document.getElementById('disclaimer').style.display = 'none';
            document.getElementById('login').style.display = 'block';
        }

        function authenticate() {
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;

            if (username === 'Admin' && password === 'buggirl1966!@') {
                document.getElementById('login').style.display = 'none';
                document.getElementById('videoSection').style.display = 'block';
            } else {
                document.getElementById('errorMessage').style.display = 'block';
            }
        }
    </script>
</body>
</html>
