:root{
    --bg-1:#071120;
    --bg-2:#0b1730;
    --bg-3:#111f3f;
    --stroke:rgba(255,255,255,0.14);
    --text:#eef4ff;
    --muted:#afc1df;
    --primary:#67d9ff;
    --primary-2:#8c7eff;
    --danger:#ff738f;
    --shadow:0 22px 60px rgba(0,0,0,.35);
}

*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
    min-height:100%;
    font-family:Inter,Segoe UI,Arial,sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at top left, rgba(103,217,255,.18), transparent 26%),
        radial-gradient(circle at right bottom, rgba(140,126,255,.16), transparent 28%),
        linear-gradient(135deg,var(--bg-1),var(--bg-2),var(--bg-3));
}

body{
    overflow-x:hidden;
}

a{
    color:inherit;
    text-decoration:none;
}

button,input,select,textarea{
    font:inherit;
}

.glass{
    background:linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
    border:1px solid var(--stroke);
    box-shadow:var(--shadow);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}

/* LOGIN */
.login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.login-wrap{
    width:100%;
    min-height:calc(100vh - 48px);
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-card-center{
    position:relative;
    overflow:hidden;
    width:100%;
    max-width:560px;
    padding:36px 30px;
    border-radius:30px;
}

.login-glow{
    position:absolute;
    border-radius:50%;
    filter:blur(12px);
    pointer-events:none;
    opacity:.75;
}

.login-glow-1{
    width:180px;
    height:180px;
    background:radial-gradient(circle, rgba(103,217,255,.28), transparent 70%);
    top:-40px;
    right:-30px;
}

.login-glow-2{
    width:220px;
    height:220px;
    background:radial-gradient(circle, rgba(140,126,255,.22), transparent 70%);
    bottom:-90px;
    left:-70px;
}

.brand-badge{
    position:relative;
    z-index:2;
    display:inline-flex;
    align-items:center;
    padding:10px 16px;
    border-radius:999px;
    background:linear-gradient(135deg, rgba(103,217,255,.20), rgba(140,126,255,.20));
    border:1px solid rgba(255,255,255,.16);
    color:#fff;
    font-weight:800;
    margin-bottom:18px;
    letter-spacing:.4px;
}

.login-heading{
    position:relative;
    z-index:2;
    margin-bottom:20px;
}

.login-card-center h1{
    margin:0 0 8px;
    font-size:48px;
    line-height:1.08;
    color:#eef4ff;
    font-weight:800;
    letter-spacing:-.6px;
}

.muted{
    margin:0;
    color:#b8c6df;
    font-size:18px;
}

.login-form{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top:8px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.form-group label{
    color:#eef4ff;
    font-size:15px;
    font-weight:700;
}

.form-control{
    width:100%;
    min-height:54px;
    padding:14px 16px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.10);
    color:#eef4ff;
    outline:none;
    transition:.2s ease;
    appearance:none;
    -webkit-appearance:none;
}

.form-control::placeholder{
    color:#c2cce0;
}

.form-control:focus{
    border-color:rgba(103,217,255,.55);
    box-shadow:0 0 0 4px rgba(103,217,255,.12);
    background:rgba(255,255,255,.12);
}

.password-wrap{
    position:relative;
}

.password-wrap .form-control{
    padding-right:56px;
}

.password-toggle{
    position:absolute;
    top:50%;
    right:10px;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    border:none;
    border-radius:12px;
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    display:grid;
    place-items:center;
}

.btn-primary{
    min-height:54px;
    width:100%;
    border:none;
    border-radius:16px;
    padding:14px 18px;
    cursor:pointer;
    font-weight:800;
    font-size:16px;
    background:linear-gradient(135deg,var(--primary),var(--primary-2));
    color:#071120;
    transition:.25s ease;
}

.btn-primary:hover{
    transform:translateY(-1px);
    filter:brightness(1.04);
}

.alert-danger{
    position:relative;
    z-index:2;
    padding:14px 16px;
    border-radius:16px;
    margin-bottom:16px;
    background:rgba(255,110,138,.14);
    border:1px solid rgba(255,110,138,.35);
    color:#fff;
}

/* APP LAYOUT */
.app-shell{
    display:flex;
    min-height:100vh;
    width:100%;
}

.sidebar{
    width:310px;
    min-width:310px;
    height:100vh;
    position:sticky;
    top:0;
    padding:20px;
    border-right:1px solid rgba(255,255,255,.08);
    border-radius:0 28px 28px 0;
    z-index:30;
    overflow-y:auto;
    overflow-x:hidden;
}

.sidebar-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}

.logo-box{
    display:flex;
    align-items:center;
    gap:14px;
}

.logo-orb{
    width:50px;
    height:50px;
    border-radius:50%;
    background:
        radial-gradient(circle at 30% 30%, #ffffff, #67d9ff 35%, #8c7eff 70%, #2e2a67 100%);
    box-shadow:0 0 28px rgba(103,217,255,.45);
}

.logo-title{
    font-size:22px;
    font-weight:800;
    letter-spacing:.3px;
}

.logo-sub{
    font-size:12px;
    color:var(--muted);
}

.sidebar-nav{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:18px;
}

.nav-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    border-radius:18px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    transition:.25s ease;
}

.nav-item:hover,
.nav-item.active{
    background:linear-gradient(135deg, rgba(103,217,255,.22), rgba(140,126,255,.22));
    border-color:rgba(255,255,255,.18);
    transform:translateY(-2px);
}

.nav-ico{
    width:38px;
    height:38px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,.08);
    font-size:18px;
}

.main-content{
    flex:1;
    min-width:0;
    padding:18px;
}

.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:18px 20px;
    border-radius:26px;
}

.topbar-left{
    display:flex;
    align-items:center;
    gap:16px;
}

.topbar-left h1{
    margin:0;
    font-size:28px;
    line-height:1.1;
}

.topbar-left p{
    margin:4px 0 0;
    font-size:14px;
    color:var(--muted);
}

.mobile-menu-btn,
.mobile-close{
    display:none;
    width:46px;
    height:46px;
    border:none;
    border-radius:14px;
    background:rgba(255,255,255,.08);
    color:var(--text);
    cursor:pointer;
    font-size:22px;
}

.sidebar-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(3,10,20,.58);
    z-index:20;
}

@media (max-width: 980px){
    .sidebar{
        position:fixed;
        left:0;
        top:0;
        bottom:0;
        width:86%;
        max-width:340px;
        min-width:unset;
        height:100vh;
        transform:translateX(-110%) rotateY(18deg) scale(.96);
        transform-origin:left center;
        transition:transform .35s ease;
        z-index:40;
        border-radius:0 28px 28px 0;
    }

    .sidebar.open{
        transform:translateX(0) rotateY(0) scale(1);
    }

    .sidebar-overlay.show{
        display:block;
    }

    .mobile-menu-btn,
    .mobile-close{
        display:grid;
        place-items:center;
    }

    .main-content{
        width:100%;
        padding:12px;
    }

    .topbar{
        padding:16px;
        border-radius:22px;
    }

    .topbar-left h1{
        font-size:22px;
    }
}

@media (max-width: 640px){
    .login-page{
        padding:16px;
    }

    .login-wrap{
        min-height:calc(100vh - 32px);
    }

    .login-card-center{
        padding:24px 18px;
        border-radius:22px;
    }

    .login-card-center h1{
        font-size:34px;
    }

    .muted{
        font-size:15px;
    }

    .form-control,
    .btn-primary{
        min-height:50px;
    }
}