/* ============================================
   第三方扫码登录公共样式（登录页 / 邮箱登录页 / 注册页共用）
   依赖：模板中 form-container 为定位容器、bootstrap 按钮
   关联 JS：static/js/social_login/wechat_login.js、qq_login.js
   ============================================ */

/* 覆盖层锚定：表单卡片需为定位容器 */
.form-container {
    position: relative;
}

/* 第三方登录按钮：与登录按钮同高同宽规格，多个时同行等分排列 */
.social-login-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0.5rem;
}
.social-btn {
    flex: 1;
    max-width: 200px;
    margin-top: 0;
}

/* 微信扫码登录覆盖层：覆盖表单卡片，右上角关闭切回原表单 */
.wx-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.wx-login-overlay.show {
    opacity: 1;
    visibility: visible;
}
.wx-login-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.wx-login-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}
.wx-login-overlay-title {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    font-weight: 500;
}
.wx-login-qr {
    width: 200px;
    height: 200px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.wx-login-qr.loaded {
    opacity: 1;
}
/* 二维码加载中的占位骨架 */
.wx-login-qr-loading {
    width: 200px;
    height: 200px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 13px;
}
.wx-login-tip {
    font-size: 13px;
    color: #6c757d;
    margin-top: 12px;
    text-align: center;
}
.wx-login-refresh {
    font-size: 13px;
    color: #07c160;
    margin-top: 8px;
    display: none;
    cursor: pointer;
    text-decoration: none;
}
.wx-login-refresh:hover {
    text-decoration: underline;
}
