/* =====================================================
   RESET
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    min-height:100%;
}

body{
    display:flex;
    justify-content:center;
    align-items:center;

    padding:30px 0;

    overflow:hidden;

    background:#111;

    font-family:"Montserrat",sans-serif;
}


/* =====================================================
   BACKGROUND
===================================================== */

.background{

    position:fixed;

    inset:0;

    z-index:0;

    background:
        linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
        url("/static/images/background.png");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    transform:scale(1.04);

}


/* =====================================================
   MAIN CARD
===================================================== */

.login-card{

    position:relative;

    z-index:5;

    width:520px;

    max-width:92vw;

    padding:40px;

    border-radius:26px;

    background:
        linear-gradient(
            145deg,
            rgba(18,18,18,.86),
            rgba(8,8,8,.73)
        );

    border:1px solid rgba(212,175,55,.28);

    box-shadow:
        inset 0 1px rgba(255,255,255,.05),
        0 20px 60px rgba(0,0,0,.45);

}

.login-card::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:26px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.05),
            transparent 35%
        );

    pointer-events:none;

}


/* =====================================================
   LOGO
===================================================== */

.logo{

    display:flex;

    justify-content:center;

    align-items:center;

    margin-bottom:14px;

}

.logo-img{

    width:90px;

    height:auto;

    user-select:none;

    pointer-events:none;

    transition:.3s;

    filter:
        drop-shadow(0 0 18px rgba(212,175,55,.35))
        drop-shadow(0 0 45px rgba(212,175,55,.18));

}

.logo-img:hover{

    transform:scale(1.04);

}


/* =====================================================
   TITLES
===================================================== */

h1{

    text-align:center;

    color:#e0bb45;

    font-size:48px;

    font-weight:800;

    letter-spacing:3px;

    text-transform:uppercase;

    margin-bottom:4px;

    text-shadow:
        0 0 16px rgba(224,187,69,.25);

}

.subtitle{

    text-align:center;

    color:#f0f0f0;

    font-size:17px;

    letter-spacing:4px;

    margin-bottom:18px;

}

/* =====================================================
   INPUTS
===================================================== */

.input-group{

    position:relative;

    margin-bottom:16px;

}

.input-group i{

    position:absolute;

    top:50%;
    left:18px;

    transform:translateY(-50%);

    color:#d4af37;

    font-size:17px;

    z-index:2;

}

.input-group input{

    width:100%;

    height:56px;

    padding:0 18px 0 54px;

    border-radius:12px;

    border:1px solid rgba(255,255,255,.08);

    background:rgba(20,20,20,.92);

    color:#fff;

    font-size:17px;

    font-family:"Montserrat",sans-serif;

    transition:.25s;

}

.input-group input::placeholder{

    color:#8f8f8f;

}

.input-group input:focus{

    outline:none;

    border-color:#d4af37;

    box-shadow:0 0 18px rgba(212,175,55,.20);

}


/* =====================================================
   BUTTONS
===================================================== */

button{

    width:100%;

    height:58px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    font-size:19px;

    font-weight:800;

    letter-spacing:2px;

    color:#111;

    background:linear-gradient(
        90deg,
        #f6d86b,
        #d4af37,
        #b8860b
    );

    transition:.25s;

    box-shadow:
        0 8px 25px rgba(212,175,55,.25);

}

button:hover{

    transform:translateY(-2px);

    box-shadow:
        0 12px 35px rgba(212,175,55,.40);

}


/* =====================================================
   SEPARATOR
===================================================== */

.separator{

    display:flex;

    align-items:center;

    gap:14px;

    margin:22px 0;

}

.separator::before,
.separator::after{

    content:"";

    flex:1;

    height:1px;

    background:rgba(255,255,255,.10);

}

.separator span{

    color:#888;

    font-size:12px;

    letter-spacing:2px;

}


/* =====================================================
   REGISTER
===================================================== */

.register-box{

    text-align:center;

}

.register-box p{

    color:#9d9d9d;

    margin-bottom:12px;

}

.register-btn{

    display:flex;

    justify-content:center;

    align-items:center;

    width:100%;

    height:56px;

    border-radius:12px;

    text-decoration:none;

    border:1px solid rgba(212,175,55,.35);

    color:#d4af37;

    font-weight:700;

    letter-spacing:2px;

    transition:.25s;

}

.register-btn:hover{

    background:rgba(212,175,55,.10);

    box-shadow:0 0 22px rgba(212,175,55,.20);

}

/* =====================================================
   DOWNLOAD
===================================================== */

.download-box{

    display:flex;
    flex-direction:column;

    gap:16px;

    margin-top:20px;

}

.welcome{

    margin:0;

    text-align:center;

    color:#fff;

    font-size:34px;

    font-weight:700;

}

.setup-text{

    margin:0;

    text-align:center;

    color:#cfcfcf;

    font-size:16px;

    line-height:1.6;

}


/* =====================================================
   DOWNLOAD BUTTON
===================================================== */

