/* ========================================
   登录/注册页面样式 v10.0
   全屏左右布局，内容居中，精致美观
   ======================================== */

/* ===== 基础重置 ===== */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f3ff 100%);
    font-family: "Microsoft Yahei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, tahoma, arial, Verdana, sans-serif;
    color: #1e293b;
    overflow: hidden;
}

/* ===== 外层容器（全屏居中） ===== */
.auth-wrapper {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

/* 右侧表单内容容器 */
.auth-form-inner {
    width: 100%;
    max-width: 440px;
    margin-top: auto;
    margin-bottom: auto;
}

/* 标题行：标题+返回首页 同行左右布局 */
.auth-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-header-row h2 {
    margin: 0;
}

/* 返回首页 */
.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    flex-shrink: 0;
}

.auth-home-link:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
    text-decoration: none;
}

.auth-home-link i {
    font-size: 13px;
}

/* ===== 主卡片（全屏左右布局） ===== */
.auth-box {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* ===== 左侧品牌区 ===== */
.auth-brand {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 30%, #2563eb 70%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 60px;
}

/* 浮动光晕 */
.auth-brand::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: brandFloatGlow 4s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes brandFloatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, 70px) scale(1.2);
    }
}

.auth-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 420px;
    width: 100%;
}

/* 粒子光点 */
.brand-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.brand-dot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: rgba(147, 197, 253, 0.7);
    box-shadow: 0 0 8px rgba(147, 197, 253, 0.5);
    animation: dotFloat var(--dur) ease-in-out var(--delay) infinite alternate;
}

@keyframes dotFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(50px, -60px) scale(1.6);
        opacity: 0.2;
    }
}

/* 水平扫描网格线 - 加快 */
.brand-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.brand-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--top);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(147, 197, 253, 0.12) 15%, rgba(147, 197, 253, 0.3) 50%, rgba(147, 197, 253, 0.12) 85%, transparent 100%);
    animation: gridLineFade 3s ease-in-out var(--delay) infinite;
}

@keyframes gridLineFade {

    0%,
    100% {
        opacity: 0.15;
        transform: scaleX(0.5);
    }

    50% {
        opacity: 0.9;
        transform: scaleX(1);
    }
}

/* 竖向扫描线 */
.brand-v-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.brand-v-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--left);
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(147, 197, 253, 0.12) 15%, rgba(147, 197, 253, 0.3) 50%, rgba(147, 197, 253, 0.12) 85%, transparent 100%);
    animation: vLineFade 3.5s ease-in-out var(--delay) infinite;
}

@keyframes vLineFade {

    0%,
    100% {
        opacity: 0.1;
        transform: scaleY(0.4);
    }

    50% {
        opacity: 0.8;
        transform: scaleY(1);
    }
}

/* 科技光环 */
.brand-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(147, 197, 253, 0.12);
    pointer-events: none;
    z-index: 0;
}

.brand-ring-1 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -60px;
    animation: ringPulse 3s ease-in-out infinite;
}

.brand-ring-2 {
    width: 200px;
    height: 200px;
    top: -40px;
    right: -20px;
    animation: ringPulse 3.5s ease-in-out 1s infinite;
}

.brand-ring-3 {
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: dashed;
    animation: ringRotate 8s linear infinite;
}

.brand-ring-4 {
    width: 400px;
    height: 400px;
    top: -120px;
    left: -100px;
    animation: ringPulse 5s ease-in-out 0.5s infinite;
}

.brand-ring-5 {
    width: 250px;
    height: 250px;
    bottom: -60px;
    right: 10%;
    border-style: dotted;
    animation: ringRotate 12s linear infinite reverse;
}

.brand-ring-6 {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 10%;
    border-style: dashed;
    animation: ringRotate 10s linear infinite;
}

.brand-ring-7 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    right: -80px;
    animation: ringPulse 4s ease-in-out 2s infinite;
}

.brand-ring-8 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    border-style: dotted;
    animation: ringPulse 3s ease-in-out 0.8s infinite;
}

.brand-ring-9 {
    width: 450px;
    height: 450px;
    top: -150px;
    right: -200px;
    border-style: dashed;
    animation: ringRotate 15s linear infinite reverse;
}

.brand-ring-10 {
    width: 280px;
    height: 280px;
    bottom: 20%;
    left: -80px;
    animation: ringPulse 4.5s ease-in-out 1.5s infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
        border-color: rgba(147, 197, 253, 0.12);
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
        border-color: rgba(147, 197, 253, 0.3);
    }
}

