/* Verifier Portal – single stylesheet, no external resources. */

:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --text: #1b2533;
  --muted: #56647a;
  --border: #d5dde8;
  --primary: #0b5cad;
  --primary-dark: #08447f;
  --header: #0d2440;
  --ok: #0e7a5e;
  --ok-bg: #e3f4ee;
  --run: #8a5a00;
  --run-bg: #fff3d6;
  --fail: #a42a1e;
  --fail-bg: #fde8e5;
  --queued: #3c4a5e;
  --queued-bg: #e8edf4;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }

:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Login */
.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(160deg, #0d2440 0%, #123a66 60%, #0b5cad 100%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 14px;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.login-card .logo { display: flex; justify-content: center; margin-bottom: .75rem; }
.login-card .logo svg { width: 56px; height: 56px; }
.login-card h1 {
  font-size: 1.35rem;
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--header);
}

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field input[type="text"],
.field input[type="password"],
.field input[type="file"] {
  width: 100%;
  padding: .65rem .75rem;
  font: inherit;
  border: 1px solid #b8c4d4;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.field input:focus { border-color: var(--primary); outline: 3px solid rgba(11, 92, 173, .25); outline-offset: 0; }
.hint { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: .7rem 1.2rem;
  border-radius: 8px;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-block { width: 100%; }
.btn-link {
  background: none;
  color: #dce6f2;
  border: 1px solid rgba(255, 255, 255, .4);
  padding: .4rem .8rem;
  font-size: .9rem;
}
.btn-link:hover { background: rgba(255, 255, 255, .1); }

.notice {
  margin: 1.25rem 0 0;
  padding: .8rem .9rem;
  font-size: .87rem;
  color: #5a4300;
  background: #fff6e0;
  border: 1px solid #e6c46e;
  border-radius: 8px;
}
.login-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .88rem;
}
.login-footer a { color: #fff; }
.login-card .back { text-align: center; font-size: .9rem; margin: 1rem 0 0; }

/* Dashboard */
.topbar {
  background: var(--header);
  color: #fff;
}
.topbar-inner, .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.topbar .brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.topbar .brand svg { width: 30px; height: 30px; }
.topbar form { margin: 0; }

.wrap { padding-top: 1.75rem; padding-bottom: 3rem; }
.wrap h1 { margin: 0 0 1.25rem; font-size: 1.6rem; color: var(--header); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}
.panel h2 { margin: 0 0 .9rem; font-size: 1.15rem; color: var(--header); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.stat .label { font-size: .85rem; color: var(--muted); }
.stat .value { font-size: 1.6rem; font-weight: 700; color: var(--header); }

.upload-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.upload-row .field { flex: 1 1 280px; margin-bottom: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
thead th { background: #f2f5fa; color: var(--header); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.mono { font-family: var(--mono); font-size: .9rem; }

.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.badge-done { color: var(--ok); background: var(--ok-bg); }
.badge-running { color: var(--run); background: var(--run-bg); }
.badge-queued { color: var(--queued); background: var(--queued-bg); }
.badge-failed { color: var(--fail); background: var(--fail-bg); }

.foot { font-size: .85rem; color: var(--muted); }

@media (max-width: 560px) {
  .login-card { padding: 1.5rem 1.25rem 1.25rem; }
  .wrap h1 { font-size: 1.35rem; }
}
