/* 登录提示弹窗样式 */
.login-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    opacity: 0;
    animation: fadeInOverlay 0.3s ease forwards;
}

.login-prompt-dialog {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    padding: 0;
    transform: scale(0.9) translateY(20px);
    animation: slideInDialog 0.3s ease forwards;
    border: 2px solid var(--primary-color, #8B0000);
}

.login-prompt-header {
    background: linear-gradient(135deg, var(--primary-color, #8B0000), var(--primary-dark, #600000));
    color: white;
    padding: 20px 25px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    position: relative;
}

.login-prompt-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
}

.login-prompt-subtitle {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: normal;
}

.login-prompt-content {
    padding: 30px 25px 25px;
    text-align: center;
}

.login-prompt-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color, #8B0000), var(--primary-light, #A52A2A));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.login-prompt-message {
    color: var(--text-color, #2D2D2D);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Courier New', Courier, monospace;
}

.login-prompt-highlight {
    color: var(--primary-color, #8B0000);
    font-weight: bold;
}

.login-prompt-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.login-prompt-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.login-prompt-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-prompt-button:hover::before {
    left: 100%;
}

.login-button {
    background: linear-gradient(135deg, var(--primary-color, #8B0000), var(--primary-dark, #600000));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.login-button:hover {
    background: linear-gradient(135deg, var(--primary-dark, #600000), #4A0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

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

.cancel-button {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.cancel-button:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.cancel-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(108, 117, 125, 0.3);
}

/* 安全提示区域 */
.login-prompt-security {
    background-color: rgba(139, 0, 0, 0.05);
    border: 1px solid rgba(139, 0, 0, 0.1);
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.login-prompt-security-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color, #8B0000);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-prompt-security-text {
    font-size: 0.85rem;
    color: var(--text-light, #4A4A4A);
    line-height: 1.4;
}

/* 动画效果 */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDialog {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

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

@keyframes slideOutDialog {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
}

.login-prompt-overlay.closing {
    animation: fadeOutOverlay 0.3s ease forwards;
}

.login-prompt-overlay.closing .login-prompt-dialog {
    animation: slideOutDialog 0.3s ease forwards;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-prompt-dialog {
        width: 95%;
        margin: 0 10px;
    }
    
    .login-prompt-header {
        padding: 18px 20px;
    }
    
    .login-prompt-title {
        font-size: 1.2rem;
    }
    
    .login-prompt-content {
        padding: 25px 20px 20px;
    }
    
    .login-prompt-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .login-prompt-button {
        width: 100%;
        min-width: auto;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .login-prompt-dialog {
        background-color: #1a1a1a;
        border-color: var(--primary-light, #A52A2A);
    }
    
    .login-prompt-message {
        color: #e0e0e0;
    }
    
    .login-prompt-security {
        background-color: rgba(139, 0, 0, 0.1);
        border-color: rgba(139, 0, 0, 0.2);
    }
    
    .login-prompt-security-text {
        color: #b0b0b0;
    }
}

/* 无障碍功能 */
.login-prompt-button:focus {
    outline: 2px solid var(--accent-color, #D4AF37);
    outline-offset: 2px;
}

/* 防止页面滚动 */
body.login-prompt-open {
    overflow: hidden;
}