/* The sign-in screens in the brand standard's layout (docs/design/2026-11-09-brand/sign-in.html): the same background
   on both sides with a thin line between, the logo over the form, grey pills with their names lined up, one orange
   button per view, the footer across the page. Colours: the theme's roles only, as kit.css. */
.kit-muted, .kit-auth-back, .kit-consent, .kit-sign-in-waiting, .kit-auth-shell-subtitle, .kit-signin-switch,
.kit-signin-rules { color: var(--kit-quiet); }
.kit-spinner { width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 2px solid currentColor;
  border-top-color: transparent; animation: kit-spin var(--kit-spin) linear infinite; }
@keyframes kit-spin { to { transform: rotate(360deg); } }

/* The page: left (logo, scene, headline) | line | right (the form column); the footer below both. The page fills the
   window exactly and never scrolls (operator, 14 Nov 2026: "you only scroll at the bars, everything at the bottom
   stays"): under a desktop window bar it takes what is left of the window; a form taller than the window scrolls in its
   own column, and the footer stays at the bottom. */
html:has(.kit-signin), html:has(.kit-signin) body { height: 100%; overflow: hidden; }
.kit-signin { display: grid; grid-template-columns: 1fr 520px; grid-template-rows: minmax(0, 1fr) auto; height: 100vh;
  height: 100dvh; overflow: hidden; background: var(--kit-main); color: var(--kit-on-main); font-family: var(--kit-font);
  line-height: 1.6; }
.kit-window-bar ~ .kit-signin { height: calc(100vh - 40px); height: calc(100dvh - 40px); }
.kit-signin-left { padding: 28px 40px 0; display: flex; flex-direction: column; min-width: 0; min-height: 0;
  overflow: hidden; }
.kit-signin-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 22px; padding-bottom: 24px; }
.kit-signin-scene { position: relative; width: min(900px, 100%); min-height: 0; }
.kit-signin-headline { margin: 0; font-size: 48px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em;
  text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.kit-signin-panel { border-inline-start: 1px solid var(--kit-line); padding: 32px 64px; display: flex; flex-direction: column;
  min-width: 0; min-height: 0; overflow-y: auto; }
/* Centred by its margins, so a column taller than the window starts at its top and scrolls, never cut off above. */
.kit-signin-column { width: 100%; max-width: 392px; margin: auto; animation: kit-rise-in var(--kit-enter) var(--kit-ease-out); }
.kit-signin-logo { display: flex; justify-content: center; margin: 0 0 28px; }
/* The logos as a link home (home_url): the picture as it is, the focus ring as the pills'. */
.kit-signin-home { display: inline-flex; color: inherit; text-decoration: none; border-radius: 8px; }
.kit-signin-title { margin: 0 0 18px; font-size: 17px; line-height: 1.4; font-weight: 600; text-align: center; }
.kit-signin .kit-footer { grid-column: 1 / -1; }

/* Forms: the words sit inside the boxes; the labels are read out but not drawn. */
.kit-signin-form { display: grid; gap: 10px; text-align: start; }
.kit-signin-form .kit-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; }
.kit-signin-form .kit-field { gap: 0; }
.kit-signin-form .kit-input { height: 52px; border-radius: 12px; border-color: var(--kit-line); padding: 0 16px; font-size: 16px; }
.kit-signin-form .kit-input::placeholder { color: var(--kit-quiet); }
.kit-signin-form .kit-input-wrap .kit-input { padding-inline-end: 44px; }
.kit-signin-form .kit-icon-button { display: flex; width: 16px; height: 16px; padding: 0; inset-inline-end: 16px; top: 50%;
  transform: translateY(-50%); color: var(--kit-quiet); }
.kit-auth-back svg, .kit-icon-button svg { width: 16px; height: 16px; flex: none; }

/* Pills: grey with the name lined up behind a fixed icon column; the orange one is the view's main button. */
.kit-signin-pill { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin: 0;
  border: 0; border-radius: 9999px; background: var(--kit-secondary); color: var(--kit-on-secondary); font: inherit;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: transform var(--kit-press) var(--kit-ease-out); }
