/* auth.css: Sign-in screen.
   Every colour comes from tokens.css (no literals here). Dark mode lives in tokens.css only. */
.auth-form { display: grid; }
#auth.si { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: var(--black); display: block; padding: 0; }
.si-bg { position: absolute; inset: 0; filter: contrast(1.04); background: var(--black) url(icons/signin-ipad.jpg) 50% 0 / cover no-repeat; }
.si-bg::after { content: ""; position: absolute; inset: 0; background: var(--shade-si); }
.si-card { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); width: 520px; max-width: calc(100% - 42px); box-sizing: border-box; background: var(--surface); color: var(--text); padding: 40px 44px 36px; box-shadow: var(--shadow-si); }
.si-mark { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.si-h { margin: 14px 0 30px; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.08; color: var(--ink); }
.si-foot { display: flex; align-items: center; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.si-foot .btn { flex: none; width: 150px; min-height: 44px; height: 44px; padding: 0; justify-content: center; font: 500 15px var(--sans); background: var(--ink); border: 0; color: var(--bg); }
.si-note { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
#auth.si .field label { color: var(--text); }
@media (min-width: 1100px) {
  .si-card { left: auto; right: 12.3vw; bottom: auto; top: 60.5%; transform: translateY(-50%); width: 540px; box-shadow: var(--shadow-si-wide); }
}
@media (max-width: 560px) {
  .si-card { left: 21px; right: 21px; bottom: 24px; transform: none; width: auto; max-width: none; padding: 26px 24px 24px; box-shadow: var(--shadow-si-phone); }
  .si-mark { font-size: 10.5px; }
  .si-h { font-size: 28px; margin: 12px 0 22px; }
  .si-foot { gap: 16px; padding-top: 18px; }
  .si-foot .btn { width: 130px; height: 46px; }
  .si-note { font-size: 12.5px; }
}
.si .auth-form { padding: 0; max-width: none; gap: 16px; }
.si #pwBox { display: grid; gap: 16px; padding-bottom: 6px; }
.si #pwBox .btn { width: 100%; }
#auth .display { font-size: clamp(44px, 9vw, 60px); }
@media (min-width: 1100px) {
  .si-bg { background-image: url(icons/signin-laptop.jpg); background-position: 50% 50%; }
}
@media (max-width: 560px) {
  .si-bg { background-image: url(icons/signin-phone.jpg); background-position: 50% 0; background-size: cover; }
}
