﻿/* 登录相关样式 - 带前缀避免冲突 */
.login-button-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px;
}

.login-control-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn-success {
    background-color: #10b981;
    color: white;
}

    .login-btn-success:hover {
        background-color: #059669;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    }

.login-btn-fail {
    background-color: #ef4444;
    color: white;
}

    .login-btn-fail:hover {
        background-color: #dc2626;
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    }

/* 弹窗样式 */
.login-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    .login-loading-modal.login-active {
        opacity: 1;
        visibility: visible;
    }

.login-modal-content {
    background-color: #1e293b;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    width: 100%;
    max-width: 320px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-loading-modal.login-active .login-modal-content {
    transform: translateY(0) scale(1);
}

/* 状态图标 */
.login-status-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.login-status-loading {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.login-status-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.login-status-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 标题和信息 */
.login-modal-title {
    color: #f8fafc;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.login-modal-message {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* 加载动画 */
.login-tech-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    position: relative;
}

    .login-tech-spinner::before,
    .login-tech-spinner::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 3px solid transparent;
    }

    .login-tech-spinner::before {
        border-top-color: #3b82f6;
        border-right-color: #3b82f6;
        animation: login-spin 1s linear infinite;
    }

    .login-tech-spinner::after {
        border-bottom-color: #3b82f6;
        border-left-color: #3b82f6;
        animation: login-spin 1s linear reverse infinite;
    }

@keyframes login-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 进度条样式 */
.login-progress-container {
    width: 100%;
    height: 4px;
    background-color: rgba(148, 163, 184, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

    .login-progress-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
        animation: login-progressFlow 1.5s linear infinite;
    }

@keyframes login-progressFlow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.login-progress-bar {
    height: 100%;
    background-color: #3b82f6;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.login-progress-text {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

/* 关闭按钮 */
.login-close-btn {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

    .login-close-btn:hover {
        background-color: rgba(59, 130, 246, 0.2);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    }
