:root {
    --primary: #ff9f0a;
    --secondary: #ff3b30;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: #0a0a0a; /* Fallback color */
    background: url('/static/bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

header { width: 100%; padding: 40px 20px; text-align: center; }

header h1 {
    font-weight: 800; font-size: 3rem; margin: 0;
    background: linear-gradient(to right, #ffcc00, #ff9500);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-transform: uppercase; letter-spacing: 4px;
    filter: drop-shadow(0 0 10px rgba(255, 149, 0, 0.3));
}

.container { width: 90%; max-width: 900px; margin-bottom: 50px; }

.card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-bottom: 40px;
}

.auth-card { max-width: 400px; width: 100%; margin-top: 20px; }

input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: 'Outfit';
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 159, 10, 0.5);
    transform: translateY(-1px);
}

input:focus { 
    outline: none; 
    border-color: var(--primary); 
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(255, 159, 10, 0.2);
}

.btn-steel {
    width: 100%;
    background: var(--primary);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-steel:hover { background: #fff; transform: scale(1.02); }

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-dim); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }

.upload-zone {
    border: 2px dashed rgba(255, 159, 10, 0.3);
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: block;
}

.upload-zone:hover { border-color: var(--primary); background: rgba(255, 159, 10, 0.05); }

.file-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: 0.3s;
    position: relative;
}

.file-card:hover { border-color: var(--primary); transform: translateY(-5px); }

.btn-download {
    background: var(--primary);
    color: #000;
    text-decoration: none;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.nav-links { position: absolute; top: 20px; right: 20px; z-index: 10; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

.action-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: 0.2s;
}

.action-btn:hover { color: var(--primary); }

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    align-items: center; justify-content: center;
}

.modal-content {
    background: #111;
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    width: 90%; max-width: 400px;
}
