:root {
  --bg: #0b1220;
  --brand: #0a66ff;
  --brand-600: #0853cc;
  --brand-700: #073ea0;
  --surface: #ffffff;
  --ink: #0b1220;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html,body { height:100%; }
body {
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:#f3f6fb;
}

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.flex { display:flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; gap: 10px; }

/* Header */
.site-header {
  position: sticky; top:0; z-index: 10;
  background:linear-gradient(180deg, #A1A8B4 0%, #A1A8B4 100%);
  color:#fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.site-header .brand {
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:#fff;
  font-weight:700; font-size: 18px; letter-spacing:.2px;
}
.logo {
  height: 32px;          /* pick your size (28–40px works well) */
  width: auto;           /* preserve aspect ratio */
  display: block;
  object-fit: contain;   /* safety for odd aspect ratios */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}

.nav a { color:#454551; text-decoration:none; margin-left: 18px; font-weight: 600; }
.nav a:hover { color:#fff; }

.btn {
  display:inline-flex; gap:8px; align-items:center;
  border:none; border-radius:10px;
  padding:10px 14px;
  background: var(--brand);
  color:#fff; text-decoration:none;
  box-shadow: var(--shadow);
  cursor:pointer; font-weight:600;
}
.btn:hover { background: var(--brand-600); }
.btn-ghost { background: transparent; border:1px solid rgba(255,255,255,.25); color:#fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-small { padding:8px 12px; border-radius: 8px; font-size: 14px; }

/* Page */
.page { padding: 28px 0 40px; }
.card {
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.grid { display:grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }

/* Typography */
h1 { font-size: 28px; margin: 0 0 10px; letter-spacing: .3px; }
h2 { font-size: 20px; margin: 22px 0 10px; }
p { color: var(--ink); }
small { color: var(--muted); }

/* Tables */
.table { width:100%; border-collapse: collapse; background: var(--surface); border:1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.table thead th { background:#f8fafc; color:#111827; text-align:left; padding:12px 14px; font-size: 14px; border-bottom:1px solid var(--border); }
.table tbody td { padding:12px 14px; border-bottom:1px solid #f1f5f9; font-size: 14px; }
.table tbody tr:hover { background:#f9fbff; }

/* Forms */
label { display:block; font-weight:600; margin: 14px 0 6px; }
input, select, button {
  width:100%; padding:10px 12px; border:1px solid var(--border);
  border-radius: 10px; font-size: 14px;
}
button { width:auto; }
form { background: var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow: var(--shadow); padding:18px; margin-top: 10px; }

/* Footer */
.site-footer { padding: 26px 0; border-top:1px solid #e5e7eb; background:#fff; }

/* Utilities */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.badge {
  display:inline-block; padding:4px 8px; border-radius:999px;
  background:#eef2ff; color:#3730a3;
  font-weight:600; font-size:12px;
}

/* Public page docs */
.container .doc-list { list-style: none; padding:0; margin:0; }
.container .doc-list li {
  padding: 10px 12px; border:1px solid var(--border);
  background:#fff; border-radius:12px; margin-bottom:10px;
  display:flex; justify-content:space-between; align-items:center;
}
.container .doc-list a { text-decoration:none; color: var(--brand-700); font-weight:600; }

/* Thicker header */
.site-header .container {
  padding-top: 14px;   /* was ~0 */
  padding-bottom: 14px;
}

/* Make links feel chunkier/clickable */
.site-header .nav a {
  display: inline-block;
  padding: 10px 0;     /* adds vertical height */
}

/* Slightly larger logo to match the thicker bar */
.logo {
  height: 36px;        /* try 36–40px to taste */
  width: auto;
}

/* Auth layout tweaks */
.auth-card {
  max-width: 420px;      /* adjust to taste (e.g., 360–480) */
  margin: 32px auto;     /* centers the card horizontally */
}

.error-box {
  background: #ffe8e8;
  color: #7f1d1d;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
}

/* ---------- Auth page ---------- */
.auth-wrap {
  min-height: calc(100vh - 120px); /* fill viewport minus header/footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.auth-card {
  width: 100%;
  max-width: 490px;             /* tighten width */
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px 22px;
}

.auth-logo {
  display: block;
  height: 38px;                 /* feel free to tweak */
  width: auto;
  margin: 6px auto 8px;
  object-fit: contain;
}

.auth-title {
  margin: 0;
  text-align: center;
  font-size: 22px;
  letter-spacing: .2px;
}

.auth-sub {
  margin: 6px 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.auth-form label {
  font-weight: 600;
  margin: 12px 0 6px;
}

.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  transition: box-shadow .15s, border-color .15s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10,102,255,.15);
}

.password-field {
  position: relative;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
}

.alert.error {
  background: #fff2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.w-full { width: 100%; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--brand-600); }
