/* 登录屏幕 */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #3b8fe7 0%, #3ea2e0 35%, #3fb4dc 68%, #42c0d9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: var(--win98-font);
    overflow: hidden;
}

/* 登录页的局部扫描线已移至全局 main.css */

/* 登录容器 */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
    padding: 28px;
}

/* 头像 */
.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header img {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.login-header h2 {
    display: none;
}

/* 密码区域 */
.login-password-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.login-password-label {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    font-family: var(--win98-font);
}

.login-password-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.login-password-input {
    width: 286px;
    height: 42px;
    padding: 0 12px;
    border: 2px solid #606060;
    border-right-color: #dfdfdf;
    border-bottom-color: #dfdfdf;
    outline: none;
    font-size: 18px;
    font-family: var(--win98-font);
    background: #fff;
    color: #000;
    letter-spacing: 3px;
}

.login-password-input::placeholder {
    color: #aaa;
}

.login-confirm-btn {
    height: 42px;
    padding: 0 22px;
    margin-left: 0;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    border-left: 2px solid #999;
    border-right: 2px solid #606060;
    border-bottom: 2px solid #606060;
    font-size: 16px;
    font-family: var(--win98-font);
    font-weight: bold;
    color: #000;
    cursor: pointer;
    white-space: nowrap;
}

.login-confirm-btn:active {
    background: #c0c0c0;
    border-top: 2px solid #606060;
    border-left: 2px solid #606060;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

/* 密码错误抖动 */
.login-container.shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* 隐藏旧按钮 */
.login-button {
    display: none;
}

.windows-logo {
    display: none;
}

/* 淡出动画 */
.login-screen.fade-out {
    animation: fadeOut 0.5s forwards;
}

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

/* Windows 启动加载动画 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #3b8fe7 0%, #3ea2e0 35%, #3fb4dc 68%, #42c0d9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: var(--win98-font);
    color: #ffffff;
}

.loading-logo {
    margin-bottom: 40px;
    text-align: center;
}

.loading-logo img {
    width: 200px;
    height: auto;
    opacity: 0.9;
}

.loading-text {
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
    animation: pulse 1.5s infinite;
}

.loading-bar-container {
    width: 300px;
    height: 20px;
    background-color: #404040;
    border: 1px solid #808080;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #0080ff, #00a0ff, #0080ff);
    width: 0%;
    animation: loadingProgress 3s ease-in-out forwards;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.loading-status {
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    min-height: 16px;
    transition: opacity 0.3s ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    30% { width: 25%; }
    60% { width: 65%; }
    90% { width: 95%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { left: -50px; }
    100% { left: 300px; }
}

.loading-screen.fade-out {
    animation: fadeOut 0.8s forwards;
}
