:root {
  --bg: #0f172a;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --danger: #dc2626;
  --success: #16a34a;
  --border: #e5e7eb;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.card {
  background: var(--panel);
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  padding: 2rem;
}
.card.wide { max-width: 960px; }
h1 {
  margin: 0 0 .25rem;
  font-size: 1.5rem;
}
.subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: .95rem;
}
form { display: flex; flex-direction: column; gap: .9rem; }
label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}
input[type=text], input[type=email], input[type=password] {
  font: inherit;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  color: var(--text);
}
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
button {
  font: inherit;
  font-weight: 600;
  padding: .7rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}
button:hover { background: var(--primary-hover); }
button.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
button.ghost:hover { background: #f3f4f6; }
button.danger { background: var(--danger); }
button.success { background: var(--success); }
button[disabled] { opacity: .6; cursor: not-allowed; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: .85rem; }
.alert {
  padding: .65rem .8rem;
  border-radius: 8px;
  font-size: .9rem;
  display: none;
}
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.success { background: #dcfce7; color: #166534; }
.alert.info { background: #dbeafe; color: #1e40af; }
.alert.show { display: block; }
.links {
  margin-top: 1rem;
  text-align: center;
  font-size: .9rem;
}
.links a { color: var(--primary); text-decoration: none; }
.links a:hover { text-decoration: underline; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-top: 1rem;
}
th, td {
  padding: .6rem .5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.badge.pending  { background: #fef3c7; color: #92400e; }
.badge.approved { background: #dcfce7; color: #166534; }
.badge.rejected { background: #fee2e2; color: #991b1b; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .5rem;
}
