<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Register - Sentiment Scraper</title>
  <link rel="stylesheet" href="/css/style.css">
</head>
<body>
  <div class="auth-container">
    <div class="auth-card">
      <h1 class="text-center">Create Account</h1>
      <p class="text-center">Join Sentiment Scraper</p>

      <% if (error) { %> <div class="alert alert-error"><%= error %></div> <% } %>

      <form action="/register" method="POST">
        <div class="form-group">
          <label>Username</label>
          <input type="text" name="username" required autofocus>
        </div>
        <div class="form-group">
          <label>Password</label>
          <input type="password" name="password" required>
        </div>
        <div class="form-group">
          <label>Confirm Password</label>
          <input type="password" name="confirm_password" required>
        </div>
        <button type="submit" class="btn">Register</button>
      </form>
      <div class="text-center mt-4">
        <a href="/login" style="color: var(--accent); text-decoration: none; font-size: 14px;">Already have an account? Login</a>
      </div>
    </div>
  </div>
</body>
</html>
