/* RESET */
*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial;
    background:#05070d;
    color:white;
}

/* LINKS FIX */
a,
a:visited,
a:active{
    color:white;
    text-decoration:none;
}

a:hover{
    color:#ff2a2a;
}

/* 🔥 BACKGROUND FIX (bg.png) */
.bg-image{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:url("bg.png") center center / cover no-repeat;
    filter:brightness(0.22) contrast(1.2);
    z-index:-1;
}

/* ========================= */
/* LOGIN SPLITSCREEN */
/* ========================= */
.login-wrapper{
    display:flex;
    height:100vh;
}

.login-left{
    width:50%;
    padding:80px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.login-right{
    width:50%;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding-right:120px;
}

.login-card{
    width:100%;
    max-width:380px;
    padding:40px;
    background:rgba(20,20,30,0.85);
    border-radius:14px;
    backdrop-filter:blur(6px);
}

/* ========================= */
/* MAIN */
/* ========================= */
.main{
    max-width:1000px;
    margin:40px auto;
}

/* GRID */
.top-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    margin-bottom:30px;
}

/* CARD */
.card{
    background:#111827;
    padding:25px;
    border-radius:14px;
}

/* ========================= */
/* USER LIST */
/* ========================= */
.user-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 10px;
    border-bottom:1px solid #222;
}

.user-row .delete{
    margin-left:auto;
    background:#ff2a2a;
    padding:6px 14px;
    border-radius:6px;
    font-size:13px;
    transition:0.2s;
}

.user-row .delete:hover{
    background:#ff4444;
}

/* ========================= */
/* FILE GRID */
/* ========================= */
.file-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
    gap:20px;
}

.file-card{
    background:#111827;
    padding:12px;
    border-radius:12px;
    display:flex;
    flex-direction:column;
}

/* PREVIEW */
.file-preview{
    width:100%;
    height:140px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:10px;
}

.file-preview img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:8px;
}

/* ICONS */
.file-icon{
    width:60px;
    height:60px;
    background:#444;
    border-radius:8px;
}

.folder-icon{
    width:70px;
    height:50px;
    background:linear-gradient(145deg,#ffc107,#ff9800);
    border-radius:6px;
    position:relative;
}

.folder-icon::before{
    content:"";
    position:absolute;
    top:-10px;
    left:8px;
    width:32px;
    height:14px;
    background:linear-gradient(145deg,#ffd54f,#ffb300);
    border-radius:4px 4px 0 0;
}

/* TEXT */
.file-card p{
    margin:8px 0;
    font-size:13px;
    text-align:center;
}

/* BUTTONS */
.actions{
    display:flex;
    gap:10px;
    margin-top:auto;
}

.actions a{
    flex:1;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#222;
    border-radius:6px;
    font-size:13px;
}

.delete{
    background:#ff2a2a !important;
}

/* TOPBAR */
.topbar{
    display:flex;
    justify-content:space-between;
    padding:20px 40px;
}

.logout-btn{
    background:#ff2a2a;
    padding:8px 12px;
    border-radius:6px;
}

/* INPUT */
input{
    padding:12px;
    background:#111;
    border:1px solid #333;
    color:white;
    border-radius:6px;
    margin-top:10px;
    width:100%;
}

button{
    width:100%;
    margin-top:10px;
    padding:12px;
    background:#ff2a2a;
    border:none;
    color:white;
    border-radius:6px;
    cursor:pointer;
}

/* MOBILE */
@media(max-width:768px){

    .login-wrapper{
        flex-direction:column;
    }

    .login-left,
    .login-right{
        width:100%;
        padding:20px;
    }

    .login-right{
        justify-content:center;
        padding-right:0;
    }

    .top-grid{
        grid-template-columns:1fr;
    }
}                                                                             