/* the door, plainer than the error pages: the place's mark and name, lines to type on, words to press, hearts rising behind */
body.door-page { background: var(--bg); overflow: hidden; }
.hearts { position: fixed; inset: 0; pointer-events: none; overflow: hidden; contain: strict; }
.hearts svg { position: absolute; bottom: -48px; fill: currentColor; animation: rise var(--t) linear var(--d) infinite; will-change: transform; }
@keyframes rise {
  from { transform: translate3d(0, 0, 0) rotate(var(--r)); }
  50% { transform: translate3d(var(--sway), -58vh, 0) rotate(0deg); }
  to { transform: translate3d(0, calc(-100vh - 96px), 0) rotate(calc(var(--r) * -1)); }
}
.door { position: relative; z-index: 1; width: min(272px, 100%); gap: 6px; }
.who { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.who img { width: 30px; height: 30px; object-fit: contain; border-radius: 7px; }
.who b { color: var(--bright); font-weight: 400; font-size: 17px; }
.who i { color: var(--dim); font-style: normal; font-size: 17px; }
.door input { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 7px 1px; font-size: 14px; }
.door input:focus { border-color: var(--wave); }
.door input:-webkit-autofill { -webkit-text-fill-color: var(--bright); box-shadow: 0 0 0 40px var(--bg) inset; caret-color: var(--bright); }
.door button { align-self: flex-start; margin: 10px 0 0; padding: 2px 0; background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0; color: var(--bright); font-size: 14px; }
.door button:hover, .door button:focus-visible { border-bottom-color: var(--wave); outline: none; }
.door a { margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .hearts svg { animation: none; bottom: auto; top: var(--y); } }
/* a password row: the line to type on, the canvas the scribble shows the letters on, the eye at its end */
.pw { position: relative; display: block; }
.pw[hidden] { display: none; }
.pw input { width: 100%; box-sizing: border-box; padding-right: 30px; touch-action: none; }
.pw canvas { position: absolute; left: 0; top: 0; width: calc(100% - 30px); height: 100%; pointer-events: none; }
.pw .eye { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; margin: 0; padding: 0; border: 0; color: var(--dim); background: none; cursor: pointer; }
.pw .eye:hover, .pw .eye:focus-visible { color: var(--bright); border: 0; outline: none; }
.pw .eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pw .eye.open .shut { display: none; }
.pw .eye.open { color: var(--wave); }
.pw.off input { border-bottom-color: var(--accent); }
.pw.on input { border-bottom-color: #5fd38a; }
.hint { color: var(--dim); font-size: 11px; font-style: normal; }
.hint[hidden] { display: none; }
.ways { display: flex; gap: 14px; }
.ways a[hidden] { display: none; }
/* the page is the screen itself: 100vh on a phone is taller than what shows, so the door sat low and moved as the bars came and went */
body.door-page { position: fixed; inset: 0; min-height: 0; box-sizing: border-box; overflow-y: auto; place-items: start stretch; }
body.door-page .door { margin: auto; }
/* a phone zooms into any field under 16px and keeps the zoom on the page after the sign-in; at 16 it never zooms */
@media (pointer: coarse) { .door input { font-size: 16px; } }
#said.kind { color: var(--bright); }
