/**
 * ABV2 统一认证 - 登录 UI 样式（Glassmorphism 风格）
 * 主色 #07C160，深灰 #333
 */

/* 登录弹窗内的微信登录卡片（与 .sign form 同规格，继承主题弹窗布局） */
.sign .abv2-auth-card {
    display: none;
    position: relative;
    z-index: 9;
    margin: 0 auto;
    padding: 30px 35px 35px;
    background-color: var(--tb--white, #fff);
    width: 360px;
    border-radius: 6px;
    text-align: left;
}

@media (max-width: 600px) {
    .sign .abv2-auth-card {
        padding: 25px 25px 30px;
        width: 80%;
    }
}

.sign .abv2-auth-card.is-active {
    display: block;
}

.sign .abv2-auth-account-pane {
    display: block;
    position: relative;
    z-index: 9;
    margin: 0 auto;
    width: 360px;
    max-width: 100%;
}

.sign .abv2-auth-account-pane:empty {
    display: none;
}

.sign .abv2-auth-card.is-active ~ .abv2-auth-account-pane {
    display: none;
}

.sign .abv2-auth-card h4 {
    margin: 0 0 24px;
    font-size: 18px;
}

.sign .abv2-auth-card h4 small {
    float: right;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    margin-top: 2px;
    font-weight: normal;
}

.sign .abv2-auth-card h4 small:hover {
    color: #07c160;
}

/* 已登录用户的绑定微信引导浮层 */
.abv2-bind-tip {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    color: #333;
}

.abv2-bind-tip button {
    padding: 6px 14px;
    font-size: 13px;
    color: #fff;
    background: #07c160;
    border: none;
    border-radius: 16px;
    cursor: pointer;
}

.abv2-bind-tip .abv2-bind-dismiss {
    color: #999;
    background: transparent;
}

.abv2-bind-tip .abv2-bind-dismiss:hover {
    color: #666;
}

@media (max-width: 600px) {
    .abv2-bind-tip {
        right: 12px;
        bottom: 12px;
        left: 12px;
        justify-content: space-between;
    }
}

.abv2-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.abv2-auth-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.abv2-auth-tab:hover {
    color: #333;
}

.abv2-auth-tab.is-active {
    color: #07c160;
    border-bottom-color: #07c160;
    font-weight: 600;
}

.abv2-auth-pane {
    display: none;
}

.abv2-auth-pane.is-active {
    display: block;
}

.abv2-auth-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.abv2-auth-qr-box iframe {
    border: none;
}

.abv2-auth-tip {
    color: #999;
    font-size: 13px;
    text-align: center;
    margin: 12px 0 0;
}

.abv2-auth-wechat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    color: #fff;
    background: #07c160;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.abv2-auth-wechat-btn:hover {
    background: #06ad56;
}

.abv2-auth-migrate-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

.abv2-auth-migrate-card {
    width: 90%;
    max-width: 380px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.abv2-auth-migrate-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
}

.abv2-auth-migrate-card p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #888;
}

.abv2-auth-migrate-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.abv2-auth-migrate-card input:focus {
    border-color: #07c160;
}

.abv2-auth-migrate-card .abv2-auth-btn-primary {
    width: 100%;
    padding: 11px;
    font-size: 15px;
    color: #fff;
    background: #07c160;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.abv2-auth-migrate-card .abv2-auth-btn-secondary {
    width: 100%;
    padding: 11px;
    margin-top: 10px;
    font-size: 14px;
    color: #07c160;
    background: transparent;
    border: 1px solid #07c160;
    border-radius: 8px;
    cursor: pointer;
}

.abv2-auth-migrate-card .abv2-auth-error {
    margin: 0 0 10px;
    font-size: 13px;
    color: #e64545;
}
