:root {
  --hpi-navy: #1c3144;
  --hpi-teal: #2a6f77;
  --hpi-bg: #f4f6f7;
  --hpi-border: #d6dde0;
  --hpi-danger: #a3242c;
  --hpi-warn-bg: #fff4e5;
  --hpi-warn-border: #e0a63a;
}

* { box-sizing: border-box; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--hpi-bg);
  color: #1a1a1a;
  margin: 0;
}

header.site-header {
  background: var(--hpi-navy);
  color: #fff;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.site-header a { color: #fff; text-decoration: none; }
header.site-header .brand { font-weight: 600; font-size: 1.05rem; }
header.site-header nav a { margin-left: 1rem; font-size: 0.9rem; opacity: 0.9; }
header.site-header nav a:hover { opacity: 1; text-decoration: underline; }

main.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--hpi-border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.narrow-card { max-width: 420px; margin: 3rem auto; }

h1, h2, h3 { color: var(--hpi-navy); }

label { display: block; font-weight: 600; margin-top: 0.85rem; margin-bottom: 0.25rem; font-size: 0.9rem; }

input[type="text"], input[type="password"], input[type="email"], input[type="number"],
select, textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--hpi-border);
  border-radius: 4px;
  font-size: 1rem;
}

button, .btn {
  display: inline-block;
  background: var(--hpi-teal);
  color: #fff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: none;
}
button:hover, .btn:hover { opacity: 0.92; }
.btn-secondary { background: #6b7a80; }

.errorlist { color: var(--hpi-danger); list-style: none; padding: 0; margin: 0.25rem 0; font-size: 0.85rem; }

.messages { list-style: none; padding: 0; }
.messages li { padding: 0.6rem 1rem; border-radius: 4px; margin-bottom: 0.75rem; background: #e7f3ea; border: 1px solid #a9d3b3; }
.messages li.error { background: #fbe7e8; border-color: #e3a5a9; }

.compliance-banner {
  background: var(--hpi-warn-bg);
  border-bottom: 3px solid var(--hpi-warn-border);
  color: #6b4a12;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--hpi-border); font-size: 0.9rem; }
th { background: #eef1f2; }

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #dde7ea;
  color: var(--hpi-navy);
}

.helptext { color: #5a6a70; font-size: 0.85rem; }
.backup-codes { font-family: monospace; font-size: 1.1rem; line-height: 1.8; }
