Updated public/index.html with 144 additions
--- a/public/index.html
+++ b/public/index.html
@@ -1,0 +1,144 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Task Manager</title>
+    <style>
+        body {
+            font-family: Arial, sans-serif;
+            margin: 20px;
+            background-color: #f4f4f4;
+            color: #333;
+        }
+        .container {
+            max-width: 600px;
+            margin: 0 auto;
+            background: #fff;
+            padding: 20px;
+            border-radius: 8px;
+            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
+        }
+        h1, h2 {
+            color: #333;
+            text-align: center;
+        }
+        form {
+            display: flex;
+            flex-direction: column;
+            gap: 10px;
+            margin-bottom: 20px;
+        }
+        input[type="text"], input[type="password"] {
+            padding: 10px;
+            border: 1px solid #ddd;
+            border-radius: 4px;
+        }
+        button {
+            padding: 10px 15px;
+            border: none;
+            border-radius: 4px;
+            background-color: #007bff;
+            color: white;
+            cursor: pointer;
+            font-size: 16px;
+        }
+        button:hover {
+            background-color: #0056b3;
+        }
+        #auth-section {
+            margin-bottom: 30px;
+        }
+        #task-section {
+            display: none;
+        }
+        #task-list {
+            list-style: none;
+            padding: 0;
+        }
+        #task-list li {
+            background: #f9f9f9;
+            border: 1px solid #eee;
+            padding: 10px;
+            margin-bottom: 5px;
+            display: flex;
+            justify-content: space-between;
+            align-items: center;
+            border-radius: 4px;
+        }
+        #task-list li.completed {
+            text-decoration: line-through;
+            color: #888;
+        }
+        .task-actions button {
+            background-color: #dc3545;
+            margin-left: 5px;
+            padding: 5px 10px;
+            font-size: 14px;
+        }
+        .task-actions button.toggle-complete {
+            background-color: #28a745;
+        }
+        .task-actions button:hover {
+            opacity: 0.9;
+        }
+        .message {
+            padding: 10px;
+            margin-bottom: 15px;
+            border-radius: 4px;
+            text-align: center;
+        }
+        .message.success {
+            background-color: #d4edda;
+            color: #155724;
+            border-color: #c3e6cb;
+        }
+        .message.error {
+            background-color: #f8d7da;
+            color: #721c24;
+            border-color: #f5c6cb;
+        }
+        #logout-button {
+            background-color: #6c757d;
+            margin-top: 20px;
+        }
+        #logout-button:hover {
+            background-color: #5a6268;
+        }
+    </style>
+</head>
+<body>
+    <div class="container">
+        <h1>Task Manager</h1>
+
+        <div id="auth-section">
+            <h2>Register / Login</h2>
+            <div class="message" id="auth-message"></div>
+            <form id="register-form">
+                <input type="text" id="register-username" placeholder="Username" required>
+                <input type="password" id="register-password" placeholder="Password" required>
+                <button type="submit">Register</button>
+            </form>
+            <form id="login-form">
+                <input type="text" id="login-username" placeholder="Username" required>
+                <input type="password" id="login-password" placeholder="Password" required>
+                <button type="submit">Login</button>
+            </form>
+        </div>
+
+        <div id="task-section">
+            <h2>My Tasks</h2>
+            <div class="message" id="task-message"></div>
+            <form id="add-task-form">
+                <input type="text" id="new-task-title" placeholder="New Task Title" required>
+                <button type="submit">Add Task</button>
+            </form>
+            <ul id="task-list"></ul>
+            <button id="logout-button">Logout</button>
+        </div>
+    </div>
+
+    <script src="app.js"></script>
+</body>
+</html>
+