.login-slider { width: min(400px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; box-sizing: border-box; overflow: auto; border: 0; background: transparent; color: #253129; font-family: inherit; }
.login-slider-countdown { width: min(320px, calc(100vw - 32px)); padding: 0; border: 1px solid #e0e4df; border-radius: 8px; color: #253129; text-align: center; font-family: inherit; }
.login-slider-countdown::backdrop { background: rgb(18 24 20 / 58%); backdrop-filter: blur(5px); }
.slider-countdown-panel { display: grid; justify-items: center; gap: 8px; padding: 28px 20px; }
.slider-countdown-panel h2, .slider-countdown-panel p { margin: 0; }
.slider-countdown-panel h2 { font-size: 18px; }
.slider-countdown-panel p, .slider-countdown-panel span { color: #657168; font-size: 13px; }
.slider-countdown-panel output { display: grid; place-items: center; width: 72px; aspect-ratio: 1; margin-top: 8px; border: 4px solid #d7e9db; border-radius: 50%; color: #287042; font-size: 30px; font-variant-numeric: tabular-nums; }
.slider-unable { display: block; margin: 10px auto 0; padding: 6px 8px; border: 0; background: transparent; color: #657168; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.slider-panel { position: relative; padding: 20px; border: 1px solid #e0e4df; border-radius: 8px; background: #fff; box-shadow: inset 0 1px 0 #fff; }
.slider-mascot { display: block; width: 142px; height: 128px; object-fit: contain; margin: 0 auto -1px; pointer-events: none; user-select: none; }
.login-slider::backdrop { background: rgb(18 24 20 / 58%); }
.login-slider[open] { animation: slider-enter 420ms cubic-bezier(.16, 1, .3, 1) both; }
.login-slider[open]::backdrop { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: slider-backdrop-enter 320ms ease-out both; }
.login-slider[open] .slider-header { animation: slider-content-enter 320ms 60ms ease-out both; }
.login-slider[open] .slider-picture { animation: slider-content-enter 380ms 100ms ease-out both; }
.login-slider[open] .slider-track, .login-slider[open] .slider-footer { animation: slider-content-enter 340ms 150ms ease-out both; }
.slider-picture::after { content: ""; position: absolute; inset: -30% -60%; pointer-events: none; background: linear-gradient(110deg, transparent 38%, rgb(255 255 255 / 5%) 44%, rgb(255 255 255 / 25%) 49%, rgb(255 255 255 / 5%) 54%, transparent 60%); opacity: 0; }
.login-slider[open] .slider-picture::after { animation: slider-light-pass 1000ms 160ms ease-out both; }
@keyframes slider-enter { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slider-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes slider-content-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes slider-light-pass { 0% { opacity: 0; transform: translateX(-55%); } 20% { opacity: 1; } 75% { opacity: .7; } 100% { opacity: 0; transform: translateX(55%); } }
body:has(.login-slider[open]) { overflow: hidden; }
.slider-header, .slider-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.slider-header { margin-bottom: 14px; }
.slider-header h2 { margin: 0; font-size: 18px; line-height: 1.5; letter-spacing: 0; }
.slider-close, .slider-refresh { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; color: #657168; background: transparent; cursor: pointer; }
.slider-close:hover, .slider-refresh:hover { background: #f0f3f0; }
.slider-picture { position: relative; width: 100%; aspect-ratio: 444 / 332; overflow: hidden; border-radius: 6px; background: #edf0ed; }
.slider-picture canvas:first-child { display: block; width: 100%; height: 100%; }
.slider-picture .slider-piece { position: absolute; top: 0; left: 0; width: calc(76 / 444 * 100%); height: 100%; filter: drop-shadow(0 2px 3px #0009); }
.slider-track { position: relative; height: 48px; margin-top: 18px; border-radius: 6px; background: #edf0ed; box-shadow: inset 0 0 0 1px #dce3dc; overflow: hidden; user-select: none; }
.slider-track > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #667269; pointer-events: none; }
.slider-progress { position: absolute; inset: 0 auto 0 0; background: #d7e9db; }
.slider-handle { position: absolute; top: 0; left: 0; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid #b7cabc; border-radius: 6px; background: #fff; color: #36744b; cursor: grab; touch-action: none; user-select: none; }
.slider-handle:active { cursor: grabbing; background: #f1f7f2; }
.login-slider button:focus-visible { outline: 2px solid #36744b; outline-offset: -3px; }
.slider-footer { margin-top: 10px; min-height: 36px; }
.slider-footer p { margin: 0; font-size: 13px; line-height: 1.5; color: #657168; }
.login-slider[data-state="error"] .slider-footer p { color: #b13c37; }
.login-slider[data-state="success"] .slider-footer p { color: #287042; }
.login-slider[data-state="success"] .slider-progress { background: #bde3c8; }
.login-slider[data-state="error"] .slider-handle, .login-slider[data-state="error"] .slider-piece { transition: left .25s ease; }
@media (max-height: 700px) { .slider-mascot { width: 100px; height: 90px; } }
@media (max-height: 540px) { .login-slider { width: min(320px, calc(100vw - 24px)); } .slider-panel { padding: 12px; } .slider-mascot { width: 64px; height: 58px; } .slider-header { margin-bottom: 8px; } .slider-track { margin-top: 10px; } .slider-picture { width: auto; max-width: 100%; height: min(160px, 36dvh); margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { .login-slider, .login-slider::backdrop, .login-slider *, .login-slider *::after { animation: none !important; transition: none !important; } .slider-picture::after { display: none; } }
