:root {
    --neon-blue: #00f7ff;
    --neon-pink: #ff00f7;
    --neon-green: #00ff47;
    --neon-yellow: #f7ff00;
    --neon-red: #ff0047;
    --neon-purple: #9400ff;
    --glow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    --cursor-color: rgba(0, 247, 255, 0.8);
    --scanline-color: rgba(0, 247, 255, 0.05);
    --desktop-bg: #000033;
    --window-bg: rgba(0, 0, 51, 0.9);
    --text-color: #00ff00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'VT323', monospace;
    image-rendering: pixelated;
}

body,
html {
    height: 100%;
    overflow: hidden;
    background-color: var(--desktop-bg);
    color: var(--text-color);
    position: relative;
    cursor: none;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-container {
    width: 95%;
    max-width: 400px;
    padding: 30px;
    background: var(--window-bg);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.5);
    position: absolute;
}

.close-button {
    color: #ff0047;
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 2rem;
    background-color: transparent;
    border: none;
    outline: 0;
    padding: 0 !important;
}

.login-title {
    text-align: center;
    color: var(--neon-blue);
    text-shadow: var(--glow);
    font-size: 2rem;
    margin-bottom: 30px;
}

.login-input-group {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    margin-bottom: 5px;
    color: var(--neon-blue);
    text-shadow: var(--glow);
    font-size: 1.2rem;
}

.login-input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    color: var(--text-color);
    font-size: 1.2rem;
    font-family: 'VT323', monospace;
}

.login-input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--neon-blue);
}

.login-button {
    width: 100%;
    padding: 10px;
    background: rgba(0, 247, 255, 0.2);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    text-shadow: var(--glow);
    font-size: 1.2rem;
    cursor: none;
    transition: all 0.3s;
}

.login-button:hover {
    background: rgba(0, 247, 255, 0.4);
    box-shadow: 0 0 10px var(--neon-blue);
}

.login-error {
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
    display: none;
}

/* CRT Effects */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 247, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 247, 255, 0.03) 1px, transparent 1px);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: 100;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            var(--scanline-color) 51%);
    background-size: 100% 4px;
    animation: scanline 0.1s linear infinite;
    pointer-events: none;
    z-index: 101;
}

@keyframes scanline {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-4px);
    }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 103;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cursor-color);
    box-shadow: 0 0 10px var(--cursor-color), 0 0 20px var(--cursor-color);
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition:
        width 0.2s ease,
        height 0.2s ease,
        background 0.2s ease;
}

@media (max-width: 990px) {
    .cursor {
        display: none;
    }
}

.cursor.active {
    width: 40px;
    height: 40px;
    background: rgba(0, 247, 255, 0.2);
}

.cursor.click {
    animation: cursorClick 0.3s ease;
}

@keyframes cursorClick {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(0.7);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Desktop Environment */
.desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    grid-auto-rows: 120px;
    gap: 20px;
    align-content: start;
    z-index: 1;
    display: none;
}

/* Desktop Icons */
.icon {
    width: 100px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--neon-blue);
    text-shadow: var(--glow);
    cursor: none;
    transition: all 0.3s;
    position: relative;
}

.icon:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
}

.icon.selected {
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid var(--neon-blue);
}

.icon-image {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px var(--neon-blue));
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
}

.icon:hover .icon-image {
    filter: drop-shadow(0 0 5px var(--neon-pink));
}

.icon-label {
    font-size: 1.2rem;
    word-break: break-word;
    width: 100%;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 51, 0.8);
    border-top: 1px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    display: none;
}

.start-button {
    height: 30px;
    padding: 0 15px;
    background: rgba(0, 247, 255, 0.2);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    text-shadow: var(--glow);
    display: flex;
    align-items: center;
    cursor: none;
    transition: all 0.3s;
}

.start-button:hover {
    background: rgba(0, 247, 255, 0.4);
    box-shadow: 0 0 10px var(--neon-blue);
}

.taskbar-icons {
    display: flex;
    margin-left: 20px;
    height: 100%;
}

.taskbar-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s;
}

.taskbar-icon:hover {
    filter: drop-shadow(0 0 5px var(--neon-pink));
}

