<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login - Raw Materials</title>
    <link rel="stylesheet" href="/css/style.css">
    
    <link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#272737">
<link rel="apple-touch-icon" href="/images/icon-192.png">
</head>
<body class="login-body">
    <div class="login-container">
         <div><img alt="" src="/images/Quadexwhitefontlogo.png" style="height: 125px;" /></div>
        <% if (error) { %>
            <div class="alert"><%= error %></div>
        <% } %>
        <form action="/login" method="POST">
            <input type="text" name="username" placeholder="Username" required>
            <input type="password" name="password" placeholder="Password" required>
            <button type="submit">Login</button>
        </form>
    </div>
    <script>
  if ('serviceWorker' in navigator) {
    window.addEventListener('load', () => {
      navigator.serviceWorker.register('/sw.js')
        .then(reg => console.log('Service Worker registered'))
        .catch(err => console.log('Service Worker error:', err));
    });
  }
</script>
</body>
</html>