:root{
    --mbs-bg:#0b1220;
    --mbs-card:#0f1a30;
    --mbs-line:rgba(255,255,255,.10);
    --mbs-text:#e7eefc;
    --mbs-muted:#a8b4d6;
    --mbs-accent:#42C5F4;
    --mbs-danger:#ff6b6b;
    --mbs-shadow:0 10px 30px rgba(0,0,0,.35);
    --mbs-radius:18px;
}

*,
*::before,
*::after{
    box-sizing:border-box;
}

body.login-page{
    margin:0;
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:32px 16px;
    overflow:hidden;
}

body.login-page::before,
body.login-page::after{
    content:"";
    position:fixed;
    border-radius:50%;
    pointer-events:none;
}

body.login-page::before{
    width:460px;
    height:460px;
    left:-260px;
    bottom:-250px;
    border:1px solid rgba(66,197,244,.14);
    box-shadow:0 0 90px rgba(66,197,244,.08), inset 0 0 90px rgba(66,197,244,.05);
}

body.login-page::after{
    width:320px;
    height:320px;
    right:-190px;
    top:-190px;
    background:rgba(109,188,206,.07);
    box-shadow:0 0 100px rgba(109,188,206,.12);
}

.login-wrap{
    width:min(440px, calc(100vw - 24px));
    position:relative;
    isolation:isolate;
    background:linear-gradient(145deg, rgba(255,255,255,.075), transparent 38%), rgba(15,26,48,.92);
    border:1px solid rgba(255,255,255,.13);
    border-radius:24px;
    box-shadow:0 28px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06);
    padding:30px;
}

.login-wrap::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    border-radius:inherit;
    background:linear-gradient(120deg, rgba(66,197,244,.07), transparent 42%);
    pointer-events:none;
}

.login-brand{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:32px;
}

.login-brand-mark{
    width:34px;
    height:34px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:3px;
    padding:8px;
    border:1px solid rgba(66,197,244,.32);
    border-radius:11px;
    background:linear-gradient(145deg, rgba(66,197,244,.20), rgba(66,197,244,.06));
    box-shadow:0 8px 24px rgba(30,159,207,.18);
}

.login-brand-mark span{
    width:3px;
    border-radius:99px;
    background:#71dcff;
    box-shadow:0 0 8px rgba(66,197,244,.45);
}

.login-brand-mark span:nth-child(1){ height:8px; opacity:.65; }
.login-brand-mark span:nth-child(2){ height:15px; }
.login-brand-mark span:nth-child(3){ height:11px; opacity:.8; }

.login-brand-name{
    color:var(--mbs-text);
    font-size:15px;
    font-weight:850;
    letter-spacing:.12em;
}

.login-intro{ margin-bottom:24px; }