@keyframes ringRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0.2;
    }
}

/* 圆弧线 */
.brand-arc {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
    pointer-events: none;
    z-index: 0;
    animation: arcGlow 3s ease-in-out var(--delay) infinite alternate;
}

.brand-arc-1 {
    width: 500px;
    height: 500px;
    top: 30%;
    left: -200px;
    border-top-color: rgba(147, 197, 253, 0.15);
    border-right-color: rgba(147, 197, 253, 0.08);
    --delay: 0s;
}

.brand-arc-2 {
    width: 350px;
    height: 350px;
    bottom: -80px;
    right: -100px;
    border-bottom-color: rgba(147, 197, 253, 0.12);
    border-left-color: rgba(147, 197, 253, 0.06);
    --delay: 1s;
}

.brand-arc-3 {
    width: 220px;
    height: 220px;
    top: 10%;
    right: 5%;
    border-top-color: rgba(96, 165, 250, 0.18);
    border-left-color: rgba(96, 165, 250, 0.08);
    --delay: 2s;
}

.brand-arc-4 {
    width: 600px;
    height: 600px;
    bottom: -250px;
    left: -150px;
    border-bottom-color: rgba(147, 197, 253, 0.1);
    border-right-color: rgba(147, 197, 253, 0.05);
    --delay: 0.5s;
}

.brand-arc-5 {
    width: 180px;
    height: 180px;
    top: 40%;
    right: 20%;
    border-top-color: rgba(96, 165, 250, 0.2);
    border-right-color: rgba(96, 165, 250, 0.08);
    --delay: 1.5s;
}

.brand-arc-6 {
    width: 420px;
    height: 420px;
    top: -80px;
    left: 20%;
    border-bottom-color: rgba(147, 197, 253, 0.12);
    border-left-color: rgba(147, 197, 253, 0.05);
    --delay: 0.8s;
}

.brand-arc-7 {
    width: 260px;
    height: 260px;
    bottom: 10%;
    left: 5%;
    border-top-color: rgba(96, 165, 250, 0.15);
    border-left-color: rgba(96, 165, 250, 0.06);
    --delay: 2.5s;
}

.brand-arc-8 {
    width: 550px;
    height: 550px;
    top: 20%;
    right: -250px;
    border-left-color: rgba(147, 197, 253, 0.1);
    border-bottom-color: rgba(147, 197, 253, 0.06);
    --delay: 1.2s;
}

.brand-arc-9 {
    width: 320px;
    height: 320px;
    bottom: -50px;
    left: 40%;
    border-top-color: rgba(96, 165, 250, 0.14);
    border-right-color: rgba(96, 165, 250, 0.07);
    --delay: 0.3s;
}

.brand-arc-10 {
    width: 150px;
    height: 150px;
    top: 70%;
    left: 30%;
    border-bottom-color: rgba(147, 197, 253, 0.18);
    border-left-color: rgba(147, 197, 253, 0.08);
    --delay: 2s;
}

@keyframes arcGlow {
    0% {
        opacity: 0.3;
        filter: brightness(0.8);
    }

    100% {
        opacity: 1;
        filter: brightness(1.4);
    }
}

/* 光脉冲 */
.brand-pulse {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.brand-pulse-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 60%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.2) 0%, transparent 70%);
    animation: pulseGlow 2.5s ease-in-out infinite;
}

.brand-pulse-2 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 15%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out 1.2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.auth-logo-badge {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% {
        box-shadow: 0 0 10px rgba(147, 197, 253, 0.15);
    }

    100% {
        box-shadow: 0 0 30px rgba(147, 197, 253, 0.5), 0 0 60px rgba(96, 165, 250, 0.15);
    }
}

.auth-logo-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-brand-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.auth-brand-desc {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.8;
    margin: 0 0 40px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    padding: 10px 0;
    opacity: 0.9;
}

