/* public/login.css: the sign-in page, in the app's dark style.
   No external font, no image, no colour beyond the app's own grays. */
:root {
  --bg: #0b0b0c;
  --surface: #121213;
  --surface-2: #19191b;
  --line: #29292c;
  --line-strong: #3a3a3e;
  --text: #ececee;
  --text-2: #a8a8ad;
  --muted: #77777c;
  --bad: #d98a8a;
  --bad-soft: rgba(217, 138, 138, 0.12);
  --radius: 10px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 340px;
  padding: 24px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.brand {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.field {
  display: block;
  margin-bottom: 12px;
}

.label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--text-2);
}

.input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  outline: none;
}

.input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.btn {
  width: 100%;
  height: 38px;
  margin-top: 6px;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 7px;
  color: var(--bg);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.55; cursor: default; }

.msg {
  margin: 12px 0 0;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--bad);
  background: var(--bad-soft);
  border: 1px solid var(--bad-soft);
  border-radius: 7px;
}

.foot {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 2px; }