/* Steven Sport: acceso interactivo por lámpara y cadena. */
html,
body.login-page {
    min-height: 100%;
}

body.login-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background:
        radial-gradient(circle at 72% 23%, rgba(226, 26, 38, .16), transparent 25%),
        linear-gradient(135deg, #08090c 0%, #11141a 48%, #06070a 100%);
    color: #edf2f6;
    transition: background-color .9s ease;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(105deg, transparent 0 43%, rgba(255, 255, 255, .025) 43.2% 43.8%, transparent 44% 100%),
        repeating-linear-gradient(90deg, transparent 0 84px, rgba(255, 255, 255, .018) 85px 86px),
        linear-gradient(rgba(0, 3, 8, .92), rgba(1, 3, 7, .96));
    opacity: 1;
    transition: opacity 1.05s cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
}

body.login-page::after {
    content: "STEVEN SPORT";
    position: fixed;
    left: 5vw;
    bottom: 5vh;
    z-index: -1;
    color: rgba(255, 255, 255, .035);
    font: 900 clamp(58px, 12vw, 180px)/.78 Arial, sans-serif;
    letter-spacing: -.07em;
    white-space: nowrap;
    text-transform: uppercase;
    opacity: .15;
    transform: translateY(18px);
    transition: opacity 1s ease, transform 1.1s cubic-bezier(.2, .75, .2, 1);
    pointer-events: none;
}

body.login-page.lamp-on::before {
    opacity: .22;
}

body.login-page.lamp-on::after {
    opacity: 1;
    transform: translateY(0);
}

.login-lamp {
    position: fixed;
    top: clamp(8px, 3vh, 34px);
    left: clamp(36px, 16vw, 250px);
    z-index: 5;
    width: 310px;
    height: 390px;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .7));
    transform-origin: 72px 26px;
}

.login-lamp-asset {
    position: absolute;
    left: -30px;
    top: 23px;
    z-index: 2;
    display: block;
    width: 270px;
    height: auto;
    pointer-events: none;
    user-select: none;
    transition: opacity .62s ease, filter .7s ease, transform .55s ease;
}

.login-lamp-asset-off {
    opacity: 1;
    filter: brightness(.6) saturate(.62) contrast(1.12);
}

.login-lamp-asset-on {
    opacity: 0;
    filter: brightness(.94) saturate(.86) contrast(1.05) hue-rotate(325deg);
}

.lamp-on .login-lamp-asset-off {
    opacity: 0;
}

.lamp-on .login-lamp-asset-on {
    opacity: 1;
    filter: brightness(1.03) saturate(1.15) contrast(1.04) hue-rotate(325deg)
        drop-shadow(18px 24px 30px rgba(235, 31, 45, .18));
}

.login-lamp-switch {
    --pull-distance: 0px;
    position: absolute;
    top: 135px;
    left: 49px;
    z-index: 3;
    width: 62px;
    height: 286px !important;
    min-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none;
    appearance: none;
    background: transparent !important;
    box-shadow: none !important;
    cursor: grab;
    touch-action: none;
}

.login-lamp-switch::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    width: 11px;
    height: calc(190px + var(--pull-distance));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='18' viewBox='0 0 11 18'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop stop-color='%23734a05'/%3E%3Cstop offset='.34' stop-color='%23f9d878'/%3E%3Cstop offset='.62' stop-color='%23c38a19'/%3E%3Cstop offset='1' stop-color='%235f3900'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='5.5' cy='4.3' rx='2.25' ry='3.45' fill='none' stroke='url(%23g)' stroke-width='1.45'/%3E%3Cellipse cx='5.5' cy='12.7' rx='3.25' ry='2.05' fill='none' stroke='url(%23g)' stroke-width='1.4'/%3E%3Cpath d='M5.5 7.7v2.8' stroke='%23e8b84d' stroke-width='1'/%3E%3C/svg%3E");
    background-position: center top;
    background-size: 11px 18px;
    background-repeat: repeat-y;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, .85));
    transition: height .16s ease;
}