.auth-features li i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ===== 右侧表单区 ===== */
.auth-form-area {
    flex: 0 0 780px;
    max-width: 780px;
    padding: 40px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ===== 表单卡片 ===== */
.auth-card {
    width: 100%;
}

/* 面板切换 */
.auth-pane {
    display: none;
}

.auth-pane.active {
    display: block;
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头部 */
.auth-card-header {
    margin-bottom: 28px;
    text-align: left;
}

.auth-card-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.auth-card-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* 表单字段 */
.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.auth-label-row .auth-label {
    margin-bottom: 0;
}

.auth-forget {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-forget:hover {
    text-decoration: underline;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    transition: color 0.2s;
    z-index: 1;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    background: #fff;
}

.auth-input:focus~.auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
    color: #2563eb;
}

/* 提示文字 */
.auth-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
}

.auth-hint i {
    margin-right: 3px;
}

/* 验证码行 */
.auth-captcha-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.auth-captcha-input {
    flex: 1;
}

.auth-captcha-img {
    height: 46px;
    width: 112px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    object-fit: cover;
    flex-shrink: 0;
}

/* 获取验证码按钮 */
.auth-btn-code {
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid #2563eb;
    border-radius: 12px;
    background: #fff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
    min-width: 104px;
}

.auth-btn-code:hover {
    background: #eff6ff;
}

.auth-btn-code:disabled {
    border-color: #e2e8f0;
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
}

/* 主按钮 */
.auth-btn-primary {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    letter-spacing: 4px;
    margin-top: 8px;
    font-family: inherit;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

/* 复选框 */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    line-height: 1.6;
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox a {
    color: #2563eb;
    text-decoration: none;
}

.auth-checkbox a:hover {
    text-decoration: underline;
}

/* 第三方登录 */
.auth-social {
    margin-top: 24px;
}

.auth-social-divider {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.auth-social-divider::before,
.auth-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-social-divider span {
    padding: 0 14px;
    font-size: 12px;
    color: #94a3b8;
}

.auth-social-row {
    display: flex;
    gap: 12px;
}

.auth-social-btn {
    flex: 1;
    height: 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-social-btn i {
    font-size: 18px;
}

.auth-social-wechat {
    color: #07c160;
}

.auth-social-wechat:hover {
    background: #07c160;
    border-color: #07c160;
    color: #fff;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.25);
}

.auth-social-qq {
    color: #12b7f5;
}

.auth-social-qq:hover {
    background: #12b7f5;
    border-color: #12b7f5;
    color: #fff;
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.25);
}

/* 底部链接 */
.auth-card-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
}

.auth-card-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

/* ===== 微信扫码面板 ===== */
.auth-wechat-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.auth-back-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.auth-back-btn:hover {
    background: #eff6ff;
    color: #2563eb;
}

.auth-wechat-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    padding-right: 36px;
}

.auth-qr-wrap {
    width: 450px;
    height: 480px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #fff;
    max-width: 100%;
}

.auth-qr-wrap iframe {
    width: 450px;
    height: 480px;
    border: none;
    padding: 15px 0;
    display: block;
    transform-origin: top left;
}

.auth-qr-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #2563eb;
    font-size: 28px;
}

.auth-qr-tip {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-qr-tip i {
    color: #07c160;
    font-size: 18px;
}

/* ===== 找回方式切换按钮 ===== */
.auth-type-group {
    display: flex;
    gap: 10px;
}

.auth-type-btn {
    flex: 1;
    height: 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-type-btn i {
    font-size: 16px;
}

.auth-type-btn:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.auth-type-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

/* ===== 带下拉选择的输入框 ===== */
.auth-input-select {
    position: absolute;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    border: none;
    border-right: 1px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    padding: 0 24px 0 8px;
    cursor: pointer;
    outline: none;
    z-index: 2;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}

.auth-input-with-select {
    padding-left: 140px !important;
}

/* ===== 密码强度指示器 ===== */
.bd-pwd-strength {
    margin-top: 8px;
}

.bd-pwd-strength-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.bd-pwd-strength-bar .strength-seg {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    transition: background 0.3s ease;
}

.bd-pwd-strength-bar.level-weak .strength-seg:nth-child(1) {
    background: #ef4444;
}

.bd-pwd-strength-bar.level-medium .strength-seg:nth-child(1),
.bd-pwd-strength-bar.level-medium .strength-seg:nth-child(2) {
    background: #f59e0b;
}

.bd-pwd-strength-bar.level-strong .strength-seg:nth-child(1),
.bd-pwd-strength-bar.level-strong .strength-seg:nth-child(2),
.bd-pwd-strength-bar.level-strong .strength-seg:nth-child(3) {
    background: #3b82f6;
}

.bd-pwd-strength-bar.level-super .strength-seg:nth-child(1),
.bd-pwd-strength-bar.level-super .strength-seg:nth-child(2),
.bd-pwd-strength-bar.level-super .strength-seg:nth-child(3),
.bd-pwd-strength-bar.level-super .strength-seg:nth-child(4) {
    background: #10b981;
}

.bd-pwd-strength-text {
    font-size: 12px;
    line-height: 1.5;
    min-height: 18px;
}

.bd-pwd-strength-text.level-hint {
    color: #ef4444;
}

.bd-pwd-strength-text.level-weak {
    color: #ef4444;
}

.bd-pwd-strength-text.level-medium {
    color: #f59e0b;
}

.bd-pwd-strength-text.level-strong {
    color: #3b82f6;
}

.bd-pwd-strength-text.level-super {
    color: #10b981;
}

.bd-pwd-strength-text .pwd-level-label {
    font-weight: 500;
}

.bd-pwd-strength-text .pwd-hints {
    color: #94a3b8;
    margin-left: 6px;
    font-weight: normal;
}

/* 密码输入错误状态 */
.pwd-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08) !important;
    background: #fff !important;
}

