/* The password field and its button, one module: a quiet field on the paper with the dark button joined to its right
   end. A wrong password shakes the field once and clears it. */
.gate .pass { max-width:360px; }
.gate .field { display:flex; height:44px; border:1px solid var(--line); border-radius:6px; background:var(--bg);
               transition:border-color 240ms ease, box-shadow 240ms ease; }
.gate .field:focus-within { border-color:var(--ink); box-shadow:0 0 0 3px rgba(28,28,26,.06); }
.gate .field input { flex:1; min-width:0; border:0; outline:0; background:transparent; padding:0 14px; color:var(--ink);
                     font:400 15px/1 var(--font-body); letter-spacing:.01em; }
.gate .field input::placeholder { color:var(--muted-2); }
.gate .field .open { flex:0 0 auto; width:42px; height:auto; margin:4px; padding:0; justify-content:center; border-radius:4px;
                     transition:background-color 240ms ease, transform 160ms cubic-bezier(.3,.7,.4,1); }
.gate .field .open:active { transform:scale(.96); }
.gate .field .open .arrow { font-size:15px; }
.gate .field.wrong { animation:wrong 420ms cubic-bezier(.36,.07,.19,.97); border-color:var(--muted); }
@keyframes wrong { 15%, 85% { transform:translateX(-1px); } 30%, 70% { transform:translateX(3px); } 45%, 55% { transform:translateX(-5px); } }
@media (prefers-reduced-motion:reduce) { .gate .field.wrong { animation:none; } }
