@import url('context-menu.css');
@import url('desktop.css');
@import url('taskbar.css');
@import url('window.css');
@import url('start-menu.css');
@import url('notepad.css');
@import url('notification.css');
@import url('internet-explorer.css');
@import url('boogle.css');
@import url('youview.css');
@import url('dialogue.css');
@import url('disport.css');
@import url('dialog.css');
@import url('my-computer.css');
@import url('paint.css');

body {
    margin: 0;
    overflow: hidden;
    background-color: var(--wallpaper-color);
    font-family: "MS Sans Serif", "Verdana", sans-serif;
    user-select: none;
    cursor: url("/assets/cursors/Cursor79.cur"), auto;
}

button, 
a, 
.desktop-icon, 
.start-menu-item, 
.task-tab, 
.window-control, 
.choice-item, 
.clickable,
label {
    cursor: url("/assets/cursors/Cursor107.cur"), pointer !important;
}

input[type="text"], textarea {
    cursor: url("/assets/cursors/Cursor144.cur"), auto;
}

* { box-sizing: border-box; }

#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--wallpaper-color); 
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
}

.login-window {
    width: 350px;
    background: var(--bg-color);
    color: var(--text-color);
    border: 2px outset var(--border-light-color); 
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    padding: 2px;
    display: flex;
    flex-direction: column;
}

.login-title-bar {
    background: var(--active-title-bg); 
    color: var(--active-title-text);
    padding: 3px 5px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px groove var(--border-light-color);
}

.login-avatar {
    width: 64px;
    height: 64px;
    border: 2px inset var(--border-light-color);
    background: var(--content-bg);
}

.login-info {
    flex-grow: 1;
}

.login-username {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

.login-input-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
}

.login-input {
    width: 100%;
    padding: 4px;
    font-family: inherit;
    border: 2px inset var(--border-light-color);
    background-color: var(--content-bg);
    color: var(--content-text-color);
}

.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.login-btn {
    min-width: 80px;
    padding: 5px 10px;
    border: 2px outset var(--border-light-color);
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
}
.login-btn:active { border-style: inset; }

.login-shutdown-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color); 
    opacity: 0.8; 
}
.login-shutdown-btn:hover {
    opacity: 1;
}

.password-hint {
    font-size: 11px;
    color: #d00; 
    margin-top: 5px;
    display: none; 
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

.shake-anim {
    animation: shake 0.4s ease-in-out;
    border-color: red !important;
}

#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color, #000);
    color: var(--text-color, #fff);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

#transition-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.transition-text {
    font-size: 2rem;
    font-family: 'MS Sans Serif', sans-serif;
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 1; }
}