*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ── Login ─────────────────────────────────────────────── */
.card {
  max-width: 400px;
  margin: 100px auto;
  background: #fff;
  border-radius: 10px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
}

.card h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.75rem;
}

/* ── Form elements ─────────────────────────────────────── */
label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
}

input[type="text"],
input[type="password"] {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1.1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #111;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.65rem 1.5rem;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

button[type="submit"]:hover {
  background: #4338ca;
}

.btn-secondary {
  padding: 0.5rem 1.1rem;
  background: #e5e7eb;
  color: #374151;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: #d1d5db;
}

/* ── Alerts ────────────────────────────────────────────── */
.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.1rem;
  font-size: 0.875rem;
}

.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.1rem;
  font-size: 0.875rem;
}

/* ── Dashboard ─────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

header h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
}

/* ── Table ─────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

th {
  background: #f9fafb;
  padding: 0.65rem 1.1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #e5e7eb;
}

td {
  padding: 0.55rem 1.1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

td code {
  font-family: 'SFMono-Regular', 'Consolas', 'Courier New', monospace;
  font-size: 0.82rem;
  color: #6d28d9;
  background: #f5f3ff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

td input[type="text"] {
  width: 100%;
  padding: 0.38rem 0.6rem;
  margin-bottom: 0;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  font-size: 0.82rem;
  font-family: 'SFMono-Regular', 'Consolas', 'Courier New', monospace;
  color: #1a1a1a;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s;
}

td input[type="text"]:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
  background: #fff;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.actions button[type="submit"] {
  width: auto;
  padding: 0.65rem 2.25rem;
}
