*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter,sans-serif;
}

/* LOGIN BOX */

main:has(.login-box){
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}

.login-box{
    width:100%;
    max-width:420px;

    padding:40px 30px;

    background:linear-gradient(
        160deg,
        rgba(17,24,39,0.98),
        rgba(15,23,42,0.98)
    );

    border:1px solid rgba(255,255,255,0.06);

    border-radius:28px;

    box-shadow:0 20px 60px rgba(0,0,0,0.5);

    text-align:center;

    backdrop-filter:blur(10px);
}

img.logo {
    height: 40px;
}

/* TITLE */

.login-box h1{
    font-size:32px;
    font-weight:700;

    margin-bottom:25px;

    letter-spacing:0.5px;
}

/* ERROR */

.error{
    background:rgba(239,68,68,0.15);
    border:1px solid rgba(239,68,68,0.4);

    color:#fecaca;

    padding:12px 14px;

    border-radius:14px;

    margin-bottom:20px;

    font-size:14px;
}

/* FORM */

form{
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* INPUTS */

input{
    width:100%;

    padding:14px 16px;

    border-radius:14px;

    border:1px solid #1f2937;

    background:#0f172a;

    color:#f8fafc;

    outline:none;

    transition:0.2s ease;

    font-size:14px;
}

input:focus{
    border-color:#3b82f6;
    box-shadow:0 0 0 3px rgba(59,130,246,0.2);
}

/* BUTTON */

button{
    margin-top:6px;

    padding:14px 16px;

    border:none;

    border-radius:14px;

    background:linear-gradient(90deg,#2563eb,#3b82f6);

    color:white;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:0.2s ease;
}

button:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 25px rgba(37,99,235,0.35);
}

/* RESPONSIVE */

@media(max-width:500px){

    .login-box{
        margin:20px;
        padding:30px 20px;
    }

    .login-box h1{
        font-size:26px;
    }
}

body{
    background:#0b1120;
    color:#f8fafc;
    min-height:100vh;
}

/* TOPBAR */

.topbar{
    height:70px;
    background:rgba(15,23,42,0.9);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,0.06);

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

    padding:0 30px;

    position:sticky;
    top:0;
    z-index:100;
}

.logo{
    font-size:22px;
    font-weight:700;
    letter-spacing:0.5px;
}

.topbar a{
    color:#cbd5e1;
    text-decoration:none;
    transition:0.2s;
}

.topbar a:hover{
    color:white;
}

/* MAIN */

.main{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding:35px 25px;
}

/* UPLOAD */

.upload-area{
    background:linear-gradient(
        145deg,
        rgba(17,24,39,0.95),
        rgba(15,23,42,0.95)
    );

    border:2px dashed #334155;
    border-radius:28px;

    padding:70px 30px;

    text-align:center;

    transition:0.25s ease;

    cursor:pointer;

    margin-bottom:40px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.25);
}

.upload-area:hover{
    transform:translateY(-2px);
    border-color:#3b82f6;
}

.upload-area.dragging{
    background:#172554;
    border-color:#60a5fa;
    transform:scale(1.01);
}

.upload-area h2{
    font-size:28px;
    margin-bottom:12px;
    font-weight:700;
}

.upload-area p{
    color:#94a3b8;
    font-size:15px;
}

/* PROGRESS */

.progress-container{
    margin-top:30px;
    width:100%;
    height:10px;

    background:#1e293b;

    border-radius:999px;
    overflow:hidden;
}

.progress-bar{
    height:100%;
    width:0%;

    border-radius:999px;

    background:linear-gradient(
        90deg,
        #2563eb,
        #60a5fa
    );

    transition:0.2s;
}

/* FILE GRID */

.files{
    display:grid;

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

    gap:22px;
}

/* CARD */

.card{
    background:linear-gradient(
        160deg,
        rgba(17,24,39,0.98),
        rgba(15,23,42,0.98)
    );

    border:1px solid rgba(255,255,255,0.05);

    border-radius:24px;

    padding:24px;

    transition:0.25s ease;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.2);
}

.card:hover{
    transform:translateY(-5px);

    border-color:rgba(96,165,250,0.4);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.35);
}

.icon{
    font-size:52px;
    margin-bottom:18px;
}

/* FILE NAME */

.filename{
    word-break:break-word;

    font-size:15px;
    line-height:1.5;

    color:#e2e8f0;

    margin-bottom:22px;

    min-height:48px;
}

/* ACTIONS */

.actions{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.actions form{
    width:100%;
}

.actions a,
.actions button{
    width:100%;

    background:#1e293b;

    border:none;

    color:white;

    padding:13px 16px;

    border-radius:14px;

    text-decoration:none;

    cursor:pointer;

    text-align:center;

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

    transition:0.2s ease;
}

.actions a:hover,
.actions button:hover{
    background:#2563eb;
    transform:translateY(-1px);
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#0f172a;
}

::-webkit-scrollbar-thumb{
    background:#334155;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#475569;
}

/* MOBILE */

@media(max-width:700px){

    .topbar{
        padding:0 18px;
    }

    .main{
        padding:20px 15px;
    }

    .upload-area{
        padding:50px 20px;
    }

    .upload-area h2{
        font-size:22px;
    }

    .files{
        grid-template-columns:1fr;
    }
}