:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --green: #10b981;
  --purple: #7c3aed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent 35%),
    linear-gradient(315deg, rgba(124, 58, 237, 0.12), transparent 40%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card,
.card,
.created {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 30px;
}

.eyebrow {
  margin: 0;
  color: #059669;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  font: inherit;
}

input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

button,
.logout {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--purple));
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.alert {
  padding: 12px;
  border-radius: 12px;
  color: #991b1b;
  background: #fee2e2;
  font-weight: 800;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}

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

.header-actions {
  display: flex;
  gap: 10px;
}

.card,
.created {
  padding: 22px;
  margin-bottom: 20px;
}

.created {
  color: #065f46;
  background: #ecfdf5;
  font-weight: 850;
}

.create-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.table-wrap {
  overflow: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #5b21b6;
  background: #ede9fe;
  font-size: 12px;
  font-weight: 900;
}