.clock {
    margin-left: auto;
    color: var(--neon-blue);
    text-shadow: var(--glow);
    font-size: 1.2rem;
}

/* Windows */
.window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 600px;
    max-height: 95%;
    background: var(--window-bg);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.5);
    display: none;
    flex-direction: column;
    z-index: 100;
}

.window.active {
    display: flex;
}

.window-header {
    padding: 5px 10px;
    background: rgba(0, 247, 255, 0.1);
    border-bottom: 1px solid var(--neon-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-title {
    color: var(--neon-blue);
    text-shadow: var(--glow);
    font-size: 1.3rem;
}

.window-controls {
    display: flex;
}

.window-button {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    background: rgba(0, 247, 255, 0.2);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s;
}

.window-button:hover {
    background: rgba(0, 247, 255, 0.4);
}

.window-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Registration Form */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: var(--neon-blue);
    text-shadow: var(--glow);
    font-size: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    color: var(--text-color);
    font-size: 1.2rem;
    font-family: 'VT323', monospace;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--neon-blue);
}

.form-select {
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    color: var(--text-color);
    font-size: 1.2rem;
    font-family: 'VT323', monospace;
}

.form-button {
    padding: 8px 15px;
    background: rgba(0, 247, 255, 0.2);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    text-shadow: var(--glow);
    font-size: 1.2rem;
    cursor: none;
    transition: all 0.3s;
}

.form-button:hover {
    background: rgba(0, 247, 255, 0.4);
    box-shadow: 0 0 10px var(--neon-blue);
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 40px;
    left: 20px;
    width: 300px;
    background: var(--window-bg);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.start-menu.active {
    display: flex;
}

.start-menu-header {
    padding: 5px 10px;
    background: rgba(0, 247, 255, 0.1);
    border-bottom: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    text-shadow: var(--glow);
    font-size: 1.3rem;
}

.start-menu-items {
    flex: 1;
    padding: 10px 0;
}

.start-menu-item {
    padding: 8px 20px;
    color: var(--neon-blue);
    text-shadow: var(--glow);
    font-size: 1.2rem;
    cursor: none;
    transition: all 0.3s;
}

.start-menu-item:hover {
    background: rgba(0, 247, 255, 0.2);
    color: var(--neon-pink);
}

/* Shutdown Dialog */
.shutdown-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: var(--window-bg);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.shutdown-dialog.active {
    display: flex;
}

.shutdown-dialog-header {
    padding: 5px 10px;
    background: rgba(0, 247, 255, 0.1);
    border-bottom: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    text-shadow: var(--glow);
    font-size: 1.3rem;
}

.shutdown-dialog-content {
    padding: 20px;
    text-align: center;
}

.shutdown-dialog-buttons {
    display: flex;
    justify-content: center;
    padding: 10px;
    gap: 10px;
}

/* Settings Window */
.settings-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    background: var(--window-bg);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.5);
    display: none;
    flex-direction: column;
    z-index: 100;
}

.settings-window.active {
    display: flex;
}

.settings-tabs {
    display: flex;
    border-bottom: 1px solid var(--neon-blue);
}

.settings-tab {
    padding: 8px 15px;
    background: rgba(0, 247, 255, 0.1);
    border-right: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    cursor: none;
    transition: all 0.3s;
}

.settings-tab.active {
    background: rgba(0, 247, 255, 0.3);
}

.settings-tab:hover {
    background: rgba(0, 247, 255, 0.2);
}

.settings-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.slider-container {
    margin-bottom: 20px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.slider {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    appearance: none;
    outline: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--neon-blue);
    cursor: none;
}

/* Volume Indicator */
.volume-indicator {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 150px;
    padding: 10px;
    background: var(--window-bg);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.volume-indicator.active {
    display: flex;
}

.volume-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    margin-top: 5px;
    position: relative;
}

.volume-level {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
}

/* Notification */
.notification {
    position: fixed;
    bottom: 50px;
    right: 20px;
    padding: 10px 15px;
    background: var(--window-bg);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    color: var(--neon-blue);
    text-shadow: var(--glow);
    z-index: 1000;
    display: none;
}

.notification.active {
    display: block;
    animation: slideIn 0.3s forwards, fadeOut 0.3s forwards 2.7s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}