* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

/* Auth Page */
.auth-container {
  max-width: 400px;
  margin: 80px auto;
  background: #1e293b;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.auth-container h1 { text-align: center; margin-bottom: 24px; font-size: 28px; }

.tabs { display: flex; margin-bottom: 24px; border-radius: 8px; overflow: hidden; }
.tab { flex: 1; padding: 10px; background: #334155; border: none; color: #94a3b8; cursor: pointer; font-size: 15px; }
.tab.active { background: #6366f1; color: white; }

input, textarea, select {
  width: 100%; padding: 12px; margin-bottom: 12px;
  background: #0f172a; border: 1px solid #334155;
  border-radius: 8px; color: #e2e8f0; font-size: 14px;
}

button {
  width: 100%; padding: 12px; background: #6366f1;
  border: none; border-radius: 8px; color: white;
  font-size: 15px; cursor: pointer; transition: background 0.2s;
}
button:hover { background: #4f46e5; }

#auth-message { margin-top: 12px; text-align: center; color: #f87171; }

/* Dashboard */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px; background: #1e293b;
  border-bottom: 1px solid #334155;
}
nav button { width: auto; padding: 8px 20px; }

.dashboard {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 24px; padding: 32px; max-width: 1100px; margin: 0 auto;
}

.card { background: #1e293b; border-radius: 16px; padding: 24px; }
.task-form h3, .task-list h3 { margin-bottom: 16px; font-size: 18px; }

.task-list { min-height: 400px; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-bar button { width: auto; padding: 6px 16px; background: #334155; font-size: 13px; }
.filter-bar button.active { background: #6366f1; }

.task-card {
  background: #0f172a; border-radius: 12px; padding: 16px;
  margin-bottom: 12px; border-left: 4px solid #6366f1;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.task-card.done { opacity: 0.5; border-left-color: #22c55e; }
.task-card.high { border-left-color: #ef4444; }
.task-card.medium { border-left-color: #f59e0b; }
.task-card.low { border-left-color: #22c55e; }

.task-info h4 { font-size: 16px; margin-bottom: 4px; }
.task-info p { font-size: 13px; color: #94a3b8; }
.task-meta { font-size: 12px; color: #64748b; margin-top: 6px; }

.task-actions { display: flex; gap: 8px; }
.task-actions button { width: auto; padding: 6px 12px; font-size: 12px; }
.btn-done { background: #22c55e; }
.btn-delete { background: #ef4444; }