/* ============================================================
   MyShopSite 登录注册模块样式
   文件：Content/site.auth.css
   职责：
     1. 登录/注册/忘记密码页面的左右分栏布局
     2. 品牌沉浸区与表单区
     3. 表单控件、验证码输入行
     4. Tab 切换（验证码登录 / 密码登录）
     5. 第三方登录按钮（微信、支付宝）
     6. 图形验证码弹窗
     7. 登录/注册互切入口（V25.6 强化）
   注意：
     此文件仅用于 Account 相关页面，其他页面不引用。
   ============================================================ */

/* ==================== 1. 左右分栏容器 ==================== */
.auth-card {
    max-width: 1405px;
    margin: 15px auto;
    border: 1px solid #3d61a5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, #1a2634 0%, #1a2634 43%, #ffffff 43%, #ffffff 100%);
}

.auth-split-layout {
    display: flex;
    min-height: auto;
    margin: 0;
    padding: 0;
}

/* ==================== 2. 左侧品牌沉浸区 ==================== */
.auth-brand-side {
    flex: 3;
    position: relative;
    background: #1a2634;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    overflow: hidden;
}

.auth-brand-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg, rgba(61,97,165,0.08) 25%, transparent 25%), linear-gradient(-45deg, rgba(61,97,165,0.06) 25%, transparent 25%);
    background-size: 60px 60px, 80px 80px;
    background-position: 0 0, 30px 40px;
    pointer-events: none;
}

