.no-auth-badge {
            display: inline-block;
            background-color: #10b981;
            color: white;
            padding: 0.15rem 0.5rem;
            border-radius: 999px;
            font-size: 0.75rem;
            margin-left: 0.5rem;
        }
        /* 模态框核心样式 - 确保能正常显示 */
        .confirm-modal, .qr-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .confirm-modal.active, .qr-modal.active {
            display: flex;
            animation: fadeIn 0.3s;
        }
        .confirm-content, .qr-modal-content {
            background: rgba(56, 122, 238, 0.8);
            border-radius: 0.5rem;
            width: 100%;
            max-width: 320px;
            padding: 1.5rem;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

.dark-input {
            background-color: #333 !important;
            color: #fff !important;
            border-color: #555 !important;
        }
.dark-input::placeholder {
            color: #aaa !important;
        }


@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .bg-glass {
        border: 1.5px solid rgba(59, 130, 246, 0.3);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
		background: transparent;
        backdrop-filter: blur(0px);
        transition: all 0.25s ease-out;
       
    }
    .bg-glass:hover {
        background: rgba(255, 255, 255, 0.5);
        
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 25px rgba(59, 130, 246, 0.7);
    }
 
    
/* 方案二：使用 !important 强制应用样式 */
.btn-translucent {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    color: white !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.btn-translucent:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.btn-translucent:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
}
    
    .input-focus {
        @apply focus:ring-2 focus:ring-primary/50 focus:border-primary/70 transition-all;
    }
    .btn-hover {
        @apply hover:shadow-lg hover:shadow-primary/30 hover:-translate-y-0.5 transition-all duration-300;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    /* 清除记住的用户名和密码：红色字体、缩小样式 */
    .clear-bar {
        color: #DC2626 !important;
        font-size: 0.75rem !important;
        cursor: pointer;
        padding-top: 0.125rem;
        padding-bottom: 0.125rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        transition-property: color;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 200ms;
    }
    .clear-bar:hover {
        color: #B91C1C !important;
        border: 1px solid red !important;
        border-radius: 0.25rem !important;
    }
    
    .login-prompt {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        text-align: center;
        font-size: 1.5rem;
        font-weight: bold;
        color: white;
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
        opacity: 1;
        transition: opacity 0.3s ease-out, transform 0.2s ease-out;
        pointer-events: none;
    }
    .bg-glass:hover .login-prompt {
        opacity: 0;
        transform: translateY(-50%) scale(0.9);
    }
    .status-pending { color: #F97316; }
    .status-scanned { color: #3B82F6; }
    .status-authorized { color: #10B981; }
    .status-rejected { color: #EF4444; }
    .status-expired { color: #9CA3AF; }
/* 方案一：将伪元素的背景效果改为按钮本身的样式 */
.btn-circle {
    @apply w-12 h-12 rounded-full flex items-center justify-center overflow-hidden relative;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.8));
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
}

.btn-circle:hover {
    transform: translateY(-3px) rotate(2deg);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.7);
}

/* 移除伪元素 */
.btn-circle::before {
    content: none;
}
    
    .other-login-methods {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
    }
    .other-login-methods h3 {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 10px;
        position: relative;
        display: inline-block;
        padding: 0 15px;
    }
    .other-login-methods h3::before,
    .other-login-methods h3::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 30px;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }
    .other-login-methods h3::before { left: -35px; }
    .other-login-methods h3::after { right: -35px; }
    .login-methods-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        padding: 10px 0;
    }
    
    /* 二维码模态框样式 */
    .qr-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.2s ease;
        transform: scale(0.9);
    }
    .qr-modal.active {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }
    .qr-modal-content {
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%);
        border-radius: 12px;
        padding: 30px;
        text-align: center;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.8);
        position: relative;
        max-width: 300px;
        width: 90%;
        transform: scale(0.8);
        transition: transform 0.2s ease;
    }
    .qr-modal.active .qr-modal-content {
        transform: scale(1);
    }
    .qr-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.2);
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    .qr-close-btn:hover {
        background-color: rgba(255, 255, 255, 0.4);
    }
    #qrCodeContainer {
        width: 200px;
        height: 200px;
        margin: 0 auto 20px;
        border-radius: 8px;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .qr-status { margin-bottom: 15px; font-size: 1rem; }
    .qr-timer { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
    .qr-loading {
        width: 30px;
        height: 30px;
        border: 5px solid rgba(255, 255, 255, 0.3);
        border-radius: 20%;
        border-top-color: white;
        animation: spin 1s ease-in-out infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    
    /* 确认对话框样式（已优化） */
    .confirm-modal {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
        backdrop-filter: blur(3px);
    }
    
    .confirm-modal.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .confirm-content {
        background: linear-gradient(145deg, #ffffff, #f0f0f0);
        padding: 24px;
        border-radius: 16px;
        width: 90%;
        max-width: 400px;
        transform: translateY(-20px);
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 
            0 10px 25px -5px rgba(0, 0, 0, 0.1),
            0 8px 10px -6px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(0, 0, 0, 0.05);
    }
    
    .confirm-modal.active .confirm-content {
        transform: translateY(0);
    }
    
    .confirm-title {
        font-weight: 700;
        font-size: 20px;
        margin-bottom: 16px;
        color: #1f2937;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    }
    
    .confirm-message {
        color: #4b5563;
        margin-bottom: 24px;
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* 确认对话框按钮样式（优化版本） */
    .confirm-buttons {
		color: #4b5563;
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        margin-top: 20px;
    }
    
    .confirm-btn {
        padding: 10px 18px;
        border-radius: 8px;
        cursor: pointer;
        border: none;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    
    /* 取消按钮 - 蓝色渐变 */
    .confirm-cancel {
        background: linear-gradient(135deg, #4F9EFB 0%, #3B82F6 100%);
        color: white;
        border: 1px solid #3B82F6;
    }
    
    .confirm-cancel:hover {
        background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px -2px rgba(59, 130, 246, 0.4), 0 3px 7px -3px rgba(59, 130, 246, 0.3);
    }
    
    .confirm-cancel:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    }
    
    /* 确认按钮 - 红色渐变 */
    .confirm-confirm {
        background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
        color: white;
        border: 1px solid #EF4444;
    }
    
    .confirm-confirm:hover {
        background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px -2px rgba(239, 68, 68, 0.4), 0 3px 7px -3px rgba(239, 68, 68, 0.3);
    }
    
    .confirm-confirm:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    }
    
    /* 添加按钮聚焦状态 */
    .confirm-btn:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
    }
    
    .confirm-confirm:focus {
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
    }
    /* 自定义下拉框样式 */
#usernameDropdown {
    box-sizing: border-box;
}
.dropdown-option {
    transition: background-color 0.2s;
}
.dropdown-option:hover {
    background-color: #f0f0f0;
}
.dropdown-option.active {
    background-color: #e6f7ff;
}
/* 下拉框显示动画 */
#usernameDropdown {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s, transform 0.2s;
}
#usernameDropdown.show {
    opacity: 1;
    transform: translateY(0);
}
}