/* Login page — hand-rolled to match the Mantine card the SPA renders today.
   Values are Mantine v7 tokens at scale 1, transcribed rather than imported:
   radius sm 4 / md 8, spacing md 16 / xl 32, gray-3 #dee2e6, gray-4 #ced4da.
   Brand: green #7ca430, interactive shade 7 #5d7e1e (WCAG AA on white), text #424243.
   The tokens live in frontend/src/theme.ts; a brand change has to be made in both.

   VERSION STAMP — this file is served `public, max-age=31536000, immutable`, so a
   browser that has it will not ask again for a year. The stamp is the DIRECTORY
   (`/login-assets/v1/`), not the file name, so one rename re-versions the stylesheet,
   the font and the mark at once. EDITING THIS FILE MEANS RENAMING THAT DIRECTORY to
   v2 and updating the four hrefs in templates/login.html — paired comment there. Skip
   it and users keep the old login page for a year. (The font url below is relative on
   purpose: it follows the directory without a second edit.) */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --vt-text: #424243;
  --vt-brand-7: #5d7e1e;
  --vt-brand-8: #4e6a18;
  --vt-border: #dee2e6;
  --vt-input-border: #ced4da;
  --vt-font: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--vt-font);
  color: var(--vt-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.card {
  width: 380px;
  max-width: 100%;
  padding: 32px;
  border: 1px solid var(--vt-border);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.05) 0 10px 15px -5px,
    rgba(0, 0, 0, 0.04) 0 7px 7px -5px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
}

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  background: #fff5f5;
  color: #c92a2a;
  font-size: 14px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
}

input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--vt-text);
  background: #fff;
  border: 1px solid var(--vt-input-border);
  border-radius: 4px;
}

input:focus {
  outline: none;
  border-color: var(--vt-brand-7);
}

button {
  width: 100%;
  height: 36px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--vt-brand-7);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: var(--vt-brand-8);
}

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