/* The login page is the only thing an uninvited visitor can see, so it does not
   share a stylesheet with the app behind it: no RTL, no accent colour, nothing
   that hints at what this server actually runs. Plain corporate grey. */

:root {
  color-scheme: light dark;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --border: #d8dbe0;
  --text: #1f2329;
  --muted: #6b7280;
  --brand: #2f5bd7;
  --brand-hover: #2848a8;
  --danger: #b3261e;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --surface: #1d2027;
    --border: #2f343d;
    --text: #e6e8eb;
    --muted: #9aa1ac;
    --brand: #5b81e8;
    --brand-hover: #6e90ee;
    --danger: #f2837c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Arial,
    sans-serif;
}

.card {
  width: min(380px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
}

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

.mark {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}

.brand h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button {
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: var(--brand-hover);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.msg {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--danger);
}

.foot {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