.login-lamp-switch::after {
    content: "";
    position: absolute;
    top: 185px;
    left: 19px;
    width: 25px;
    height: 63px;
    border: 2px solid #4f2e00;
    border-radius: 5px 5px 9px 9px;
    background:
        repeating-linear-gradient(45deg, rgba(91, 53, 0, .42) 0 2px, rgba(255, 224, 133, .38) 2px 4px),
        linear-gradient(90deg, #5d3700 0%, #bd8012 16%, #ffe39a 45%, #c58b1c 70%, #5b3400 100%);
    box-shadow: 0 6px 9px rgba(0, 0, 0, .62), inset 2px 1px 2px rgba(255, 246, 198, .58), inset -2px 0 3px rgba(73, 39, 0, .55);
    transform: translateY(var(--pull-distance));
    transition: transform .16s ease, box-shadow .2s ease;
}

.login-lamp-switch:hover::after,
.login-lamp-switch:focus-visible::after {
    box-shadow: 0 0 0 5px rgba(255, 218, 126, .18), 0 4px 7px rgba(0, 0, 0, .45), inset 2px 1px 2px rgba(255, 255, 255, .3);
}

.login-lamp-switch.is-pulling {
    cursor: grabbing;
}

.login-lamp-switch.is-pulling::before,
.login-lamp-switch.is-pulling::after {
    transition: none;
}

.login-lamp-switch.is-armed::after {
    box-shadow: 0 0 0 6px rgba(255, 214, 101, .25), 0 4px 8px rgba(0, 0, 0, .5), inset 2px 1px 2px rgba(255, 255, 255, .3);
}

.login-lamp-switch.pull-click::before {
    animation: steven-chain-stretch .5s ease;
}

.login-lamp-switch.pull-click::after {
    animation: steven-chain-knob .5s ease;
}

.login-lamp-hint {
    position: fixed;
    top: 10px;
    left: calc(clamp(36px, 16vw, 250px) + 20px);
    z-index: 6;
    width: 190px;
    margin: 0;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    background: rgba(2, 5, 9, .46);
    color: rgba(220, 232, 236, .76);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .01em;
    text-align: center;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .16);
    backdrop-filter: blur(5px);
    transition: color .5s ease, border-color .5s ease, box-shadow .5s ease;
}

.lamp-on .login-lamp-hint {
    color: #fff0d1;
    border-color: rgba(236, 53, 65, .42);
    box-shadow: 0 0 20px rgba(230, 34, 47, .2);
}

body.login-page .login-box {
    position: relative;
    z-index: 4;
    width: min(390px, calc(100vw - 28px));
    margin: 0;
    transform-origin: 50% 32%;
    transition: opacity .7s ease .16s, transform .8s cubic-bezier(.2, .75, .2, 1) .12s, filter .65s ease .12s, visibility 0s linear 0s;
}

.lamp-ready.lamp-off .login-box {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    filter: blur(9px);
    transform: translateY(28px) scale(.94);
    transition-delay: 0s, 0s, 0s, .7s;
}

.lamp-ready.lamp-on .login-box {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

@keyframes steven-chain-stretch {
    0%, 100% { transform: scaleY(1); }
    45% { transform: scaleY(1.22); }
}

@keyframes steven-chain-knob {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(42px); }
}

@media (max-width: 760px) {
    body.login-page {
        align-items: flex-end;
        padding-bottom: 7vh;
    }

    .login-lamp {
        top: 22px;
        left: -18px;
        transform: scale(.67);
        transform-origin: top left;
    }

    .login-lamp-hint {
        top: 7px;
        left: 5px;
        width: 155px;
        padding: 4px 7px;
        font-size: 9px;
    }

    body.login-page .login-box {
        width: min(390px, calc(100vw - 24px));
    }
}

@media (prefers-reduced-motion: reduce) {
    body.login-page::before,
    body.login-page::after,
    .login-lamp-asset,
    body.login-page .login-box {
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }

    .login-lamp-switch.pull-click::before,
    .login-lamp-switch.pull-click::after {
        animation-duration: .01ms !important;
    }
}
