:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 8%, rgba(22, 119, 255, 0.09), transparent 30%),
    linear-gradient(135deg, #f7f9fc 0%, #eef4f8 48%, #f8faf7 100%);
  color: #182033;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 42px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #607087;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  color: #111827;
  font-size: 34px;
  line-height: 1.12;
}

h2 {
  color: #182033;
  font-size: 18px;
  line-height: 1.25;
}

a {
  color: #0f6b8f;
}

.login-shell {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 48px;
}

.login-intro {
  max-width: 620px;
}

.lede {
  max-width: 560px;
  margin: 18px 0 0;
  color: #4b5870;
  font-size: 17px;
  line-height: 1.75;
}

.login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.login-highlights span {
  border: 1px solid rgba(15, 107, 143, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #234054;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 650;
}

.panel,
.metric,
.data-section {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 18px 50px rgba(28, 42, 68, 0.08);
  backdrop-filter: blur(14px);
}

.panel {
  border-radius: 8px;
  padding: 28px;
}

.login-card {
  width: 100%;
}

.card-heading {
  margin-bottom: 22px;
}

label {
  display: block;
  margin: 14px 0 7px;
  color: #42516a;
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  border: 1px solid #c7d2df;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  padding: 12px 13px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus {
  border-color: #1683ad;
  box-shadow: 0 0 0 4px rgba(22, 131, 173, 0.13);
}

button {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #11698a, #1d8c75);
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

button:hover {
  box-shadow: 0 12px 24px rgba(17, 105, 138, 0.22);
  transform: translateY(-1px);
}

.error {
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 8px;
  background: #fff1f0;
  color: #b42318;
  margin: 14px 0 0;
  padding: 9px 10px;
  font-size: 13px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-summary {
  max-width: 680px;
  margin: 12px 0 0;
  color: #526077;
  font-size: 15px;
  line-height: 1.65;
}

.logout {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 107, 143, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #164b63;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  min-height: 132px;
  border-radius: 8px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7d8da5;
}

.metric-success::after {
  background: #15a06d;
}

.metric-fail::after {
  background: #d64f45;
}

.metric span {
  display: block;
  color: #637188;
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 12px;
  color: #111827;
  font-size: 32px;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 12px;
  color: #718096;
  font-size: 12px;
}

.data-section {
  border-radius: 8px;
  margin-top: 16px;
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading p {
  max-width: 580px;
  margin: 0;
  color: #65748a;
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

th,
td {
  padding: 12px 11px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #f4f7fa;
  color: #42516a;
  font-weight: 800;
  white-space: nowrap;
}

td {
  background: rgba(255, 255, 255, 0.7);
  color: #263348;
}

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

th:first-child {
  border-top-left-radius: 8px;
}

th:last-child {
  border-top-right-radius: 8px;
}

code {
  color: #334155;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ok,
.fail {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.ok {
  background: #e8f7ef;
  color: #047857;
}

.fail {
  background: #fff0ef;
  color: #b42318;
}

.site-records {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.site-records__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 14px;
  overflow-x: auto;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(28, 42, 68, 0.08);
  color: #8a919d;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  scrollbar-width: none;
}

.site-records__pill::-webkit-scrollbar {
  display: none;
}

.site-records a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.site-records a:hover {
  color: #626b78;
}

.site-records__police img {
  width: 18px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  main {
    width: min(100% - 28px, 1180px);
    padding-top: 24px;
  }

  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .section-heading {
    display: block;
  }

  .logout {
    display: inline-block;
    margin-top: 16px;
  }

  .section-heading p {
    margin-top: 6px;
    text-align: left;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 28px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .data-section {
    padding: 16px;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
