<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><?php echo $ahkweb['name'] ?> Password Recovery</title>
  <!-- Unicons -->
  <link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.0/css/line.css" />
  <!-- Google Font -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap">
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Poppins", sans-serif;
    }
    body {
      background-color: #006666;
      background-image: url('https://source.unsplash.com/random');
      background-size: cover;
      background-position: center;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .register-container {
      background-color: rgba(255, 255, 255, 0.9);
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      padding: 40px;
      max-width: 400px;
      width: 100%;
      position: relative;
      z-index: 1;
    }
    .register-logo {
      text-align: center;
      margin-bottom: 20px;
    }
    .register-logo a {
      color: #333;
      font-size: 24px;
      text-decoration: none;
    }
    .register-logo a:hover {
      color: #555;
    }
    .form-group {
      position: relative;
      margin-top: 30px;
      width: 100%;
      height: 40px;
    }
    .form-control {
      width: 100%;
      height: 100%;
      border: none;
      outline: none;
      padding: 0 30px;
      color: #333;
      transition: all 0.2s ease;
      border-bottom: 1.5px solid #aaaaaa;
      border-radius: 0;
    }
    .form-control:focus {
      border-color: #7d2ae8;
    }
    .register-btn {
      background: red;
      margin-top: 00px;
      width: 100%;
      padding: 10px 0;
      border-radius: 10px;
      border: none;
      color: #fff;
      cursor: pointer;
    }
    .register-btn:active {
      transform: scale(0.98);
    }
    .form-group i {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 20px;
      color: black;
    }
    .form-group i.email {
      left: 0;
    }
    .form-group i.password {
      left: 0;
    }
    .pw_hide {
      right: 0;
      font-size: 18px;
      cursor: pointer;
    }
    .form-group input:focus ~ i.email,
    .form-group input:focus ~ i.password {
      color: #7d2ae8;
    }
    .text-center a {
      color: #7d2ae8;
    }
    .text-center a:hover {
      text-decoration: underline;
    }
  </style>
            <script>
    document.addEventListener('DOMContentLoaded', function() {
        const body = document.querySelector('body');
        
        // Function to generate a random color
        function getRandomColor() {
            const letters = '0123456789ABCDEF';
            let color = '#';
            for (let i = 0; i < 6; i++) {
                color += letters[Math.floor(Math.random() * 16)];
            }
            return color;
        }

        // Change background color when the page loads
        body.style.background = `linear-gradient(to right, ${getRandomColor()}, ${getRandomColor()})`;
    });
</script>
</head>
<body>
  <div class="register-container">
    <div class="register-logo">
      <a href="index.php"><?php echo $ahkweb['name'] ?> Password Recovery</a>
    </div>
    <form action="recover.php" method="post">
      <div class="form-group">
        <input type="hidden" name="fsecret" value="ahkwebsolutions_reset">
        <input type="text" name="username" required class="form-control" placeholder="Email, Phone, or User ID">
        <i class="uil uil-user email"></i>
      </div>
      <br>
      <button type="submit" class="register-btn">Request an OTP</button>
    </form>
    <div class="text-center mt-3">
      <a href="#">Login</a>
    </div>
  </div>
</body>
</html>
