:root {
  --bg: #f4f3ef; --panel: #ffffff; --text: #1b1f24; --muted: #5f6b7a; --line: #dcdfe4;
  --accent: #2f5fa7; --accent-text: #ffffff; --bad: #c62828; --bad-bg: #fdecea; --note-bg: #eef3fb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101317; --panel: #171b21; --text: #e6e9ee; --muted: #98a3b1; --line: #2a313a;
    --accent: #6f9ce6; --accent-text: #0b0d10; --bad: #ff6b6b; --bad-bg: #3a1d1d; --note-bg: #1a2433;
  }
}
:root[data-theme="dark"] {
  --bg: #101317; --panel: #171b21; --text: #e6e9ee; --muted: #98a3b1; --line: #2a313a;
  --accent: #6f9ce6; --accent-text: #0b0d10; --bad: #ff6b6b; --bad-bg: #3a1d1d; --note-bg: #1a2433;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 1fr); min-height: 100%; }
.art { background: #9a9a8e url("/static/img/login.jpg") center / cover no-repeat; position: relative; }
.art figcaption { position: absolute; left: 16px; bottom: 12px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.side { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.card { width: 100%; max-width: 380px; }
.logo { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 10px; margin: 0 0 18px; }
.brand { font-size: 26px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.tag { color: var(--muted); margin: 0 0 28px; }
h2 { font-size: 18px; margin: 0 0 16px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 4px; }
input { width: 100%; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input:disabled { opacity: .55; }
button { width: 100%; margin-top: 20px; font: inherit; font-weight: 600; padding: 11px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-text); cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
.row { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; }
a { color: var(--accent); }
.err { display: none; margin-top: 14px; padding: 8px 10px; border-radius: 8px; background: var(--bad-bg); color: var(--bad); font-size: 14px; }
.err.show { display: block; }
.note { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--note-bg); font-size: 14px; }
.small { color: var(--muted); font-size: 12px; margin-top: 24px; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; grid-template-rows: 220px auto; }
  .art { background-position: center 20%; }
}
