/* BOOT & SHUTDOWN SCREENS */
#boot-screen, #shutdown-screen {
    background-color: black;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Highest priority */
}

#shutdown-screen {
    background-color: var(--win-blue); /* Windows 10 default shutdown color is often the accent color */
}

#shutdown-text {
    font-weight: 300;
    margin-top: 10px;
    font-size: 1.5rem;
}

.boot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.win-logo rect {
    fill: #00ADEF; /* Brighter blue for boot */
}

/* Boot Loader */
.loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.circle {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 26px; /* (60 - 8) / 2 */
    opacity: 0;
    transform-origin: 4px 30px; /* x: center of circle (4), y: center of loader (30) */
    animation: spin 3s infinite ease-in-out;
}

.circle:nth-child(1) { animation-delay: 0.1s; }
.circle:nth-child(2) { animation-delay: 0.2s; }
.circle:nth-child(3) { animation-delay: 0.3s; }
.circle:nth-child(4) { animation-delay: 0.4s; }
.circle:nth-child(5) { animation-delay: 0.5s; }

@keyframes spin {
    0% { transform: rotate(0deg); opacity: 0; }
    5% { opacity: 1; }
    70% { opacity: 0; }
    100% { transform: rotate(360deg); opacity: 0; }
}

/* LOCK SCREEN */
#lock-screen {
    background-image: url('../wallpaper.png');
    background-size: cover;
    background-position: center;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 100px;
    padding-left: 40px;
    cursor: pointer;
}

.lock-date-time {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 15%;
}

#lock-time {
    font-size: 8rem;
    font-weight: 300;
    line-height: 1;
}

#lock-date {
    font-size: 3rem;
    font-weight: 400;
}

.lock-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

/* LOGIN SCREEN */
#login-screen {
    background-color: var(--current-lock-wallpaper-color, black);
    background-image: var(--current-lock-wallpaper, url('../wallpaper.png'));
    background-size: cover;
    background-position: center;
    /* Simulate blur overlay */
    align-items: center;
    justify-content: center;
}

#login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #444;
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: cover;
}

.username {
    font-size: 2rem;
    font-weight: 400;
}

.input-group {
    display: flex;
    height: 36px;
}

#password-input {
    width: 250px;
    padding: 0 10px;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.3);
    color: white;
    font-family: var(--font-stack);
    outline: none;
    transition: background 0.2s, border 0.2s;
}

#password-input:focus {
    background: white;
    color: black;
    border-color: white;
}

#login-btn {
    width: 40px;
    background: rgba(100,100,100,0.5);
    border: 2px solid rgba(255,255,255,0.4);
    border-left: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login-btn:hover {
    background: rgba(255,255,255,0.2);
}

.login-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.power-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.power-controls .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    opacity: 0.9;
}