<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>MD_CODER_X</title>
  <style>
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Poppins', sans-serif;
    }

    body {
      overflow: hidden;
      background: black;
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      flex-direction: column;
      position: relative;
    }

    canvas {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 0;
    }

    .container {
      z-index: 2;
      text-align: center;
      background: rgba(0, 0, 0, 0.7);
      padding: 25px 20px;
      border-radius: 12px;
      width: 340px;
      box-shadow: 0 0 25px rgba(0, 255, 0, 0.3);
    }

    .logo {
      width: 120px;
      height: auto;
      margin-bottom: 15px;
      border-radius: 10px;
    }

    .subtitle {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 22px;
    }

    .input-group {
      text-align: left;
      margin-bottom: 14px;
    }

    .input-group label {
      font-size: 15px;
      margin-bottom: 6px;
      display: block;
      color: #fff;
    }

    .input-group input {
      width: 100%;
      padding: 11px 14px;
      border-radius: 8px;
      border: none;
      outline: none;
      font-size: 15px;
      color: #333;
    }

    .btn {
      width: 100%;
      padding: 11px;
      border: none;
      border-radius: 8px;
      background-color: #28a745;
      color: white;
      font-size: 17px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 8px;
      transition: 0.3s;
    }

    .btn:hover {
      background-color: #218838;
    }

    .purchase {
      margin-top: 18px;
      font-size: 14.5px;
    }

    .telegram {
      display: inline-block;
      margin-top: 10px;
    }

    .telegram img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      transition: transform 0.3s ease;
    }

    .telegram img:hover {
      transform: scale(1.1);
    }
  </style>
</head>
<body>
  <!-- Matrix Background -->
  <canvas id="matrix"></canvas>

  <!-- Login Box -->
  <div class="container">
    <img src="assets/raj365-logo.jpg" alt="RAJ365 Logo" class="logo">

    <div class="subtitle">MD CODER X</div>

    <form action="maulyikarisalu.php" method="post">
      <div class="input-group">
        <label>Username</label>
        <input type="text" name="username" placeholder="Enter your username" required />
      </div>
      <div class="input-group">
        <label>Password</label>
        <input type="password" name="password" placeholder="Enter your password" required />
      </div>
      <button type="submit" class="btn">Sign In</button>
    </form>

    <div class="purchase">
      <p>WANT TO PURCHASE WEBSITE?</p>
      <a class="telegram" href="https://t.me/CASINOSCRIPTSELL01" target="_blank">
        <img src="https://upload.wikimedia.org/wikipedia/commons/8/82/Telegram_logo.svg" alt="Telegram Logo" />
      </a>
    </div>
  </div>

  <!-- 💚 Green Matrix Effect Script -->
  <script>
    const canvas = document.getElementById("matrix");
    const ctx = canvas.getContext("2d");

    canvas.height = window.innerHeight;
    canvas.width = window.innerWidth;

    const letters = "01";
    const fontSize = 14;
    const columns = canvas.width / fontSize;
    const drops = Array(Math.floor(columns)).fill(1);

    function draw() {
      ctx.fillStyle = "rgba(0, 0, 0, 0.1)";
      ctx.fillRect(0, 0, canvas.width, canvas.height);

      ctx.fillStyle = "#00ff66"; // 💚 Neon Green
      ctx.font = fontSize + "px monospace";

      for (let i = 0; i < drops.length; i++) {
        const text = letters.charAt(Math.floor(Math.random() * letters.length));
        ctx.fillText(text, i * fontSize, drops[i] * fontSize);

        if (drops[i] * fontSize > canvas.height && Math.random() > 0.975) {
          drops[i] = 0;
        }
        drops[i]++;
      }
    }

    setInterval(draw, 35);

    window.addEventListener("resize", () => {
      canvas.height = window.innerHeight;
      canvas.width = window.innerWidth;
    });
  </script>
</body>
</html>