/* 新增密码验证样式 */
#password-protection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

#password-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#password-form input[type="password"],
#password-form input {
    padding: 10px;
    margin: 10px 0;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#password-form button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#password-form button:hover {
    background: #45a049;
}

#password-error {
    color: red;
    margin-top: 10px;
    display: none;
}

/* auth.css 或其他主样式文件中 */
.remember-password-label {
    display: flex;
    align-items: center;
    margin: 10px 0;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    /* 与页面其他文本颜色一致 */
    
}

.remember-password-label input[type="checkbox"] {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    width: 20px !important;
}

.remember-password-label span {
    user-select: none;
    margin-left: 10px;
    /* 防止文字被选中 */
}



/* 离线按钮样式 */
.offline-btn {
    background-color: #cccccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 按钮基础样式 */
#update-btn {
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #0b7dda;

}


#update-btn:hover:not(.offline-btn) {
    background-color: #0b7dda;
}

#update-btn.updating {
    background: #ff9800 !important;
    cursor: progress;
}

#update-btn.success {
    background: #4CAF50 !important;
}

#update-btn.error {
    background: #f44336 !important;
}

#update-status {
    font-size: 14px;
    color: #666;
}

#update-status.success {
    color: #4CAF50;
}

#update-status.error {
    color: #f44336;
}