\
:root{
    --red:#d92027;
    --red-hover:#e42a30;
    --panel:#151515;
    --field:#292929;
    --border:#3f3f3f;
    --muted:#8c8c8c;
}

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    min-height:100%;
    background:#000;
}

body{
    overflow-x:hidden;
    color:#fff;
    font-family:Arial,Helvetica,sans-serif;
}

button,
input{
    font:inherit;
}

.garage-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px 12px;
    background:#000;
}

.garage-stage{
    position:relative;
    width:min(1312px,calc(100vw - 24px));
    aspect-ratio:1312/750;
    max-height:calc(100vh - 30px);
    overflow:hidden;
    border:1px solid #292929;
    border-radius:15px;
    background-image:var(--closed-image);
    background-position:center;
    background-repeat:no-repeat;
    background-size:100% 100%;
    box-shadow:0 18px 60px rgba(0,0,0,.92);
}

.garage-stage.auth-open{
    background-image:var(--open-image);
}

.closed-click-zones{
    position:absolute;
    z-index:5;
    inset:0;
}

.garage-stage.auth-open .closed-click-zones{
    opacity:0;
    pointer-events:none;
}

.reference-button{
    position:absolute;
    bottom:6.8%;
    width:22.1%;
    height:7.7%;
    border:0;
    border-radius:12px;
    background:transparent;
    cursor:pointer;
}

.reference-button-register{
    left:27.1%;
}

.reference-button-login{
    left:50.9%;
}

.reference-button:hover{
    background:rgba(255,45,50,.06);
}

.auth-panel{
    position:absolute;
    z-index:20;
    top:3.35%;
    right:1.9%;
    bottom:3.6%;
    width:32.45%;
    overflow-y:auto;
    padding:109px 32px 28px;
    border:1px solid #404040;
    border-radius:15px;
    background:#151515;
    box-shadow:0 18px 50px rgba(0,0,0,.55);
    opacity:0;
    pointer-events:none;
    transform:translateX(12px);
    transition:opacity .15s ease,transform .22s ease;
}

.auth-panel.open{
    display:block;
    opacity:1;
    pointer-events:auto;
    transform:none;
}

.auth-panel::-webkit-scrollbar{
    width:5px;
}

.auth-panel::-webkit-scrollbar-thumb{
    border-radius:999px;
    background:#454545;
}

.auth-close{
    position:absolute;
    top:15px;
    right:17px;
    width:38px;
    height:38px;
    border:0;
    background:transparent;
    color:#999;
    cursor:pointer;
    font-size:29px;
    line-height:1;
}

.auth-close:hover{
    color:#fff;
}

.auth-view{
    display:none;
}

.auth-view.active{
    display:block;
}

.auth-symbol{
    position:relative;
    width:61px;
    height:61px;
    margin:0 auto 15px;
    border:1px solid var(--red);
    border-radius:50%;
    color:var(--red);
}

.person-head{
    position:absolute;
    top:15px;
    left:22px;
    width:14px;
    height:14px;
    border-radius:50%;
    background:var(--red);
}

.person-body{
    position:absolute;
    top:31px;
    left:16px;
    width:27px;
    height:14px;
    border-radius:12px 12px 5px 5px;
    background:var(--red);
}

.person-lock{
    position:absolute;
    right:9px;
    bottom:12px;
    color:var(--red);
    font-size:11px;
    font-weight:700;
}

.key-symbol{
    display:grid;
    place-items:center;
    font-size:18px;
}

.auth-view h1{
    margin:0;
    color:#fff;
    text-align:center;
    font-family:Impact,"Arial Black",Arial,sans-serif;
    font-size:24px;
    font-weight:400;
    letter-spacing:.2px;
}

.auth-subtitle{
    margin:8px 0 25px;
    color:#8c8c8c;
    text-align:center;
    font-size:13px;
}

.form-label{
    display:block;
    margin:0 0 8px;
    color:#ddd;
    font-size:13px;
}

.label-gap{
    margin-top:15px;
}

.garage-input{
    width:100%;
    height:48px;
    padding:0 14px;
    border:1px solid #424242;
    border-radius:7px;
    outline:none;
    background:#292929;
    color:#f3f3f3;
    font-size:14px;
}

