/*
 * B2登录弹窗美化插件样式
 * 版本: 1.0.0
 */

/* 登录弹窗容器样式 */
.login-box-content {
    margin-top: 0 !important;
    width: auto !important;
    display: flex !important;
    position: relative !important;
    background: #fff !important;
    min-width: 750px !important;
}

/* 登录弹窗样式 - 与B2Pro主题风格保持一致 */
.aibk_com_login {
    width: 50% !important;
    position: relative !important;
    background-size: cover !important;
    background-position: center 0 !important;
    transition: opacity 0.3s ease, background-image 0.3s ease !important;
}

/* 背景图片加载成功样式 */
.aibk_com_login.has-background-image {
    background-color: #f5f5f5 !important; /* 加载过程中的背景色 */
}

/* 右侧登录表单区域 */
.login-box-content .login-box-top {
    width: 50% !important;
    padding: 30px 30px 25px !important;
}

/* 底部渐变和文字区域 */
.wxlogin-sidebar {
    position: absolute !important;
    bottom: 0 !important;
    width: 100% !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.8) 100%) !important;
}

.wxlogin-sidebar h3 {
    color: #fff !important;
    font-size: 18px !important;
    margin-bottom: 10px !important;
}

.wxlogin-sidebar p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    margin-bottom: 5px !important;
}

.wxlogin-sidebar>div {
    padding: 30px !important;
}

/* 圆角样式 */
.b2-radius {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .aibk_com_login {
        display: none !important;
    }
    
    .login-box-content {
        min-width: auto !important;
    }
    
    .login-box-content .login-box-top {
        width: 100% !important;
    }
}

/* 确保在深色模式下也能正常显示 */
body.dark-theme .login-box-content {
    background: #2d2d2d !important;
    color: #fff !important;
}

body.dark-theme .login-box-content input {
    background: #3d3d3d !important;
    border-color: #4d4d4d !important;
    color: #fff !important;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box-content {
    animation: fadeIn 0.3s ease-out !important;
}

/* 加载状态 */
.aibk_com_login.loading {
    background-color: #f0f0f0 !important;
    background-image: none !important;
}

/* 错误状态 */
.aibk_com_login.error {
    background-color: #fff5f5 !important;
    background-image: none !important;
}