package auth

templ RegisterForm() {
  <form method="post" action="/user/register" style="max-width:400px;margin:auto;">
    <h2>Registrieren</h2>
    <div class="mb-3">
      <label for="username" class="form-label">Benutzername</label>
      <input type="text" class="form-control" id="username" name="username" required>
    </div>
    <div class="mb-3">
      <label for="email" class="form-label">E-Mail</label>
      <input type="email" class="form-control" id="email" name="email" required>
    </div>
    <div class="mb-3">
      <label for="password" class="form-label">Passwort</label>
      <input type="password" class="form-control" id="password" name="password" required>
    </div>
    <button type="submit" class="btn btn-primary w-100">Registrieren</button>
  </form>
}

templ LoginForm() {
  <form method="post" action="/user/login" style="max-width:400px;margin:auto;">
    <h2>Anmelden</h2>
    <div class="mb-3">
      <label for="username" class="form-label">Benutzername</label>
      <input type="text" class="form-control" id="username" name="username" required>
    </div>
    <div class="mb-3">
      <label for="password" class="form-label">Passwort</label>
      <input type="password" class="form-control" id="password" name="password" required>
    </div>
    <button type="submit" class="btn btn-primary w-100">Anmelden</button>
  </form>
}