/* The public door's sign-in pages (card LOGIN-1): the user app's look B "Švieslentė" (docs/design/DESIGN-SYSTEM.md, web/user/user.css)
   — every colour, size, space and radius a token of /tokens.css; light and dark from the tokens. Phone first: one column, 16 px
   sides, every control at least 48 px; the same reading width on a computer. One accent colour, no gradients, no shadows. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: var(--size-screen-min-width); background: var(--bg); color: var(--text);
  font-family: "Public Sans", system-ui, sans-serif; font-size: var(--body-size); line-height: var(--body-line);
}
p, h1, h2, form { margin: 0; }
a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
h1:focus { outline: none; }  /* the page moves focus to a screen's title; it is not a control */
.small { font-size: var(--small-size); line-height: var(--small-line); }
.muted { color: var(--text-muted); }
.msg:empty { display: none; }
.msg { font-weight: var(--weight-bold); }

.brand {
  max-width: 480px; margin: 0 auto; padding: var(--space-16) var(--page-padding) 0; color: var(--text-muted);
  font-size: var(--label-size); font-weight: var(--weight-bold); line-height: var(--small-line);
}
main { max-width: 480px; margin: 0 auto; padding: 0 var(--page-padding) var(--space-32); }
.screen { display: flex; flex-direction: column; gap: var(--space-16); }
.top { padding: var(--space-8) 0 0; }
.top h1 { font-size: var(--title-size); font-weight: var(--title-weight); line-height: var(--title-line); letter-spacing: var(--title-tracking); }
.top.sub { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12); padding-top: var(--space-4); }
.top.sub h1 { font-size: var(--subtitle-size); font-weight: var(--subtitle-weight); line-height: var(--subtitle-line); letter-spacing: var(--subtitle-tracking); }
.stack { display: flex; flex-direction: column; gap: var(--space-12); }
.card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-card); padding: var(--space-16); }
.card.stack { gap: var(--space-16); }
.banner {
  background: var(--warning-bg); border: 1px solid var(--warning-border); border-radius: var(--radius-control);
  color: var(--text); padding: var(--space-12); font-size: var(--small-size); line-height: var(--small-line);
}
.placeholder { height: var(--space-20); border-radius: var(--radius-control); background: var(--surface-border); margin: var(--space-8) 0; }

.field { display: flex; flex-direction: column; gap: var(--space-8); }
.label { font-size: var(--label-size); font-weight: var(--weight-bold); line-height: var(--small-line); }
.ctl {
  font: inherit; width: 100%; min-width: 0; height: var(--size-button-secondary-height); padding: 0 var(--space-12);
  background: var(--bg); color: var(--text); border: 1px solid var(--control-border); border-radius: var(--radius-control);
  font-size: var(--body-size);
}
.check { display: flex; align-items: center; gap: var(--space-12); min-height: var(--size-touch-min); font-weight: var(--weight-bold); cursor: pointer; }
.check input { flex: none; width: var(--space-24); height: var(--space-24); margin: 0; accent-color: var(--accent); }
.privacy { border: 1px solid var(--surface-border); border-radius: var(--radius-control); padding: 0 var(--space-12); }
.privacy summary {
  display: flex; align-items: center; min-height: var(--size-touch-min); cursor: pointer; color: var(--accent-text);
  font-weight: var(--weight-bold);
}
.privacy[open] { padding-bottom: var(--space-12); }
.privacy p { color: var(--text); }

button, .button {
  font: inherit; cursor: pointer; width: 100%; margin: 0; border-radius: var(--radius-card); text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: var(--space-8); text-align: center;
}
.primary {
  min-height: var(--size-button-primary-height); background: var(--accent); color: var(--on-accent); border: 0;
  font-size: var(--heading-size); font-weight: var(--weight-heavy);
}
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary {
  min-height: var(--size-button-secondary-height); background: transparent; color: var(--text);
  border: 1px solid var(--control-border); font-weight: var(--weight-bold);
}
a.button.secondary { color: var(--text); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.back {
  display: inline-flex; align-items: center; min-height: var(--size-touch-min); gap: var(--space-4); padding: 0 var(--space-14) 0 var(--space-10);
  color: var(--text); text-decoration: none; border: 1px solid var(--control-border); border-radius: var(--radius-control); font-weight: var(--weight-bold);
}
.back span { font-size: var(--size-icon); line-height: 1; }
.links { margin-top: var(--space-4); }

@media (min-width: 900px) {
  .brand { padding-top: var(--space-32); }
  .top { padding-top: var(--space-16); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