.garage-input::placeholder{
    color:#777;
}

.garage-input:focus{
    border-color:#80262a;
    box-shadow:0 0 0 3px rgba(217,32,39,.08);
}

.password-wrap{
    position:relative;
}

.password-wrap .garage-input{
    padding-right:45px;
}

.password-toggle{
    position:absolute;
    top:50%;
    right:5px;
    transform:translateY(-50%);
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border:0;
    background:transparent;
    color:#7e7e7e;
    cursor:pointer;
    font-size:15px;
}

.password-toggle:hover{
    color:#d2d2d2;
}

.auth-options{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:14px 0 19px;
    font-size:12px;
}

.remember{
    display:flex;
    align-items:center;
    gap:7px;
    color:#909090;
}

.remember input{
    width:14px;
    height:14px;
    margin:0;
    accent-color:var(--red);
}

.link-button{
    padding:0;
    border:0;
    background:transparent;
    color:#e3262d;
    cursor:pointer;
    font-size:12px;
}

.submit-btn,
.secondary-btn{
    width:100%;
    min-height:47px;
    border-radius:7px;
    cursor:pointer;
    font-family:Impact,"Arial Black",Arial,sans-serif;
    font-size:15px;
    letter-spacing:.1px;
}

.submit-btn{
    border:0;
    background:var(--red);
    color:#fff;
}

.submit-btn:hover{
    background:var(--red-hover);
}

.secondary-btn{
    border:1px solid #424242;
    background:#151515;
    color:#fff;
}

.secondary-btn:hover{
    background:#202020;
}

.register-submit,
.reset-submit{
    margin-top:24px;
}

.or-line{
    position:relative;
    margin:12px 0;
    color:#777;
    text-align:center;
    font-size:13px;
    font-weight:700;
}

.or-line::before,
.or-line::after{
    content:"";
    position:absolute;
    top:50%;
    width:41%;
    height:1px;
    background:#2d2d2d;
}

.or-line::before{
    left:0;
}

.or-line::after{
    right:0;
}

.or-line span{
    position:relative;
    z-index:1;
    padding:0 8px;
    background:#151515;
}

@media(min-width:901px) and (max-height:775px){
    .garage-stage{
        width:min(1312px,calc((100vh - 30px) * 1.749333));
    }
}

@media(max-width:900px){
    .garage-page{
        align-items:flex-start;
        padding:16px;
    }

    .garage-stage{
        width:100%;
        min-height:690px;
        max-height:none;
        aspect-ratio:auto;
        background-size:auto 100%;
        background-position:center;
    }

    .reference-button{
        bottom:7%;
        width:27%;
        height:58px;
    }

    .reference-button-register{
        left:21.5%;
    }

    .reference-button-login{
        left:51.5%;
    }

    .auth-panel{
        top:3%;
        right:2.5%;
        bottom:3%;
        width:min(425px,54%);
        padding:105px 30px 25px;
    }
}

@media(max-width:650px){
    .garage-page{
        padding:0;
    }

    .garage-stage{
        min-height:100vh;
        border:0;
        border-radius:0;
        background-size:auto 100%;
        background-position:43% center;
    }

    .garage-stage.auth-open{
        background-image:var(--closed-image);
    }

    .closed-click-zones{
        display:flex;
        flex-direction:column;
        justify-content:flex-end;
        gap:12px;
        padding:0 20px 28px;
    }

    .reference-button{
        position:static;
        width:100%;
        height:54px;
        border-radius:10px;
        background:var(--red);
        color:#fff;
    }

    .reference-button::before{
        display:block;
        color:#fff;
        font-family:Impact,"Arial Black",Arial,sans-serif;
        font-size:16px;
    }

    .reference-button-register::before{
        content:"CREATE USER ACCOUNT";
    }

    .reference-button-login::before{
        content:"USER LOG IN";
    }

    .auth-panel{
        top:auto;
        right:10px;
        bottom:10px;
        left:10px;
        width:auto;
        max-height:88vh;
        padding:72px 23px 25px;
        transform:translateY(24px);
    }

    .auth-panel.open{
        transform:none;
    }
}
