/* === Global === */

html, body {
    height: 100%;
}
body {
    margin: 0;
    background: #000;
    font-family: sans-serif;
}
/* Centered white box (login + browser) */
.center-box {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255,255,255,0.15);
    color: #000;
    margin-top: 10vh;           

}

/* Login box specific */
.login-box {
    width: 260px;
    text-align: center;
}

/* Browser box specific */
.browser-box {
    width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Inputs + buttons */
input {
    width: 100%;
    padding: 8px;
    margin: 8px 0 16px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

button {
    width: 100%;
    padding: 10px;
    background: #222;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
}
button:hover {
    background: #444;
}

.err {
    color: #b00;
    margin-bottom: 10px;
    font-size: 0.9em;
}

/* Logout button */
.logout {
    position: absolute;
    right: 20px;
    top: 20px;
    background: #c33;
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
}
.logout:hover { background: #a22; }

/* Folder tree styles */
ul {
    list-style: none;
    padding-left: 18px;
}

li {
    margin: 4px 0;
}

.folder-line {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
}

.folder-icon {
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    transform: rotate(0deg);
    transition: transform 0.15s ease;
    font-size: 1.1em;
}
.folder-icon.open {
    transform: rotate(90deg);
}

/* Buttons in file list */
.btn {
    background: #222;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85em;
}
.btn:hover {
    background: #444;
}

.hidden {
    display: none;
}

.logo {
    max-width: 80vw;
    max-height: 80vh;
    display: block;
}

.login-link {
    position: fixed;          /* keep in the corner */
    top: 1.5rem;
    right: 1.5rem;

    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.25);

    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255);
    backdrop-filter: blur(4px);

    transition: background 0.15s ease, 
                color 0.15s ease, 
                border-color 0.15s ease;

    z-index: 1000;
}

body.browser {
    display: flex;
    justify-content: center;   /* center horizontally */
    align-items: flex-start;   /* stick to top */
    padding-top: 5vh;          /* space from top */
    min-height: 100vh;
}

body.login {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
}


body.landing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;   /* ensure vertical centering */
}