.auth-brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(30,38,50,0.92) 0%, rgba(42,74,122,0.88) 50%, rgba(61,97,165,0.85) 100%);
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.auth-logo-box {
    display: inline-block;
    background: #ffffff;
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.auth-logo-img {
    display: block;
    width: 99px;
    height: 99px;
}

.auth-brand-title {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: 6px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.auth-brand-subtitle {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.8;
    margin: 0 0 48px 0;
    letter-spacing: 2px;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.auth-feature-icon {
    font-size: 22px;
    flex-shrink: 0;
}

/* ==================== 3. 右侧表单区 ==================== */
.auth-form-side {
    flex: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    background: #fff;
}

.auth-form-inner {
    width: 100%;
    max-width: 520px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2634;
    margin: 0 0 8px 0;
}

.auth-subtitle {
    font-size: 14px;
    color: #999;
    margin: 0 0 28px 0;
}

/* ==================== 4. 提示信息 ==================== */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-alert-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.auth-alert-warning {
    background: #fff8e1;
    color: #8d6e00;
    border: 1px solid #ffe082;
}

.auth-alert-error {
    background: #fef0f0;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* ==================== 5. 表单元素 ==================== */
.auth-form {
    margin-bottom: 0;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

    .auth-input:focus {
        border-color: #3d61a5;
        box-shadow: 0 0 0 3px rgba(61,97,165,0.1);
        background: #fff;
        outline: none;
    }

    .auth-input::placeholder {
        color: #bbb;
    }

.auth-code-row {
    display: flex;
    gap: 10px;
}

.auth-code-input {
    flex: 1;
    min-width: 0;
}

.auth-code-btn {
    width: 130px;
    height: 46px;
    background: #3d61a5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

    .auth-code-btn:hover {
        background: #2a4a7a;
    }

    .auth-code-btn:disabled,
    .auth-code-btn.counting {
        background: #ccc;
        cursor: not-allowed;
    }

.auth-field-error {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

/* ==================== 5.1 密码强度实时提示（V25.6 新增，H12） ==================== */
/* 适用页面：Register / ForgotPassword / ChangePassword
   说明：从视图内联样式中抽离，统一由 site.auth.css 管理 */
.pwd-hint {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.8;
}

    .pwd-hint .pwd-hint-item {
        display: inline-block;
        margin-right: 12px;
        color: #999;
        transition: color 0.15s;
    }

        .pwd-hint .pwd-hint-item.ok {
            color: #28a745;
        }

        .pwd-hint .pwd-hint-item.fail {
            color: #dc3545;
        }

/* ==================== 6. 记住我 / 忘记密码 ==================== */
.auth-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
}

    .auth-remember input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #3d61a5;
        cursor: pointer;
    }

.auth-remember-text {
    user-select: none;
}

.auth-forgot {
    color: #3d61a5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .auth-forgot:hover {
        color: #2a4a7a;
        text-decoration: underline;
    }

/* ==================== 7. 提交按钮 ==================== */
.auth-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #3d61a5 0%, #2a4a7a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 2px;
}

    .auth-btn:hover {
        background: linear-gradient(135deg, #2a4a7a 0%, #1a3052 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(61,97,165,0.3);
    }

    .auth-btn:active {
        transform: translateY(0);
        box-shadow: none;
    }

/* ==================== 8. 第三方登录分割线 ==================== */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #bbb;
    font-size: 13px;
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e8e8e8;
    }

    .auth-divider span {
        padding: 0 18px;
        white-space: nowrap;
    }

/* ==================== 9. 第三方登录按钮 ==================== */
.auth-social {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.auth-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #666;
}

    .auth-social-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.auth-btn-wechat {
    border-color: #e0e0e0;
    color: #07c160;
}

    .auth-btn-wechat:hover {
        border-color: #07c160;
        background: #f0faf4;
        color: #06ad56;
    }

.auth-btn-alipay {
    border-color: #e0e0e0;
    color: #1677ff;
}

    .auth-btn-alipay:hover {
        border-color: #1677ff;
        background: #f0f7ff;
        color: #0958d9;
    }

/* ==================== 10. 底部链接 ==================== */
.auth-links {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

    .auth-links a {
        color: #3d61a5;
        text-decoration: none;
        font-weight: 600;
        margin-left: 6px;
        transition: color 0.2s;
    }

        .auth-links a:hover {
            color: #2a4a7a;
            text-decoration: underline;
        }

/* ==================== 10.1 登录/注册互切入口 ==================== */
.auth-switch {
    margin: 18px 0 24px;
    text-align: center;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

    .auth-switch > span {
        vertical-align: middle;
    }

.auth-switch-link {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    padding: 5px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.auth-switch-link-orange {
    color: #f97316;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .auth-switch-link-orange:hover {
        background: #f97316;
        color: #fff;
        border-color: #f97316;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(249, 115, 22, 0.3);
    }

.auth-switch-link-blue {
    color: #3d61a5;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

    .auth-switch-link-blue:hover {
        background: #3d61a5;
        color: #fff;
        border-color: #3d61a5;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(61, 97, 165, 0.3);
    }

/* ==================== 11. Tab 切换 ==================== */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

    .auth-tab:hover {
        color: #3d61a5;
    }

    .auth-tab.active {
        color: #3d61a5;
        border-bottom-color: #3d61a5;
    }

.auth-tab-panel {
    display: none;
}

    .auth-tab-panel.active {
        display: block;
    }

/* ==================== 12. 图形验证码弹窗 ==================== */
.captcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px 35px 25px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    text-align: center;
}

.captcha-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2634;
    margin-bottom: 8px;
}

.captcha-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.captcha-question {
    font-size: 22px;
    font-weight: 700;
    color: #3d61a5;
    background: #f0f4ff;
    border-radius: 6px;
    padding: 10px 0;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.captcha-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    text-align: center;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    margin-bottom: 16px;
}

    .captcha-input:focus {
        border-color: #3d61a5;
        box-shadow: 0 0 0 3px rgba(61,97,165,0.1);
        background: #fff;
        outline: none;
    }

    .captcha-input.error {
        border-color: #e83e3e;
        box-shadow: 0 0 0 3px rgba(232,62,62,0.1);
    }

.captcha-error {
    color: #e83e3e;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 12px;
    display: none;
}

    .captcha-error.show {
        display: block;
    }

.captcha-actions {
    display: flex;
    gap: 10px;
}

.captcha-btn {
    flex: 1;
    height: 42px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.captcha-btn-confirm {
    background: #3d61a5;
    color: #fff;
}

    .captcha-btn-confirm:hover {
        background: #2a4a7a;
    }

.captcha-btn-cancel {
    background: #f0f2f5;
    color: #666;
    border: 1px solid #d0d0d0;
}

    .captcha-btn-cancel:hover {
        background: #e0e4ec;
    }
