/* Public sign-in page (login.html), styled like the rhino-reviews sign-in. Self-contained so a
   signed-out visitor never loads the dashboard stylesheet. */
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/vendor/inter/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --card: #ffffff; --text: #1c2430; --muted: #667085; --line: #e3e6eb; --field: #ffffff;
  --hover: #eceff3; --accent: #183f7a; --bad: #c62828; color-scheme: light;
}
:root[data-theme="dark"] {
  --card: #171d25; --text: #e6e9ee; --muted: #98a2b3; --line: #2a323d; --field: #0f141a;
  --hover: #252d38; --accent: #3a6fc4; --bad: #f07171; color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  /* Apple's San Francisco on Apple devices; self-hosted Inter everywhere else (same as the dashboard). */
  font: 14.5px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Inter Variable", system-ui, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 16px 16px 0;
  background: linear-gradient(160deg, #2456a8, #183f7a 60%, #12315f);
  color: var(--text);
}
.card {
  position: relative; margin: auto 0; background: var(--card); border-radius: 16px; padding: 36px;
  width: 380px; max-width: 100%; box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.logo { height: 44px; width: auto; display: block; margin: 0 auto; }
:root:not([data-theme="dark"]) .logo-dark, :root[data-theme="dark"] .logo-light { display: none; }
h1 { font-size: 22px; font-weight: 600; margin: 18px 0 4px; }
.muted { color: var(--muted); }
form { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 600; font-size: 13px; }
input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 15px; margin: 4px 0 10px; background: var(--field); color: var(--text);
}
input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.error { color: var(--bad); font-size: 13px; min-height: 18px; margin: 6px 0; }
form button {
  width: 100%; background: var(--accent); border: 1px solid var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
form button:hover { filter: brightness(.88); }
form button:disabled { opacity: .6; cursor: default; }
/* Light / Dark / System switch, built by theme.js. */
.theme-switch {
  position: absolute; top: 12px; right: 12px; display: inline-flex;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--field);
}
.theme-switch button {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: none; border-left: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.theme-switch button:first-child { border-left: none; }
.theme-switch button:hover { background: var(--hover); color: var(--text); }
.theme-switch button.on { background: var(--accent); color: #fff; }
.theme-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-foot { text-align: center; font-size: 12px; color: rgba(255,255,255,.75); padding: 13px 16px; }
