/* 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; }
/* a season's shapes: leaves and snow fall instead, ghosts fade in and out as they go */
.hearts svg.fall { bottom: auto; top: -48px; animation-name: fall; }
.hearts svg.fade { animation: rise var(--t) linear var(--d) infinite, fade var(--f) ease-in-out var(--d) infinite; }
@keyframes fall {
  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)); }
}
@keyframes fade { 0%, 100% { opacity: 0; } 50% { opacity: var(--o); } }
/* each one comes up out of nothing as the page opens; a pumpkin's candle and the snow's glint flicker, a leaf turns in
   the air, and its halo may spill past its box */
.hearts svg { overflow: visible; }
.hearts .in { animation: enter 2.6s ease-out var(--in, 0s) both; }
.hearts .glow { animation: flicker var(--k, 2.6s) linear infinite; }
.hearts .flutter { transform-box: fill-box; transform-origin: center; animation: flutter var(--k, 2.6s) ease-in-out infinite alternate; }
@keyframes enter { from { opacity: 0; } }
@keyframes flicker { 0%, 100% { opacity: .85; } 12% { opacity: 1; } 21% { opacity: .62; } 33% { opacity: .95; } 48% { opacity: .78; } 61% { opacity: 1; } 77% { opacity: .7; } }
@keyframes flutter { from { transform: rotate(-24deg) scaleX(1); } 50% { transform: rotate(4deg) scaleX(.45); } to { transform: rotate(28deg) scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hearts svg, .hearts svg.fall, .hearts svg.fade { animation: none; bottom: auto; top: var(--y); }
  .hearts .in, .hearts .glow, .hearts .flutter { animation: none; }
}
/* 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); }
/* the backup codes, once, after an account is made: two columns of codes, a tick, and only then the way on */
.door[hidden] { display: none; }
.backup h1 { font-size: 20px; margin: 0; color: var(--bright); }
.backup .warn { color: var(--accent); min-height: 0; }
.backup ol { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; margin: 6px 0; padding: 0; list-style: none; font: 14px/1.6 var(--sy-mono, ui-monospace, Consolas, monospace); color: var(--bright); user-select: all; }
.backup .tick { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; cursor: pointer; }
.backup .tick input { width: 14px; height: 14px; margin: 0; padding: 0; border: 0; accent-color: var(--wave); }
