<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <title>Forgot Password • FinFlow</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"/>
  <link rel="stylesheet" href="/css/style.css"/> <!-- your main styles -->

  <style>
    /* ===== Base Reset ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Segoe UI", Roboto, sans-serif;
    }

    body.auth-body {
      background: #f5f7ff;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      padding: 1rem;
    }

    .auth-container {
      width: 100%;
      max-width: 400px;
    }

    .auth-card {
      background: #fff;
      padding: 2rem;
      border-radius: 1rem;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .auth-title {
      font-size: 1.8rem;
      font-weight: 700;
      color: #333;
    }

    .auth-subtitle {
      font-size: 1rem;
      color: #666;
      margin-bottom: 1rem;
    }

    form.auth-form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .form-input {
      width: 100%;
      padding: 0.8rem 1rem;
      border: 1px solid #ccc;
      border-radius: 0.6rem;
      font-size: 1rem;
      transition: border-color 0.2s ease;
    }

    .form-input:focus {
      border-color: orangered;
      outline: none;
    }

    .btn {
      cursor: pointer;
      padding: 0.9rem 1rem;
      border-radius: 0.6rem;
      border: none;
      font-size: 1rem;
      font-weight: 600;
      background: orangered;
      color: #fff;
      transition: 0.3s ease;
    }

    .btn:hover {
      background: orangered;
    }

    .auth-footnote {
      text-align: center;
      font-size: 0.9rem;
      color: #555;
    }

    .auth-footnote a {
      color: orangered;
      font-weight: 600;
      text-decoration: none;
    }

    .auth-footnote a:hover {
      text-decoration: underline;
    }

    @media (max-width: 480px) {
      .auth-card {
        padding: 1rem;
        border-radius: 0.8rem;
      }

      .auth-title {
        font-size: 1.5rem;
      }

      .form-input {
        font-size: 0.95rem;
        padding: 0.75rem 0.9rem;
      }

      .btn {
        font-size: 0.95rem;
        padding: 0.8rem;
      }
    }
  </style>
</head>
<body class="auth-body">
  <main class="auth-container">
    <section class="auth-card">
      <h1 class="auth-title">Forgot Password</h1>
      <p class="auth-subtitle">Enter your email to receive OTP</p>

      <%- include("./partials/messages") %>

      <form action="/forgot-password" method="POST" class="auth-form">
        <input class="form-input" type="email" name="email" placeholder="Enter your email" required />
        <button type="submit" class="btn w-100">Send OTP</button>
      </form>

      <p class="auth-footnote">
        Remembered your password? <a href="/signin">Sign in</a>
      </p>
    </section>
  </main>
</body>
</html>
