:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #f6f7fb;
  color: #1b1f24;
}

body {
  margin: 0;
  padding: 24px;
}

.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 14px 30px rgba(27, 31, 36, 0.12);
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.login-label {
  font-weight: 600;
}

.login-input {
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
}

.login-input:focus {
  outline: 2px solid #1f6feb;
  border-color: transparent;
}

.login-button {
  background: #1f6feb;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

.login-button:hover {
  background: #1a5fd0;
}

.login-error {
  margin-top: 12px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.subtitle {
  margin: 4px 0 0;
  color: #5b6370;
}

.meta {
  text-align: right;
  font-size: 0.95rem;
  color: #3a404a;
}

.banner {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.hidden {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.metric {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 8px 0 12px;
}

.status-good {
  color: #1a7f37;
}

.status-warn {
  color: #9a6700;
}

.status-bad {
  color: #c62828;
}

.list {
  display: grid;
  gap: 8px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f2f4f8;
}

.list-item .label {
  font-weight: 600;
}

.log-box {
  background: #101418;
  color: #e9edf1;
  padding: 12px;
  border-radius: 8px;
  max-height: 300px;
  overflow: auto;
}

button.link-button {
  background: none;
  border: none;
  color: #1f6feb;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

button.link-button:hover {
  text-decoration: underline;
}

details {
  margin-top: 8px;
  color: #4d5560;
  font-size: 0.9rem;
}
