/* Minimal standalone login. Intentionally tiny and self-contained - it ships
   none of the admin design system (see style.css), so an unauthenticated load
   leaks nothing about the app behind it. Follows the OS light/dark preference via
   the block at the foot. New/edited rules list their properties alphabetically
   (house convention). */
:root {
  color-scheme: light dark;
}
* {
  box-sizing: border-box;
}
body {
  align-items: center;
  background: #f4f5f7;
  color: #414142;
  display: flex;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  justify-content: center;
  margin: 0;
  min-height: 100dvh; /* dynamic viewport - no clipping under mobile browser chrome */
}
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 260px;
}
input,
button {
  border: 1px solid #c2c3c4;
  border-radius: 8px;
  font: inherit;
  padding: 10px 12px;
}
/* :focus-visible - ring only for keyboard focus, not on mouse click. */
input:focus-visible {
  border-color: #0055a5;
  box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.25);
  outline: none;
}
button {
  background: #0055a5;
  border-color: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
button:focus-visible {
  outline: 2px solid #0055a5;
  outline-offset: 2px;
}
p {
  color: #c0392b;
  font-size: 13px;
  margin: 0;
  min-height: 1em;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #17181a;
    color: #e7e8ea;
  }
  input {
    background: #212325;
    border-color: #45474c;
    color: #e7e8ea;
  }
  input::placeholder {
    color: #8a8b8f;
    opacity: 1;
  }
  input:focus-visible {
    border-color: #6db0ee;
    box-shadow: 0 0 0 3px rgba(109, 176, 238, 0.3);
  }
  button {
    background: #2f6fb0;
  }
  button:focus-visible {
    outline-color: #6db0ee;
  }
  p {
    color: #ec6a5e;
  }
}
