/* HP961 MOBILE AUTH */

@media(max-width:850px),
(max-width:1100px) and (max-height:500px){

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

body main{
    display:flex!important;
    flex-direction:column;
    align-items:center;
    width:100%!important;
    height:auto!important;
    min-height:100vh;
    min-height:100dvh;
    padding:clamp(110px,29vw,245px) 12px 30px!important;
    box-sizing:border-box;
    container-type:normal!important;
    background-size:100% auto!important;
    background-position:center top!important;
    background-attachment:scroll!important;
}

body .panel{
    position:relative!important;
    display:block!important;
    width:min(100%,520px)!important;
    padding:24px 18px!important;
    margin:0 auto!important;
    border:2px solid #a568c8;
    border-radius:20px!important;
    background:linear-gradient(145deg,#241a32,#141622);
    box-shadow:0 0 25px #9d43cc55;
    box-sizing:border-box;
}

body .panel h1{
    position:static!important;
    width:auto!important;
    height:auto!important;
    clip-path:none!important;
    overflow:visible!important;
    text-align:center;
    color:#fff;
    font-size:26px;
    margin:0 0 22px;
}

body form{
    display:flex!important;
    flex-direction:column;
    gap:14px;
    width:100%;
}

body .v7-input-wrap,
body .field{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    font-size:16px!important;
}

body .field>label{
    position:static!important;
    display:block!important;
    width:auto!important;
    height:auto!important;
    clip-path:none!important;
    margin-bottom:6px;
    color:#eee;
    font-size:13px;
}

body .password-field{
    position:relative;
    width:100%;
    height:auto;
}

body .panel input:not([type=checkbox]):not([type=hidden]){
    width:100%!important;
    height:52px!important;
    padding:12px!important;
    font-size:16px!important;
    border:1px solid #89769c;
    border-radius:10px;
    background:#151923;
    color:white;
    box-sizing:border-box;
}

body .v7-input-wrap:has(button) input,
body .password-field input{
    padding-right:75px!important;
}

body .v7-eye,
body .show-password{
    position:absolute!important;
    right:5px!important;
    top:50%!important;
    transform:translateY(-50%);
    width:auto!important;
    min-width:44px;
    height:42px!important;
    padding:5px;
    border-radius:7px;
    color:white!important;
    background:#352b45!important;
}

body .v7-row,
body .terms-area{
    position:static!important;
    display:flex!important;
    flex-wrap:wrap;
    align-items:center;
    width:100%!important;
    height:auto!important;
    color:white!important;
    font-size:14px!important;
    gap:10px;
    line-height:1.5;
}

body .v7-row a,
body .terms-area a{
    color:#d5b6ff!important;
}

body input[type=checkbox]{
    appearance:auto!important;
    width:20px!important;
    height:20px!important;
    accent-color:#87c742;
    flex-shrink:0;
}

body button[type=submit],
body .switch{
    position:static!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:50px;
    padding:14px 10px!important;
    border-radius:11px!important;
    border:1px solid #a8df63!important;
    background:linear-gradient(#83ca35,#398719)!important;
    color:white!important;
    font-size:17px!important;
    font-weight:800;
    text-align:center;
    text-decoration:none;
    box-sizing:border-box;
}

body .switch{
    margin-top:14px!important;
    background:linear-gradient(#9b45c5,#602784)!important;
    border-color:#c888e6!important;
}

body #online{
    position:static!important;
    width:auto!important;
    height:auto!important;
    margin:15px auto!important;
    padding:12px 20px;
    border:1px solid #a568c8;
    border-radius:25px;
    font-size:14px!important;
    background:#171323;
}

body.register .creator-box{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    width:100%!important;
    max-height:none!important;
    margin:0 0 10px!important;
    padding:14px!important;
    border-radius:14px;
    overflow:visible!important;
    background:#20192c;
    box-sizing:border-box;
}

body .creator-box h2{
    font-size:19px!important;
}

body .creator-box button,
body .creator-box select{
    min-height:44px;
    font-size:14px!important;
}

body .creator-box select{
    font-size:16px!important;
    max-width:100%;
}

body .ward-preview{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
}

body .ward-preview img{
    height:145px!important;
    max-width:100%;
    object-fit:contain;
    image-rendering:pixelated;
}

body .creator-box #ward-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
}

body .creator-box #ward-grid button{
    min-height:58px;
    min-width:0;
}

body .creator-box .ward-swatches{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    max-height:none!important;
}

body .creator-box .ward-swatches button{
    width:32px!important;
    height:32px!important;
    min-height:32px!important;
}

body .extra,
body .captcha-extra,
body .panel [role=alert]{
    position:static!important;
    width:100%!important;
    margin:0!important;
    box-sizing:border-box;
    overflow-wrap:anywhere;
}

body .captcha-extra{
    overflow-x:auto;
}

body .auth-warning{
    max-width:94%;
    max-height:35vh;
    font-size:14px!important;
}

body .panel img{
    max-width:100%;
}

}

@media(max-width:360px){
    body .panel{
        padding:18px 12px!important;
    }
    body .creator-box #ward-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}
