* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f8f9fa;
  --card: #ffffff;
  --text: #1a1a2e;
  --text2: #6b7280;
  --accent: #1a7a55;
  --accent-hover: #15633f;
  --border: #e5e7eb;
  --red: #dc2626;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-container {
  width: 100%;
  max-width: 400px;
}
.login-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  border: 1px solid var(--border);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.logo-icon {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 8px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.subtitle {
  text-align: center;
  color: var(--text2);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
input[type="password"], input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="password"]:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 122, 85, 0.12);
}
button {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
button:hover {
  background: var(--accent-hover);
}
button:active {
  transform: scale(0.98);
}
.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--red);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text2);
}

/* CSP Hardening Classes */
.hidden {
  display: none !important;
}

.info {
  background: rgba(26, 122, 85, 0.08);
  border: 1px solid rgba(26, 122, 85, 0.2);
  color: var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.mb-6 {
  margin-bottom: 1.5rem !important;
}

.block {
  display: block !important;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* ─── Authy sign-in and People page (Cloudflare move, Oct 2026) ─── */
.login-container.wide { max-width: 880px; }
.login-container.wide .subtitle, .login-container.wide h2 { text-align: left; }
.login-container.wide h1 { text-align: left; }
.login-container.wide .logo { justify-content: flex-start; }
table.people td:nth-child(1) { white-space: nowrap; }
table.people td:nth-child(4) { white-space: nowrap; text-align: right; }
table.people th:nth-child(4) { text-align: right; }
table.people td:nth-child(3) { white-space: nowrap; }
.muted { color: var(--text2); font-size: 0.875rem; margin-top: 1rem; }
.muted a { color: inherit; }
.qr { display: block; width: 240px; height: 240px; margin: 1rem auto; background: #fff; border-radius: 10px; }
.key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; letter-spacing: 0.08em; word-break: break-all; }
.pill { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--border); border-radius: 999px; padding: 0.1rem 0.5rem; color: var(--text2); }
h2 { font-size: 1.05rem; margin: 1.75rem 0 0.75rem; }
table.people { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.5rem; }
table.people th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text2); padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--border); }
table.people td { padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.people form { display: inline-block; margin: 0 0.25rem 0.25rem 0; }
button.small { width: auto; padding: 0.45rem 0.85rem; font-size: 0.8rem; white-space: nowrap; }
button.danger { background: #b42318; }
@media (max-width: 640px) { table.people th:nth-child(3), table.people td:nth-child(3) { display: none; } table.people td:nth-child(4) { white-space: normal; } }
