/* BlindTick 3.0 · «Экран входа». Prototype geometry: vector pitch markings on the page
   background, centred mark + BLINDTICK + «Терминал сигналов», a 400px card with 48px
   fields and a 52px primary button. Tokens only; strict CSP (no inline styles). */
html body.bt-login {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--tx);
}
html body.bt-login *, html body.bt-login *::before, html body.bt-login *::after { box-sizing: border-box; }
.bt-login-pitch {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  stroke: var(--line);
}
.bt-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 16px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  animation: fa-fade .35s both;
}
.bt-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fa-up .5s var(--ease-out) both;
}
.bt-login-mark {
  width: 54px;
  height: 54px;
  flex: none;
}
.bt-login-name strong {
  display: block;
  font-family: var(--fh);
  font-size: 24px;
  line-height: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--tx);
}
.bt-login-name strong span { color: var(--acc-tx); }
.bt-login-name small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx3);
}
.bt-login-card {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 26px;
  border-radius: var(--r-card);
  background: var(--card);
  border: 1px solid var(--line2);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
  text-align: left;
  animation: fa-pop .45s .08s var(--ease-out) both;
}
.bt-login-head { margin: 0 0 4px; text-align: center; }
.bt-login-head h1 {
  margin: 0;
  font-family: var(--fh);
  font-size: 22px;
  line-height: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--tx);
}
.bt-login-head p { margin: 6px 0 0; font-size: 14px; color: var(--tx2); }
.bt-login-card .login-error {
  padding: 10px 12px;
  border-radius: var(--r-in);
  border: 1px solid color-mix(in srgb, var(--neg) 45%, transparent);
  background: var(--neg-soft);
  color: var(--tx);
  font-size: 13.5px;
  line-height: 1.45;
}
.bt-login-card .login-form { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bt-login-card .login-form label {
  margin-top: 8px;
  font-family: var(--ft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx3);
}
.bt-login-card .login-form label:first-of-type { margin-top: 0; }
.bt-login-card .login-form input:not([type="hidden"]) {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line2);
  border-radius: var(--r-ctl);
  background: var(--card2);
  color: var(--tx);
  font-family: var(--fbody);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.bt-login-card .login-form input:not([type="hidden"]):focus-visible {
  border-color: var(--acc-line);
  box-shadow: 0 0 0 3px var(--acc-soft);
}
.bt-login-card .login-submit {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--acc);
  color: var(--acc-ink);
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: filter .15s, transform .15s;
}
.bt-login-card .login-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.bt-login-card .login-submit:active { transform: scale(.98); }
.bt-login-card .login-submit:focus-visible { outline: 2px solid var(--acc-tx); outline-offset: 2px; }
.bt-login-card .login-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: square;
}
@media (max-width: 759px) {
  .bt-login-shell { gap: 22px; padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); }
  .bt-login-card { padding: 22px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-login-shell, .bt-login-brand, .bt-login-card { animation: none; }
}