.kit-signin-pill:not(:disabled):active { transform: scale(0.97); }
.kit-signin-pill:focus-visible, .kit-signin-home:focus-visible, .kit-signin-forgot:focus-visible, .kit-signin-switch-link:focus-visible {
  outline: 2px solid var(--kit-focus, var(--kit-accent)); outline-offset: 2px; }
.kit-signin-pill:disabled { opacity: 0.5; cursor: not-allowed; }
.kit-signin-pill--accent { background: var(--kit-accent); color: var(--kit-on-accent); }
.kit-signin-pill-in { display: flex; align-items: center; gap: 14px; width: 132px; }
.kit-signin-pill-icon { width: 20px; display: inline-flex; justify-content: center; flex: none; }
.kit-sign-in-logo { width: 18px; height: 18px; }
.kit-signin-submit { margin-top: 4px; justify-content: center; }
.kit-signin-forgot { display: block; margin: 16px auto 26px; border: 0; background: transparent; padding: 0; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--kit-on-main); cursor: pointer; }
.kit-signin-providers { display: grid; gap: 10px; }
.kit-sign-in-more { display: block; margin: 12px auto 0; padding: 4px 0; border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .kit-sign-in-more:hover { opacity: 0.7; } }
.kit-sign-in-waiting { margin: 10px 0 0; font-size: 12px; text-align: center; }
.kit-sign-in-link, .kit-signin-switch-link { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 600;
  color: var(--kit-mark-text, var(--kit-accent-text)); cursor: pointer; }
.kit-signin-switch { margin: 20px 0 0; text-align: center; font-size: 14px; }
.kit-signin-back { margin-bottom: 14px; }
.kit-consent { margin: 16px 0 0; font-size: 12px; line-height: 1.6; text-align: center; }
.kit-consent .kit-link, .kit-signin-agree .kit-link { color: var(--kit-mark-text, var(--kit-accent-text)); font-weight: 600; text-decoration: underline; }
.kit-sign-in-error, .kit-sign-in-info { margin: 0; font-size: 14px; line-height: 1.6; }
.kit-sign-in-error { color: var(--kit-mark-text, var(--kit-accent-text)); }

/* Sign-up: the rules ticked as you type, the 18+ tick box. */
.kit-signin-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px;
  font-size: 13px; }
.kit-signin-rules li::before { content: '○'; display: inline-block; width: 18px; }
.kit-signin-rules li.kit-ok { color: var(--kit-on-main); }
.kit-signin-rules li.kit-ok::before { content: '✓'; color: var(--kit-mark-text, var(--kit-accent-text)); font-weight: 700; }
.kit-signin-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.kit-signin-agree input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--kit-mark, var(--kit-accent)); flex: none; }

/* The company form. */
.kit-company-form { display: grid; gap: 12px; text-align: start; }
.kit-company-form .kit-muted { margin: 0; font-size: 14px; line-height: 20px; }
.kit-company-form .kit-field { gap: 12px; }
.kit-company-form .kit-label { font-size: 14px; line-height: 20px; }
.kit-company-actions { display: flex; gap: 8px; }
.kit-company-button { flex: 1; height: 44px; }

/* Narrow windows: one column, the form (its own logo) over the footer; the scene and its headline do not show, since
   the page does not scroll under the form. */
@media (max-width: 1000px) {
  .kit-signin { grid-template-columns: 1fr; }
  .kit-signin-left { display: none; }
  .kit-signin-panel { border-inline-start: 0; padding: 28px 16px 36px; }
}

