/* Sign-in page and the small sign-out button. Tokens come from app.css. */
.login-body { display: grid; place-items: center; }
.login-wrap { width: min(440px, 100%); padding: calc(24px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.login-mark { justify-content: center; }
.login-mark .wm-mark { width: 34px; height: 34px; }
.login-sheet {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: var(--shadow-md), inset 0 0 0 6px var(--sheet-2);
  padding: 34px 28px 28px; display: grid; gap: 16px;
  animation: login-in 0.5s var(--out) both;
}
@keyframes login-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .login-sheet { animation: none; } }
.login-sheet h1 { font-size: 2.2rem; line-height: 1.05; font-weight: 750; letter-spacing: -0.025em; }
.login-sheet .lede { margin: -6px 0 4px; }
.login-field { display: grid; gap: 6px; }
.login-field input {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 1.05rem;
  color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule-strong); border-radius: 8px;
}
.login-field input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.login-pw { position: relative; display: block; }
.login-pw input { padding-right: 76px; }
.login-show {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 40px; min-width: 56px;
  background: transparent; border: 0; color: var(--accent); font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; border-radius: 6px;
}
.login-go {
  min-height: 54px; margin-top: 4px; font: inherit; font-size: 1.1rem; font-weight: 750; letter-spacing: 0.01em;
  color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 8px; cursor: pointer;
  box-shadow: 0 2px 0 var(--accent-press); transition: transform 0.12s var(--out), background-color 0.12s;
}
.login-go:hover { background: var(--accent-press); }
.login-go:active { transform: translateY(1px); box-shadow: none; }
.login-err { background: var(--attn-soft); color: var(--attn); border-left: 4px solid var(--attn); border-radius: 4px; padding: 10px 12px; font-weight: 600; font-size: 0.95rem; }
.login-fine { text-align: center; color: var(--muted); font-size: 0.85rem; }
.signout { margin: 0; }
.signout button { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; padding: 10px 6px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.letterhead .signout { margin-left: auto; }
