/* The sign-in and code pages (фаза 8, Ч1-03, Ч1-21) in «Вигляд Г» (Ч9-08, the user 13.11.2026: «Сторінка входу в «Вигляді Г»»): the colours,
   the page art and the theme are the main pages' own — theme.css and look.css come first, and theme-early.ts sets the user's theme before
   the first paint — so the sign-in looks like the app it opens. Above the card, the emblem and the name as in the header. Until 13.11 the
   page had its own palette over the corps' photo (khartia-bg.webp, darkened 05.11.2026). Same markup otherwise (apps/server/src/login.ts). */
body {
  min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  font-size: 15px; letter-spacing: -0.003em;
}
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand .emblem { height: 44px; }
.login-brand .brand-name { font-size: 22px; }

.card { width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--ring); border-radius: 22px; padding: 28px 26px 26px; box-shadow: var(--shadow); }
h1 { font-size: 28px; margin: 0 0 6px; font-weight: 650; letter-spacing: -0.02em; text-wrap: balance; }
.sub { color: var(--ink-2); font-size: 13px; margin: 0 0 18px; }
label { display: block; font-size: 12.5px; color: var(--ink-2); margin: 14px 0 6px; font-weight: 550; }
input { width: 100%; color: var(--ink); background: var(--hover-bg); border: 1px solid transparent; border-radius: 12px; padding: 11px 13px; }
input:focus { outline: 2px solid var(--ink); outline-offset: 1px; background: var(--surface); border-color: var(--ring); }
/* the chosen pill of the menu: the ink itself, its text the page's */
button { width: 100%; margin-top: 22px; font-weight: 600; color: var(--sel-fg); background: var(--sel-bg); border: 0; border-radius: 999px; padding: 12px; cursor: pointer; }
button:hover { opacity: .9; }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.err { color: var(--bad-ink); font-size: 13px; margin: 14px 0 0; }
.err:empty { display: none; }

/* Ч1-26: the first-sign-in key: its picture and the key typed by hand */
.qr-setup { display: block; margin: 12px auto 4px; width: auto; height: auto; max-width: 100%; border-radius: 12px; background: #fff; }
.secret-key { font-family: ui-monospace, Consolas, monospace; font-weight: 600; word-break: break-all; }