/* ===== OAuth 第三方登录结果页（绑定/注册） ===== */
.bd-auth-card {
    width: 100%;
}

.bd-auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.bd-auth-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bd-wechat-icon {
    color: #07c160;
    font-size: 24px;
}

.bd-qq-icon {
    color: #12b7f5;
    font-size: 24px;
}

/* 用户信息展示 */
.bd-wechat-result-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 14px;
}

.wechat-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
}

.bd-wechat-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.wechat-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.wechat-status-msg {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.wechat-status-warning {
    color: #d97706;
}

.wechat-status-warning i {
    margin-right: 4px;
}

/* 选项卡 */
.bd-wechat-tabs {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 20px;
}

.bd-wechat-tabs .tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.bd-wechat-tabs .tab-item:hover {
    color: #2563eb;
}

.bd-wechat-tabs .tab-item.active {
    color: #2563eb;
    font-weight: 600;
}

.bd-wechat-tabs .tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #2563eb;
    border-radius: 1px;
}

/* 选项卡面板 */
.bd-wechat-tab-pane {
    display: none;
    animation: authFadeIn 0.3s ease;
}

.bd-wechat-tab-pane.active {
    display: block;
}

/* 返回登录链接 */
.bd-wechat-back-login {
    text-align: center;
    margin-top: 20px;
}

.bd-wechat-back-login a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.bd-wechat-back-login a:hover {
    color: #2563eb;
}

.bd-wechat-back-login a i {
    font-size: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {

    html,
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100%;
    }

    .auth-wrapper {
        height: auto;
        min-height: 100vh;
        padding: 0;
    }

    .auth-box {
        flex-direction: column;
        min-height: 100vh;
        height: auto;
    }

    .auth-brand {
        flex: none;
        padding: 60px 32px 40px;
        min-height: 280px;
    }

    .auth-brand-logo {
        margin-bottom: 24px;
    }

    .auth-brand-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .auth-brand-desc {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .auth-features li {
        padding: 5px 0;
        font-size: 13px;
    }

    .auth-features li i {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .auth-form-area {
        flex: 1;
        max-width: 100%;
        padding: 36px 32px;
        border-radius: 24px 24px 0 0;
        margin-top: -24px;
        position: relative;
        z-index: 2;
        align-items: center;
    }

    .auth-qr-wrap {
        width: 225px;
        height: 240px;
    }

    .auth-qr-wrap iframe {
        transform: scale(0.5);
    }

    .auth-home-link {
        padding: 5px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .auth-brand {
        padding: 50px 20px 36px;
        min-height: 240px;
    }

    .auth-form-area {
        padding: 32px 20px;
    }

    .auth-brand-title {
        font-size: 20px;
    }

    .auth-qr-wrap {
        width: 200px;
        height: 215px;
    }

    .auth-qr-wrap iframe {
        transform: scale(0.44);
    }
}

/* ===== Toast弹框顶部水平居中 ===== */
.bd-toast-container {
    position: fixed !important;
    top: 24px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    z-index: 99999 !important;
    pointer-events: none;
    width: max-content !important;
    max-width: 92vw !important;
}

.bd-toast-container .bd-toast {
    pointer-events: auto;
    min-width: 200px;
    max-width: 90vw;
    text-align: center;
    justify-content: center;
    white-space: normal;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
}