.login-eyebrow{
    margin-bottom:7px;
    color:#71dcff;
    font-size:11px;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.login-title{
    margin:0;
    font-size:30px;
    line-height:1.15;
    font-weight:850;
    letter-spacing:-.025em;
    color:var(--mbs-text);
}

.login-sub{
    margin-top:8px;
    color:var(--mbs-muted);
    font-size:14px;
    line-height:1.5;
}

.login-err{
    margin:12px 0;
    padding:10px 12px;
    border-radius:12px;
    border:1px solid rgba(255,107,107,.35);
    background:rgba(255,107,107,.12);
    color:#ffd0d0;
}

.login-form label{
    display:block;
    margin:14px 0 7px;
    font-weight:700;
    font-size:13px;
    color:var(--mbs-muted);
}

.login-form input{
    width:100%;
    min-height:46px;
    padding:12px 14px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(5,11,24,.45);
    color:var(--mbs-text);
    font-size:14px;
    outline:none;
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-form input::placeholder{
    color:rgba(168,180,214,.55);
}

.login-form input:focus{
    border-color:rgba(66,197,244,.60);
    box-shadow:0 0 0 4px rgba(66,197,244,.18);
    background:rgba(0,0,0,.22);
}

.login-form .login-check{
    margin:12px 0 0;
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--mbs-text);
    font-weight:600;
    font-size:13px;
    line-height:1.3;
    cursor:pointer;
    user-select:none;
    position:relative;
}

.login-form .login-check input[type="checkbox"]{
    margin:0;
    width:1px;
    height:1px;
    opacity:0;
    position:absolute;
    pointer-events:none;
}

.login-form .login-check-box{
    width:20px;
    height:20px;
    border-radius:7px;
    border:1px solid rgba(255,255,255,.28);
    background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 6px 12px rgba(0,0,0,.22);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    transition:all .18s ease;
}

.login-form .login-check-box::after{
    content:"";
    width:10px;
    height:6px;
    border-left:2px solid #fff;
    border-bottom:2px solid #fff;
    transform:rotate(-45deg) translateY(-1px) scale(0.75);
    opacity:0;
    transition:opacity .14s ease, transform .14s ease;
}

.login-form .login-check-text{
    letter-spacing:.1px;
}

.login-form .login-check input[type="checkbox"]:checked + .login-check-box{
    background:linear-gradient(180deg, #4fd0ff, #1fa8df);
    border-color:rgba(79,208,255,.95);
    box-shadow:0 0 0 3px rgba(66,197,244,.18), 0 8px 16px rgba(25,110,150,.35);
}

.login-form .login-check input[type="checkbox"]:checked + .login-check-box::after{
    opacity:1;
    transform:rotate(-45deg) translateY(-1px) scale(1);
}

.login-form .login-check input[type="checkbox"]:focus-visible + .login-check-box{
    box-shadow:0 0 0 4px rgba(66,197,244,.30), inset 0 1px 0 rgba(255,255,255,.16);
}

.login-form .login-check.is-disabled{
    opacity:.65;
    cursor:not-allowed;
}

.login-form .login-check input[type="checkbox"]:disabled{
    cursor:not-allowed;
}

.login-form .login-check input[type="checkbox"]:disabled + .login-check-box{
    filter:saturate(.45) brightness(.92);
}

.login-btn{
    width:100%;
    min-height:48px;
    margin-top:22px;
    padding:12px 15px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:1px solid rgba(97,214,255,.58);
    border-radius:13px;
    background:linear-gradient(135deg, #32b9eb, #278fc4);
    color:#061421;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 12px 28px rgba(25,144,194,.22), inset 0 1px 0 rgba(255,255,255,.24);
    transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.login-btn:hover{
    filter:brightness(1.08);
    transform:translateY(-1px);
    box-shadow:0 16px 34px rgba(25,144,194,.3), inset 0 1px 0 rgba(255,255,255,.28);
}

.login-btn:active{ transform:translateY(0); }

.login-btn:focus-visible{
    outline:3px solid rgba(113,220,255,.32);
    outline-offset:3px;
}

.login-btn:disabled{
    cursor:not-allowed;
    filter:saturate(.35);
    opacity:.65;
    transform:none;
}

.login-btn-arrow{
    font-size:18px;
    line-height:1;
    transition:transform .16s ease;
}

.login-btn:hover .login-btn-arrow{
    transform:translateX(3px);
}

.login-hint{
    margin-top:12px;
    color:var(--mbs-muted);
    font-size:12px;
}

@media (max-width: 420px){
    body.login-page::before,
    body.login-page::after{
        display:none;
    }
    .login-wrap{
        width: calc(100vw - 16px);
        padding: 22px 18px;
        border-radius: 20px;
    }
    .login-title{
        font-size: 26px;
    }
    .login-brand{ margin-bottom:26px; }
}

@media (max-width: 700px){
    body.login-page{
        min-height:100dvh;
        padding:max(24px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
    }

    body.login-page::before,
    body.login-page::after{
        display:none;
    }

    .login-wrap{
        width:min(440px, 100%);
        padding:20px 0;
        border:0;
        border-radius:0;
        background:transparent;
        box-shadow:none;
    }

    .login-wrap::after{
        display:none;
    }

    .login-brand{
        margin-bottom:38px;
    }

    .login-title{
        font-size:32px;
    }

    .login-form input{
        min-height:54px;
        padding:14px 16px;
        border-radius:15px;
        background:rgba(15,26,48,.72);
    }

    .login-btn{
        min-height:54px;
        border-radius:16px;
    }
}
