/* Freeman Files — Cyberpunk Edition */

/* Background */
#login {
    background:
        radial-gradient(ellipse at top left,
            rgba(255, 0, 204, 0.12), transparent 55%),
        radial-gradient(ellipse at bottom right,
            rgba(0, 217, 255, 0.12), transparent 55%),
        #0b0e17 !important;
}

/* Login panel */
#login form {
    background: #141827 !important;
    border: 1px solid rgba(255, 0, 204, 0.45) !important;
    border-radius: 18px !important;
    box-shadow:
        0 0 30px rgba(255, 0, 204, 0.12),
        0 0 60px rgba(0, 217, 255, 0.08) !important;
}

/* Logo */
#login form > img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain;
    max-width: 100%;
    filter:
        drop-shadow(0 0 10px rgba(255, 0, 204, 0.4))
        drop-shadow(0 0 15px rgba(0, 217, 255, 0.3));
}

/* Title */
#login form h1 {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.4);
    letter-spacing: 1px;
}

/* Input fields */
#login input[type="text"],
#login input[type="password"] {
    background: #0b0e17 !important;
    color: #e5e7eb !important;
    border: 1px solid #343c52 !important;
    border-radius: 8px !important;
    caret-color: #00d9ff;
}

/* Input focus */
#login input:focus {
    border-color: #00d9ff !important;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.25) !important;
}

/* Browser autofill */
#login input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0b0e17 inset !important;
    -webkit-text-fill-color: #e5e7eb !important;
    caret-color: #00d9ff;
}

/* Login button */
#login form > button,
#login input[type="submit"] {
    background: linear-gradient(
        110deg, #d000aa, #6536d9, #007eaa
    ) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.2);
    transition: box-shadow 0.2s ease;
}

/* Button hover */
#login form > button:hover,
#login input[type="submit"]:hover {
    box-shadow:
        0 0 15px rgba(255, 0, 204, 0.4),
        0 0 20px rgba(0, 217, 255, 0.3);
}

/* =========================================
   Freeman Files — Cyberpunk Final Edition
   ========================================= */

/* Sidebar */
html.dark body:has(#listing) nav {
    background: #101420 !important;
    border-right: 1px solid rgba(0, 217, 255, 0.2);
}

html.dark nav .action {
    color: #cbd5e1;
    transition: background 0.2s, color 0.2s;
}

html.dark nav .action:hover {
    background: rgba(0, 217, 255, 0.08) !important;
    color: #00d9ff !important;
    box-shadow: inset 3px 0 #00d9ff;
}

html.dark nav .action:hover .material-icons {
    color: #00d9ff !important;
}

/* Logout */
html.dark #logout:hover {
    color: #ff00cc !important;
    box-shadow: inset 3px 0 #ff00cc;
}

/* File and folder cards */
html.dark #listing.mosaic .item:not(.header) {
    background: #141827 !important;
    border: 1px solid #293247 !important;
    border-radius: 12px !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

html.dark #listing .item:not(.header):hover {
    border-color: #ff00cc !important;
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.15);
}

/* Selected items */
html.dark #listing .item[aria-selected="true"] {
    background: #172b38 !important;
    border-color: #00d9ff !important;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.2);
}

/* Folder icons */
html.dark #listing .item[data-dir="true"] .material-icons {
    color: #00d9ff !important;
    filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.35));
}

/* File names */
html.dark #listing .item .name {
    color: #e5e7eb !important;
}

html.dark #listing .item .size,
html.dark #listing .item .modified {
    color: #8293ad !important;
}

/* Disk usage */
html.dark .vue-simple-progress {
    background: #252c3d !important;
    border-radius: 5px;
    overflow: hidden;
}

html.dark .vue-simple-progress-bar {
    background: linear-gradient(
        90deg, #ff00cc, #6536d9, #00d9ff
    ) !important;
    border-radius: 5px;
}

/* Footer */
html.dark nav .credits {
    color: #8293ad !important;
}

/* Search input */
html.dark #search .input,
html.dark #search input {
    background: transparent !important;
    color: #e5e7eb !important;
}

/* Keyboard navigation */
html.dark #listing .item:focus-visible,
html.dark nav .action:focus-visible,
html.dark main header .action:focus-visible {
    outline: 2px solid #00d9ff !important;
    outline-offset: -2px;
}

/* Scrollbars */
html.dark body:has(#listing) *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

html.dark body:has(#listing) *::-webkit-scrollbar-track {
    background: #0b0e17;
}

html.dark body:has(#listing) *::-webkit-scrollbar-thumb {
    background: #343c52;
    border-radius: 6px;
}

html.dark body:has(#listing) *::-webkit-scrollbar-thumb:hover {
    background: #00d9ff;
}


/* ALTCHA — Russian label */
#login .altcha[data-state="unverified"] .altcha-checkbox-wrap label {
    font-size: 0 !important;
}

#login .altcha[data-state="unverified"] .altcha-checkbox-wrap label::after {
    content: "Я не робот";
    font-size: 14px;
    color: #e5e7eb;
}

/* ALTCHA — Russian verified label */
#login .altcha[data-state="verified"] .altcha-checkbox-wrap label {
    font-size: 0 !important;
}

#login .altcha[data-state="verified"] .altcha-checkbox-wrap label::after {
    content: "Проверка пройдена";
    font-size: 14px;
    color: #e5e7eb;
}

/* ALTCHA — Russian verifying label */
#login .altcha[data-state="verifying"] .altcha-checkbox-wrap label {
    font-size: 0 !important;
}

#login .altcha[data-state="verifying"] .altcha-checkbox-wrap label::after {
    content: "Выполняется проверка…";
    font-size: 14px;
    color: #e5e7eb;
}

/* Alex Freeman Files — Gothic title */
#login form h1 {
    font-size: 0 !important;
}

#login form h1::after {
    content: "𝕬𝖑𝖊𝖝 𝕱𝖗𝖊𝖊𝖒𝖆𝖓 𝕱𝖎𝖑𝖊𝖘";
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 0;
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(0, 217, 255, 0.5),
        0 0 20px rgba(255, 0, 204, 0.3);
}

/* Gothic title — bottom spacing */
#login form h1 {
    margin-bottom: 24px !important;
}