/* The steps after sign-in (AuthShell): a 460 px column with a 40 px title. */
.kit-auth-language { display: flex; justify-content: flex-end; width: 100%; max-width: 400px; margin-bottom: 20px; }
.kit-language { width: 190px; height: 40px; padding-top: 8px; padding-bottom: 8px; }
.kit-auth-back { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
@media (hover: hover) { .kit-auth-back:hover { color: var(--kit-on-main); } }
.kit-auth-shell { display: flex; flex-direction: column; align-items: center; min-height: 100vh; background: var(--kit-main);
  color: var(--kit-on-main); line-height: 1.6; }
.kit-auth-shell-column { display: flex; flex-direction: column; width: 100%; max-width: 460px; min-height: 100vh;
  box-sizing: border-box; padding: 32px 20px; }
.kit-auth-language--shell { max-width: none; margin-bottom: 24px; }
.kit-auth-shell .kit-auth-back { align-self: flex-start; margin-bottom: 32px; }
.kit-auth-shell-head { margin: 8px 0 32px; }
.kit-auth-shell-title { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.025em;
  overflow-wrap: anywhere; }
.kit-auth-shell-subtitle { margin: 12px 0 0; font-size: 16px; line-height: 1.625; }
.kit-auth-shell-body { flex: 1; }
.kit-check-line { margin: 0 0 12px; }
.kit-check-continue { height: 56px; border-radius: 9999px; font-size: 17px; font-weight: 600; }
.kit-check-resend { display: block; margin: 20px auto 0; font-size: 15px; }
.kit-check-spam { margin: 20px 0 0; text-align: center; }
.kit-check-spam + .kit-check-resend { margin-top: 8px; }
/* SignInPage notice: what the reader must see before signing in, above the methods. */
.kit-signin-notice { width: 100%; margin: 0 0 16px; }

/* The code page (operator 11 Nov 2026): the sign-in frame with one box per digit. The boxes take the theme's line, the
   accent only on the box in use; a wrong code turns the boxes' lines to the accent and shakes them once. */
.kit-code-column { text-align: center; }
.kit-code-title { margin: 0 0 10px; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em;
  text-wrap: balance; }
.kit-code-address { margin: 0 0 26px; font-size: 14px; color: var(--kit-quiet); overflow-wrap: anywhere; }
.kit-code-email { color: var(--kit-on-main); }
.kit-code-change { margin-inline-start: 8px; font-size: 14px; }
/* Digits run left to right in every language: Left goes to the box before, also on a right-to-left page. */
.kit-code-boxes { display: flex; justify-content: center; gap: 10px; direction: ltr; }
.kit-code-box { box-sizing: border-box; width: 52px; height: 64px; padding: 0; border: 1px solid var(--kit-line);
  border-radius: 12px; background: var(--kit-main); color: var(--kit-on-main); font: inherit; font-size: 26px;
  font-weight: 600; text-align: center; caret-color: var(--kit-focus, var(--kit-accent));
  transition: border-color var(--kit-press) var(--kit-ease-out), transform var(--kit-press) var(--kit-ease-out); }
.kit-code-box--filled { background: var(--kit-secondary); }
.kit-code-box:focus { outline: none; border: 2px solid var(--kit-focus, var(--kit-accent)); }
.kit-code-box:disabled { opacity: 0.6; }
.kit-code-boxes--invalid .kit-code-box { border-color: var(--kit-mark, var(--kit-accent)); }
.kit-code-boxes--invalid { animation: kit-code-shake 260ms var(--kit-ease-out); }
@keyframes kit-code-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.kit-code-status { min-height: 22px; margin: 14px 0 6px; font-size: 13px; display: flex; justify-content: center;
  align-items: center; gap: 6px; color: var(--kit-quiet); }
.kit-code-resend { margin: 6px 0 0; font-size: 13px; color: var(--kit-quiet); }
.kit-code-resend .kit-sign-in-link { font-size: 13px; }
@media (max-width: 420px) { .kit-code-boxes { gap: 6px; } .kit-code-box { width: 44px; height: 56px; font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .kit-code-boxes--invalid { animation: none; } }

/* Apps 3: an app's own mark above VAVUS (an installation's customer logo), a sentence on a pill (first sign-in with a
   set-up code), and an organisation's own sign-in offered above the password (Vavus Ed). Theme roles only. */
.kit-signin-brand { display: flex; justify-content: center; margin: 0 0 16px; }
.kit-signin-pill--text { height: auto; min-height: 44px; padding: 10px 20px; line-height: 1.35; text-align: center; }
.kit-signin-brand img { display: block; max-width: 220px; max-height: 48px; object-fit: contain; }
.kit-org-offer { display: grid; gap: 10px; margin: 0 0 8px; padding: 16px; border: 1px solid var(--kit-line);
  border-radius: 16px; text-align: start; }
.kit-org-offer .kit-signin-title { margin: 0; text-align: start; }
.kit-org-offer .kit-muted { margin: 0; }
