<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Forgot Password - Authentication System</title>
  <link rel="stylesheet" href="/css/style.css">
</head>
<body>
  <div class="container">
    <div class="card">
      <div class="card-header">
        <h1>Reset Password</h1>
        <p>Enter your email to receive a reset link</p>
      </div>

      <% if (message) { %>
        <div class="message <%= message.includes('error') || message.includes('not found') ? 'error' : 'info' %>">
          <%= message %>
        </div>
      <% } %>

      <form action="/forgot-password" method="POST">
        <div class="form-group">
          <label for="email">Email Address</label>
          <input 
            id="email" 
            type="email" 
            name="email" 
            placeholder="john@example.com"
            required
          >
          <small style="color: #999; display: block; margin-top: 5px;">
            We'll send a password reset link to this email
          </small>
        </div>

        <button type="submit" class="btn btn-primary">Send Reset Link</button>
      </form>

      <div class="text-center">
        Remember your password? <a href="/login">Login here</a> <br>
        Don't have an account? <a href="/register">Register here</a>
      </div>
    </div>
  </div>
</body>
</html>
