:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --ink: #17211b;
  --muted: #667067;
  --line: #dce3db;
  --panel: #ffffff;
  --accent: #256f5a;
  --accent-dark: #174c3e;
  --alert: #b44633;
  --shadow: 0 18px 44px rgba(29, 43, 35, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: 24px;
}

.brand p,
.demo-logins {
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 12px;
}

.primary-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.error {
  min-height: 20px;
  margin: 0;
  color: var(--alert);
  font-weight: 800;
}

.demo-logins {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 13px;
}

.demo-logins strong {
  color: var(--ink);
}


/* Global mobile gesture policy: remove double-tap page zoom. */
html,
body {
  touch-action: manipulation;
}