/* Login page: white background, white card and a walking character. */

body {
    background-color: #ffffff;
    background-image: radial-gradient(#e7e5e4 1px, transparent 1px);
    background-size: 22px 22px;
}

.login-card-wrap { position: relative; }
.login-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 1px solid #e2e0dc;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
}


.login-card input:not([type='hidden']) { transition: border-color .15s ease, box-shadow .15s ease; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Walker: patrols the top edge of the card, stops when you type */
.walker {
    position: absolute;
    z-index: 3;
    bottom: calc(100% - 3px);
    left: 0;
    width: 44px;
    height: 66px;
    pointer-events: none;
    animation: patrol 9s linear infinite alternate;
}
.walker.is-stopped { animation-play-state: paused; }
@keyframes patrol { from { left: 0; } to { left: calc(100% - 44px); } }
.walker-svg { display: block; width: 100%; height: 100%; overflow: visible; }

.w-leg, .w-arm { transform-box: fill-box; transform-origin: 50% 6%; }
.w-leg { animation: swing .55s ease-in-out infinite alternate; }
.w-leg-b { animation-direction: alternate-reverse; }
.w-arm { animation: swing-arm .55s ease-in-out infinite alternate; }
.w-arm-a { animation-direction: alternate-reverse; }
.w-body { animation: bob .275s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes swing-arm { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }

.walker.is-stopped .w-leg,
.walker.is-stopped .w-arm,
.walker.is-stopped .w-body { animation: none; }

.w-pupil { transition: transform .18s ease-out; }
.w-cover { opacity: 0; transform: translateY(8px); transform-box: fill-box; transition: opacity .2s ease, transform .3s cubic-bezier(.3, 1.3, .5, 1); }
.walker.is-hiding .w-cover { opacity: 1; transform: translateY(0); }
.walker.is-hiding .w-arm-b, .walker.is-hiding .w-pupil { opacity: 0; }
.walker.is-sad .w-mouth { d: path("M28 36 Q32 32 36 36"); }

.login-card.is-error { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }