
<!DOCTYPE html>
<html lang="az">
<head>
  <meta charset="UTF-8">
  <title>MeTePanel</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">

  <style>
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background: radial-gradient(circle at top, #0f0f0f, #000000);
      color: #fff;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    header, footer {
      background: rgba(0, 0, 0, 0.3);
      padding: 15px 25px;
      text-align: center;
      color: #00ffe0;
      text-shadow: 0 0 6px #00ffe0;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    footer {
      margin-top: auto;
      border-top: 1px solid rgba(255,255,255,0.1);
    }

    main {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .login-container {
      background: rgba(255, 255, 255, 0.05);
      border: 2px solid rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 40px 30px;
      width: 100%;
      max-width: 420px;
      backdrop-filter: blur(12px);
      box-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
      animation: fadeIn 1s ease-in-out;
    }

    @keyframes fadeIn {
      0% { opacity: 0; transform: translateY(30px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    .login-container h2 {
      text-align: center;
      margin-bottom: 30px;
      font-size: 28px;
      color: #00ffe0;
      text-shadow: 0 0 8px #00ffe0;
    }

    .input-group {
      margin-bottom: 25px;
      position: relative;
    }

    .input-group label {
      display: flex;
      align-items: center;
      font-size: 15px;
      color: #ccc;
      margin-bottom: 6px;
    }

    .input-group label i {
      margin-right: 10px;
      color: #00ffe0;
      text-shadow: 0 0 6px #00ffe0;
    }

    .input-group input {
      width: 100%;
      padding: 12px 15px;
      border: none;
      border-radius: 12px;
      background-color: rgba(255,255,255,0.08);
      color: #fff;
      font-size: 15px;
      outline: none;
      transition: 0.3s;
      box-shadow: inset 0 0 5px rgba(0,255,255,0.3);
    }

    .input-group input:focus {
      background-color: rgba(255,255,255,0.15);
      border: 1px solid #00ffe0;
      box-shadow: 0 0 10px #00ffe0, inset 0 0 5px #00ffe0;
    }

    .login-btn {
      width: 100%;
      padding: 12px;
      background: linear-gradient(120deg, #00ffe0, #0080ff);
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      color: #000;
      cursor: pointer;
      transition: 0.3s ease;
      box-shadow: 0 0 10px #00ffe0, 0 0 20px #00ffe0;
    }

    .login-btn:hover {
      transform: scale(1.04);
      box-shadow: 0 0 20px #00ffe0, 0 0 30px #00ffe0;
    }

    .alert {
      margin-bottom: 15px;
      padding: 12px 16px;
      border-radius: 10px;
      font-size: 14px;
      animation: fadeIn 0.8s ease;
    }

    .alert.success {
      background-color: rgba(0, 255, 170, 0.2);
      border: 1px solid #00ffae;
      color: #00ffae;
      text-shadow: 0 0 4px #00ffae;
    }

    .alert.error {
      background-color: rgba(255, 0, 60, 0.15);
      border: 1px solid #ff4e75;
      color: #ff4e75;
      text-shadow: 0 0 4px #ff4e75;
    }

    .extra-links {
      margin-top: 15px;
      text-align: center;
      font-size: 14px;
    }

    .extra-links a {
      color: #00ffe0;
      text-decoration: none;
      transition: 0.3s;
    }

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

<header>
  <h1>MeTePanel V1</h1>
</header>

<main>
  <div class="login-container">
    <h2>İdarəetmə Paneli</h2>

    <?php if ($success): ?>
      <div class="alert success"><?= htmlspecialchars($successText) ?></div>
    <?php endif; ?>

    <?php if ($error): ?>
      <div class="alert error"><?= htmlspecialchars($errorText) ?></div>
    <?php endif; ?>

    <form name="login-form" action="#" method="post">
      <div class="input-group">
        <label for="username"><i class="fas fa-user"></i> İstifadəçi Adı:</label>
        <input type="text" id="username" name="username" placeholder="Adınızı yazın" required>
      </div>

      <div class="input-group">
        <label for="password"><i class="fas fa-lock"></i> Şifrə:</label>
        <input type="password" id="password" name="password" placeholder="Şifrənizi yazın" required>
      </div>

      <div class="input-group">
        <label for="googlecode"><i class="fas fa-shield-alt"></i> Google Auth Kodu ( Aktiv deyilsə boş burax )</label>
        <input type="number" id="googlecode" name="googlecode" placeholder="2FA kodunu yazın">
      </div>

      <button type="submit" class="login-btn">Daxil ol</button>
    </form>

    <div class="extra-links">
      <p><a href="../">Ana Səhifə</a></p>
    </div>
  </div>
</main>

<footer>
  <p>&copy; 2025 MeTePanel. Bütün hüquqlar qorunur.</p>
</footer>

</body>
</html>