/* Windows 7 Login Screen Styles */
.start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #5591c4 0%, #14428f 100%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in;
}

.start-overlay.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Tile */
.user-tile {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 40px 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.user-avatar {
    width: 128px;
    height: 128px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    color: white;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Login Button */
.login-button {
    margin: 20px 0 15px;
    padding: 12px 40px;
    border: none;
    border-radius: 3px;
    background: linear-gradient(180deg, #5ebd3e 0%, #4a9e2e 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 120px;
}

.login-button:hover {
    background: linear-gradient(180deg, #6ed048 0%, #5bb03a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.login-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* Login Footer */
.login-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-btn {
    background: transparent;
    border: 1px solid transparent;
    color: white;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 13px;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-btn img {
    /* Remove filter to show original icon colors */
}

.shutdown-btn {
    background: rgba(255, 80, 80, 0.1);
}

.shutdown-btn:hover {
    background: rgba(255, 80, 80, 0.2);
    border-color: rgba(255, 100, 100, 0.3);
}

/* Windows 7 Professional Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
    /* Quick fade at 2.5s to minimize blank screen */
    animation: fadeOut 0.3s ease-in-out 2.5s forwards;
}

/* Full Screen Windows 7 Startup GIF */
.fullscreen-startup-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.fullscreen-startup-gif img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    animation: gifFadeIn 0.5s ease-out;
}

@keyframes gifFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Windows 7 Wallpaper Background with Light Overlay */
.boot-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/desktop-wallpaper.jpg') center/cover no-repeat;
}

.boot-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    animation: overlayPulse 3s ease-in-out infinite;
}

.boot-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: diagonalSweep 4s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}


@keyframes diagonalSweep {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Windows 7 Professional Branding (Bottom Left) */
.win7-branding {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 3;
}

.win7-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.win7-text {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.5px;
}

.win7-edition {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

/* Welcome Section (Center) */
.welcome-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.welcome-text {
    font-family: 'Segoe UI Light', 'Segoe UI', Arial, sans-serif;
    font-size: 42px;
    font-weight: 200;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: welcomeFade 2s ease-in-out infinite;
}

@keyframes welcomeFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Windows 7 Startup Animation */
.startup-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: startupFadeIn 0.5s ease-out;
}

.startup-animation img {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 174, 239, 0.6));
}

@keyframes startupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 3D Ring Loader Container */
.ring-loader-3d {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-loader-3d canvas {
    border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(0, 174, 239, 0.6));
}

/* Fallback CSS Loader (shows while Three.js loads) */
.ring-loader-3d::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.8);
    border-right-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.ring-loader-3d.loaded::before {
    display: none;
}

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

/* Green Leaf Logo (Bottom Right) */
.leaf-logo {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 80px;
    height: 80px;
    z-index: 3;
    animation: leafPulse 3s ease-in-out infinite;
}

.leaf-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@keyframes leafPulse {
    0%, 100% { 
        opacity: 0.85;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Fade Out Animation */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-text {
        font-size: 32px;
    }
    
    .circular-loader {
        width: 40px;
        height: 40px;
    }
    
    .win7-text {
        font-size: 22px;
    }
    
    .win7-edition {
        font-size: 14px;
    }
    
    .leaf-logo {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 30px;
    }
}