.download-btn{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    width:100%;

    height:60px;

    border-radius:14px;

    text-decoration:none;

    background:linear-gradient(
        90deg,
        #f6d86b,
        #d4af37,
        #b8860b
    );

    color:#111;

    font-size:20px;

    font-weight:800;

    letter-spacing:1px;

    transition:.25s;

    box-shadow:
        0 8px 25px rgba(212,175,55,.25);

}

.download-btn:hover{

    transform:translateY(-2px);

    box-shadow:
        0 12px 35px rgba(212,175,55,.35);

}


/* =====================================================
   PASSWORD
===================================================== */

.password-box{

    background:rgba(255,255,255,.03);

    border:1px solid rgba(212,175,55,.18);

    border-radius:16px;

    padding:16px;

}

.password-box h3{

    margin-bottom:12px;

    color:#d4af37;

    font-size:18px;

}

.password{

    display:flex;

    justify-content:center;

    align-items:center;

    height:54px;

    border-radius:12px;

    background:#101010;

    border:1px solid rgba(255,255,255,.08);

    color:white;

    font-size:18px;

    font-weight:700;

    letter-spacing:1px;

}


/* =====================================================
   WIZARD
===================================================== */

.wizard-progress{

    margin:10px 0 20px;

}

.wizard-bar{

    width:100%;

    height:6px;

    border-radius:999px;

    overflow:hidden;

    background:rgba(255,255,255,.08);

}

.wizard-fill{

    width:67%;

    height:100%;

    background:
        linear-gradient(
            90deg,
            #d4af37,
            #ffd95b
        );

}

.wizard-text{

    margin-top:8px;

    text-align:center;

    color:#bdbdbd;

    font-size:12px;

}


/* =====================================================
   SETUP GRID
===================================================== */

.setup-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:14px;

}

.setup-item{

    position:relative;

    padding:18px 14px;

    min-height:140px;

    border-radius:16px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(212,175,55,.12);

    text-align:center;

    transition:.25s;

}

.setup-item:hover{

    transform:translateY(-3px);

    border-color:#d4af37;

    box-shadow:
        0 10px 25px rgba(212,175,55,.15);

}

.setup-number{

    position:absolute;

    top:10px;

    right:10px;

    width:28px;

    height:28px;

    border-radius:50%;

    background:#d4af37;

    color:#111;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:14px;

    font-weight:700;

}

.setup-icon{

    margin-bottom:10px;

    color:#d4af37;

    font-size:26px;

}

.setup-item h3{

    margin-bottom:6px;

    color:white;

    font-size:18px;

}

.setup-item p{

    margin:0;

    color:#bdbdbd;

    font-size:14px;

    line-height:1.5;

}


/* =====================================================
   LOGOUT
===================================================== */

.logout-btn{

    display:block;

    width:100%;

    padding:15px;

    margin-top:8px;

    border-radius:14px;

    text-align:center;

    text-decoration:none;

    color:#d4af37;

    border:1px solid rgba(212,175,55,.25);

    transition:.25s;

}

.logout-btn:hover{

    background:rgba(212,175,55,.08);

}

.no-package{

    padding:20px;

    border-radius:14px;

    text-align:center;

    background:rgba(255,80,80,.08);

    border:1px solid rgba(255,80,80,.18);

    color:#ffb5b5;

}


/* =====================================================
   DOWNLOAD MOBILE
===================================================== */

@media(max-width:900px){

    .welcome{

        font-size:28px;

    }

    .setup-grid{

        grid-template-columns:1fr;

    }

    .download-btn{

        font-size:18px;

    }

}

/* =====================================================
   ADMIN
===================================================== */

.admin-frame{

    width:min(1700px,96vw);

}

.admin-card{

    padding:35px;

}


/* =====================================================
   TOP BAR
===================================================== */

.top-bar{

    display:flex;

    align-items:center;

    gap:18px;

    margin:28px 0;

}

.search-box{

    flex:1;

}

.search-box input{

    width:100%;

    height:52px;

    padding:0 18px;

    border-radius:12px;

    border:1px solid rgba(212,175,55,.18);

    background:#171717;

    color:white;

    font-size:15px;

    outline:none;

}

.search-box input:focus{

    border-color:#d4af37;

    box-shadow:0 0 18px rgba(212,175,55,.18);

}

.small-btn{

    width:220px !important;

    height:52px !important;

    margin:0 !important;

    font-size:16px !important;

}


/* =====================================================
   USER GRID
===================================================== */

.user-grid{

    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:20px;

}

.user-card{

    background:rgba(18,18,18,.72);

    border:1px solid rgba(212,175,55,.18);

    border-radius:18px;

    padding:18px;

    backdrop-filter:blur(18px);

    transition:.25s;

}

.user-card:hover{

    transform:translateY(-3px);

    border-color:#d4af37;

    box-shadow:0 10px 30px rgba(212,175,55,.12);

}


/* =====================================================
   USER HEADER
===================================================== */

.user-header{

    display:flex;

    align-items:center;

    gap:14px;

    margin-bottom:16px;

}

.avatar{

    width:48px;

    height:48px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(212,175,55,.12);

    color:#d4af37;

    font-size:22px;

}

.user-name{

    color:#d4af37;

    font-size:17px;

    font-weight:700;

}

