/* The sign-in page: the form beside the product's risk grid. Loaded after parts.css: the sign-in box is a section
   with its own margin. */
/* ---------- sign in: form on the left, the product's risk grid as a quiet panel on the right ---------- */
body.signed-out .bar, body.signed-out main { display: none; }
/* sign in: the form and the product's matrix as one centred pair, capped so wide screens only grow the gutters */
.login { display: none; flex: 1; flex-direction: column; }
body.signed-out .login { display: flex; }
.login-top { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--edge); }
.login-main { flex: 1; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 380px); gap: 72px; justify-content: center; align-content: center; align-items: center; padding: 24px 24px 72px; }
.login-box { margin: 0; padding: 28px; display: grid; gap: 20px; align-content: start; }
.login-box h1 { font-size: 28px; }
.login-box p { margin: 0; }
.login-box h1 + p { margin-top: 6px; }
.login-box form { display: grid; gap: 14px; }
.login-box input { padding: 9px 11px; }
.login-box input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--panel) inset; -webkit-text-fill-color: var(--ink); }
/* "Show" sits inside the password field as a quiet text button */
.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 72px; }
.pw button { position: absolute; inset: 4px 4px 4px auto; padding: 0 12px; border: 0; border-radius: var(--r); background: none; color: var(--ink-2);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.pw button:hover { color: var(--ink); background: var(--sunken); }
.caps { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-sm); color: var(--attention); }
.login-art { display: grid; gap: 16px; align-content: center; }
.login-art > svg { width: 100%; max-width: 320px; }
.login-art .legend { margin-top: 0; }
.login-points { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); max-width: 36ch; }
.login-points li + li { padding-top: 8px; border-top: 1px solid var(--line); }
/* one move, played once: the line (pathLength 1) and the dot (its own --rise) share duration and easing */
.login-art .draw, .login-art .rise { animation: 1.1s .35s cubic-bezier(.22, 1, .36, 1) both; }
.login-art .draw { stroke-dasharray: 1; animation-name: draw; }
.login-art .rise { animation-name: rise; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes rise { from { transform: translateY(var(--rise)); } }
@media (max-width: 860px) {
  .login-main { grid-template-columns: minmax(0, 400px); padding: 16px 16px 48px; }
  .login-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .login-art .draw, .login-art .rise { animation: none; }
}
