@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&display=swap');

:root {
    --gold-main: #b08d57;
    --gold-dark: #8a6a3a;
    --bg-main: #0c0a08;
    --panel-bg: rgba(20, 15, 10, 0.85);
    --border-soft: rgba(176, 141, 87, 0.4);
}

/* ===== BASE ===== */

body {
    margin: 0;
    min-height: 100vh;
    background: 
        radial-gradient(circle at center, rgba(0,255,120,0.15), transparent 70%),
        url("/space_bg.jpg") center/cover no-repeat fixed,
        #020805;
    color: #9affc3;
}

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

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(to bottom, #0e0b08, #050403);
    border-bottom: 1px solid var(--gold-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.top-bar h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--gold-main);
}

.top-bar a {
    color: var(--gold-main);
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
}

.top-bar a:hover {
    color: #e0c089;
}

/* ===== CONTAINERS ===== */

.login-box,
.file-manager {
    max-width: 900px;
    margin: 50px auto;
    padding: 32px;
    background: var(--panel-bg);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.6),
        0 0 30px rgba(0,0,0,0.9);
}

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

h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--gold-main);
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== FORMS ===== */

label {
    font-size: 14px;
    opacity: 0.85;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 16px;
    background: #050403;
    color: #f0e6d2;
    border: 1px solid var(--gold-dark);
    border-radius: 6px;
    font-family: inherit;
}

input::file-selector-button {
    background: #050403;
    border: 1px solid var(--gold-dark);
    color: var(--gold-main);
    padding: 8px 12px;
    cursor: pointer;
}

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

button {
    padding: 12px 18px;
    background: linear-gradient(to bottom, #b08d57, #8a6a3a);
    border: none;
    color: #120e0a;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.1);
}

/* ===== FILE LIST ===== */

.file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    margin-top: 10px;
    background: rgba(5,4,3,0.7);
    border: 1px solid rgba(176,141,87,0.25);
    border-radius: 10px;
}

.file-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions a {
    color: var(--gold-main);
    margin-right: 12px;
    text-decoration: none;
    font-size: 14px;
}

.actions a:hover {
    color: #e0c089;
}

.actions button {
    padding: 6px 12px;
    font-size: 12px;
}

/* ===== BACK LINK ===== */

a.back {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--gold-main);
    text-decoration: none;
}

/* ===== SCROLLBAR (CHROME) ===== */

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

::-webkit-scrollbar-track {
    background: #050403;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}