.user-role{

    color:#999;

    font-size:13px;

}


/* =====================================================
   PACKAGE
===================================================== */

.package-select{

    width:100%;

    height:46px;

    padding:0 12px;

    margin-bottom:14px;

    border-radius:10px;

    border:1px solid rgba(212,175,55,.18);

    background:#1b1b1b;

    color:white;

}


/* =====================================================
   USER BUTTONS
===================================================== */

.user-buttons{

    display:flex;
    gap:8px;
    margin-top:10px;

}

.btn-success,
.btn-warning,
.btn-danger{

    display:flex;
    align-items:center;
    justify-content:center;

    flex:1;

    padding:10px;

    border:none;
    border-radius:10px;

    font-size:14px;
    font-weight:700;

    text-decoration:none;
    cursor:pointer;

}

.btn-danger{

    flex:0 0 65px;

}

.user-buttons button,
.user-buttons a{

    flex:1;

    height:42px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:10px;

    text-decoration:none;

    font-size:15px;

    font-weight:600;

}

.btn-success{

    background:#1f8a4c;

    color:white;

}

.btn-success:hover{

    background:#28a861;

}

.btn-danger{

    background:#8d2323;

    color:white;

}

.btn-danger:hover{

    background:#b62c2c;

}


/* =====================================================
   MODAL
===================================================== */

.modal{

    display:none;

    position:fixed;

    inset:0;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.65);

    z-index:999;

}

.modal-content{

    width:520px;

    max-width:92vw;

    padding:35px;

    border-radius:22px;

    background:rgba(18,18,18,.96);

    border:1px solid rgba(212,175,55,.20);

    backdrop-filter:blur(24px);

}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:1200px){

    .login-card{

        width:95vw;

        max-width:650px;

        padding:32px;

    }

}


@media (max-width:900px){

    body{

        overflow:auto;

        align-items:flex-start;

        padding:25px 0;

    }

    .login-card{

        width:94vw;

        padding:28px;

    }

    h1{

        font-size:38px;

        letter-spacing:2px;

    }

    .subtitle{

        font-size:14px;

        letter-spacing:2px;

    }

    .logo-img{

        width:75px;

    }

    .download-box{

        gap:14px;

    }

    .welcome{

        font-size:28px;

    }

    .setup-grid{

        grid-template-columns:1fr;

        gap:14px;

    }

    .setup-item{

        min-height:auto;

        padding:18px;

    }

    .top-bar{

        flex-direction:column;

        align-items:stretch;

    }

    .small-btn{

        width:100% !important;

    }

    .user-grid{

        grid-template-columns:1fr;

    }

    .user-buttons{

        flex-direction:column;

    }

}


@media (max-width:600px){

    .login-card{

        padding:22px;

        border-radius:18px;

    }

    h1{

        font-size:32px;

    }

    .subtitle{

        font-size:13px;

    }

    .logo-img{

        width:65px;

    }

    .input-group input{

        height:52px;

        font-size:16px;

    }

    button{

        height:54px;

        font-size:17px;

    }

    .download-btn{

        height:54px;

        font-size:17px;

    }

    .password{

        height:48px;

        font-size:16px;

    }

    .wizard-text{

        font-size:11px;

    }

}


/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#111;

}

::-webkit-scrollbar-thumb{

    background:#444;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#666;

}


/* =====================================================
   SELECTION
===================================================== */

::selection{

    background:#d4af37;

    color:#111;

}

/* ==========================
   ADMIN LAYOUT FIX
========================== */

.admin-card{

    width:min(1600px,95vw) !important;

    max-width:none !important;

    padding:40px;

}

.admin-frame{

    width:100%;

    display:flex;

    justify-content:center;

}

.user-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));

    gap:20px;

    margin-top:25px;

}

.user-scroll{

    max-height:520px;
    overflow-y:auto;
    overflow-x:hidden;
    margin-top:10px;

    display:block;

    border-radius:18px;

}

.user-scroll::-webkit-scrollbar{

    width:8px;

}

.user-scroll::-webkit-scrollbar-track{

    background:rgba(255,255,255,.05);

    border-radius:20px;

}

.user-scroll::-webkit-scrollbar-thumb{

    background:#d4af37;

    border-radius:20px;

}

.user-scroll::-webkit-scrollbar-thumb:hover{

    background:#f1c94b;

}

.package-info{

    margin:15px 0;

    padding:12px;

    background:rgba(255,255,255,.05);

    border-radius:10px;

    text-align:center;

    color:#fff;

    font-size:14px;

    word-break:break-word;

}

.btn-warning{

    width:100%;

    margin-top:8px;

    padding:9px 14px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    background:#e0a800;

    color:white;

    font-weight:700;

    font-size:13px;

    transition:.2s;

}

.btn-warning:hover{

    transform:translateY(-2px);

    filter:brightness(1.08);

}

.flash-success{

    margin:20px 0;

    padding:15px;

    border-radius:12px;

    background:#198754;

    color:white;

    font-weight:700;

    text-align:center;

    animation:fadeIn .25s;

}

@keyframes fadeIn{

    from{

        opacity:0;
        transform:translateY(-10px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}