:root{
    --primary:#2ec27e;
    --primary-dark:#199c61;
    --danger:#dc2626;
    --danger-bg:#fee2e2;
    --danger-border:#fecaca;
    --text:#1e293b;
    --text-light:#64748b;
    --card:rgba(255,255,255,.82);
    --border:rgba(255,255,255,.45);
    --shadow:0 20px 50px rgba(15,23,42,.08);
    --radius:24px;
    --transition:.3s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Inter",sans-serif;
    background:linear-gradient(135deg,#eefaf4,#f8fbff,#edf7ff);
    color:var(--text);
    min-height:100vh;
    overflow-x:hidden;
    position:relative;
}

.background{
    position:fixed;
    inset:0;
    z-index:-2;
    overflow:hidden;
}

.blur{
    position:absolute;
    border-radius:50%;
    filter:blur(110px);
    opacity:.45;
}

.blur-1{
    width:420px;
    height:420px;
    background:#6ee7b7;
    left:-120px;
    top:-120px;
}

.blur-2{
    width:520px;
    height:520px;
    background:#93c5fd;
    right:-180px;
    bottom:-180px;
}

.wrapper{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
}

.login-card{
    width:100%;
    max-width:560px;
    background:var(--card);
    backdrop-filter:blur(20px);
    border:1px solid var(--border);
    border-radius:30px;
    padding:40px;
    box-shadow:var(--shadow);
    animation:fadeUp .5s ease;
}

.logo-area{
    text-align:center;
    margin-bottom:30px;
}

.logo-area img{
    width:82px;
    margin-bottom:16px;
}

.logo-area h1{
    font-size:2rem;
    margin-bottom:6px;
}

.logo-area p{
    color:var(--text-light);
}

.warning-box{
    display:flex;
    gap:18px;
    align-items:flex-start;
    background:var(--danger-bg);
    border:1px solid var(--danger-border);
    border-left:6px solid var(--danger);
    border-radius:18px;
    padding:20px;
    margin-bottom:28px;
}

.warning-icon{
    font-size:2rem;
    flex-shrink:0;
}

.warning-box h3{
    color:var(--danger);
    margin-bottom:8px;
    font-size:1rem;
}

.warning-box p{
    color:#7f1d1d;
    line-height:1.7;
    font-size:.92rem;
}

.login-form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.field label{
    font-size:.88rem;
    font-weight:600;
}

.field input{
    width:100%;
    height:52px;
    border:none;
    border-radius:16px;
    padding:0 18px;
    font-size:.95rem;
    background:#fff;
    outline:none;
    transition:var(--transition);
    box-shadow:0 0 0 1px rgba(0,0,0,.08);
}

.field input:focus{
    box-shadow:0 0 0 4px rgba(46,194,126,.18);
}

.login-btn,
.primary-btn,
.logout-btn{
    border:none;
    cursor:pointer;
    transition:var(--transition);
    font-family:"Inter",sans-serif;
    font-weight:600;
}

.login-btn,
.primary-btn{
    height:52px;
    border-radius:16px;
    color:#fff;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    box-shadow:0 15px 30px rgba(46,194,126,.28);
}

.login-btn:hover,
.primary-btn:hover{
    transform:translateY(-3px);
}

.dashboard{
    display:none;
    min-height:100vh;
}

.hero{
    padding:35px 25px 20px;
}

.hero-top{
    width:min(1280px,95%);
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:var(--card);
    backdrop-filter:blur(20px);
    border-radius:24px;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    padding:25px 30px;
}

.hero-title{
    display:flex;
    align-items:center;
    gap:18px;
}

.logo-box{
    width:70px;
    height:70px;
    border-radius:18px;
    background:linear-gradient(135deg,var(--primary),#63dca7);
    display:flex;
    align-items:center;
    justify-content:center;
}

.logo-box img{
    width:50px;
}

.title-text h1{
    margin-bottom:5px;
    font-size:1.6rem;
}

.title-text p{
    color:var(--text-light);
}

.logout-btn{
    padding:12px 22px;
    border-radius:14px;
    background:#fff;
    color:#ef4444;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
}

.container{
    width:min(1280px,95%);
    margin:35px auto;
}

.menu-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
    gap:24px;
}

.menu-card{
    background:var(--card);
    backdrop-filter:blur(18px);
    border-radius:24px;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    padding:28px;
    cursor:pointer;
    transition:var(--transition);
}

.menu-card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 45px rgba(46,194,126,.15);
}

.menu-icon{
    width:70px;
    height:70px;
    border-radius:18px;
    background:linear-gradient(135deg,var(--primary),#63dca7);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
    color:#fff;
    margin-bottom:20px;
}

.menu-card h3{
    margin-bottom:8px;
}

.menu-card p{
    color:var(--text-light);
    line-height:1.6;
}

.loading{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(255,255,255,.75);
    backdrop-filter:blur(8px);
    z-index:9999;
}

.loader-card{
    background:#fff;
    border-radius:24px;
    padding:35px;
    text-align:center;
    box-shadow:0 20px 45px rgba(15,23,42,.15);
}

.loader-card p{
    margin-top:16px;
    color:var(--text-light);
}

.spinner{
    width:58px;
    height:58px;
    margin:auto;
    border-radius:50%;
    border:5px solid rgba(46,194,126,.2);
    border-top-color:var(--primary);
    animation:spin .8s linear infinite;
}

.popup-alert{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(15,23,42,.45);
    backdrop-filter:blur(5px);
    z-index:99999;
}

.popup-box{
    width:100%;
    max-width:360px;
    background:#fff;
    border-radius:24px;
    text-align:center;
    padding:35px;
    animation:fadeUp .35s ease;
}

.popup-icon{
    width:72px;
    height:72px;
    margin:auto auto 18px;
    border-radius:50%;
    background:#ef4444;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
}

.popup-box h3{
    margin-bottom:10px;
}

.popup-box p{
    color:var(--text-light);
    margin-bottom:24px;
    line-height:1.7;
}

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#b8dcca;
    border-radius:50px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--primary);
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(18px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:768px){

    .login-card{
        padding:28px;
    }

    .hero-top{
        flex-direction:column;
        text-align:center;
    }

    .hero-title{
        flex-direction:column;
    }

    .title-text h1{
        font-size:1.4rem;
    }

}

@media(max-width:480px){

    .wrapper{
        padding:18px;
    }

    .warning-box{
        flex-direction:column;
    }

    .menu-grid{
        grid-template-columns:1fr;
    }

}