/**
 * Interactive Bear Login - Clean Light Theme
 * 用户登录/注册 - 清爽专业亮色主题
 */

/* ===== 全局重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== 页面基础 ===== */
.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}
/* 装饰光斑 - 右上 */
.auth-page::before {
    content: '';
    position: fixed;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78,110,242,0.07) 0%, rgba(78,110,242,0.02) 50%, transparent 70%);
    top: -200px; right: -100px;
    z-index: 0;
    pointer-events: none;
}
/* 装饰光斑 - 左下 */
.auth-page::after {
    content: '';
    position: fixed;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
    bottom: -150px; left: -100px;
    z-index: 0;
    pointer-events: none;
}

/* ===== 卡片容器 ===== */
.auth-card {
    width: 100%; max-width: 400px;
    position: relative; z-index: 1;
}

/* ===== 小熊区域（亮色圆盘） ===== */
.bear-wrap {
    font-size: 0.7em;
    width: 10em; height: 10em;
    border-radius: 50%;
    background: linear-gradient(145deg, #dfe6f6 0%, #eef2ff 100%);
    margin: 0 auto -40px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow:
        0 8px 24px rgba(78,110,242,0.12),
        0 2px 6px rgba(0,0,0,0.04);
    border: 2.5px solid #fff;
}
.bear-wrap div { transition: all 0.5s; }

/* 身体 */
.bear-body {
    background: url('../assets/bear/body.png') no-repeat center / 100%;
    width: 6.5em; height: 6em;
    position: absolute; bottom: -2em; left: calc(50% - 3.25em);
    z-index: 0;
}
/* 耳朵 */
.bear-ear-l {
    background: url('../assets/bear/left-ear.png') no-repeat center / 100%;
    width: 2em; height: 2em;
    position: absolute; bottom: 5.5em; left: calc(50% - 4em);
}
.bear-ear-r {
    background: url('../assets/bear/right-ear.png') no-repeat center / 100%;
    width: 2em; height: 2em;
    position: absolute; bottom: 5.5em; left: calc(50% + 2em);
}
/* 脸 */
.bear-head {
    background: url('../assets/bear/face.png') no-repeat center / 100%;
    width: 7.5em; height: 7.25em;
    position: absolute; bottom: 1em; left: calc(50% - 3.75em);
    z-index: 1;
}
/* 眼睛 */
.bear-eye-l, .bear-eye-r {
    background: url('../assets/bear/eye.png') no-repeat center / 100%;
    width: 1em; height: 1em;
    position: absolute;
    bottom: 4em;
}
.bear-eye-l { left: calc(50% - 2.5em); }
.bear-eye-r { left: calc(50% + 1.5em); }
/* 脸部（口鼻区域） */
.bear-face {
    background: url('../assets/bear/muzzle.png') no-repeat center / 100%;
    width: 4em; height: 4em;
    position: absolute; bottom: 0; left: calc(50% - 2em);
}
/* 鼻子 */
.bear-nose {
    background: url('../assets/bear/nose.png') no-repeat center / 100%;
    width: 1em; height: 1em;
    position: absolute; top: 0.5em; left: calc(50% - 0.5em);
}
/* 嘴巴 */
.bear-mouth {
    background: url('../assets/bear/mouth-smile.png') no-repeat center / 100%;
    width: 2em; height: 1em;
    position: absolute; bottom: 1em; left: calc(50% - 1em);
}
/* 手臂 */
.bear-arm-l {
    background: url('../assets/bear/left-arm.png') no-repeat center / 100%;
    width: 3em; height: 7em;
    position: absolute; bottom: -7.5em; left: 1em;
    z-index: 2; transition: bottom 0.5s;
}
.bear-arm-r {
    background: url('../assets/bear/right-arm.png') no-repeat center / 100%;
    width: 3em; height: 7em;
    position: absolute; bottom: -7.5em; left: 6em;
    z-index: 2; transition: bottom 0.5s;
}

/* ===== 小熊状态：输入用户名 ===== */
.bear-wrap.state-username .bear-ear-l { left: 1.5em; }
.bear-wrap.state-username .bear-ear-r { left: 7.5em; }
.bear-wrap.state-username .bear-eye-l { left: 0.5em; bottom: 3.5em; }
.bear-wrap.state-username .bear-eye-r { left: 4em; bottom: 3.5em; }
.bear-wrap.state-username .bear-eye-l.doe,
.bear-wrap.state-username .bear-eye-r.doe {
    background-image: url('../assets/bear/eye-doe.png');
}
.bear-wrap.state-username .bear-face { left: 1em; }
.bear-wrap.state-username .bear-nose { left: 0.9em; top: 0.65em; }
.bear-wrap.state-username .bear-mouth {
    bottom: 0.75em;
    background-image: url('../assets/bear/mouth-half.png');
}
.bear-wrap.state-username .bear-mouth.doe {
    background-image: url('../assets/bear/mouth-open.png');
    height: 2em; bottom: 0.5em;
}

/* ===== 小熊状态：输入密码 ===== */
.bear-wrap.state-password .bear-arm-l,
.bear-wrap.state-password .bear-arm-r {
    bottom: -0.5em;
}
.bear-wrap.state-password .bear-arm-l.show,
.bear-wrap.state-password .bear-arm-r.show {
    bottom: -1.7em !important;
}
.bear-wrap.state-password .bear-mouth.show {
    width: 1em; left: calc(50% - 0.5em);
    background-image: url('../assets/bear/mouth-circle.png');
}

/* ===== 表单卡片（白色实底） ===== */
.auth-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 32px 32px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.06),
        0 1px 3px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
}
.auth-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 22px;
    letter-spacing: 1px;
}
.auth-title i {
    margin-right: 4px;
    color: #4e6ef2;
}

/* ===== 表单元素 ===== */
.auth-form .form-group {
    margin-bottom: 16px;
    position: relative;
}
.auth-form .form-group label {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.auth-form .form-group label .req { color: #ef4444; }

.auth-form .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    background: #f8f9fc;
    color: #1a1a2e;
    -webkit-appearance: none;
    appearance: none;
}
.auth-form .form-input:focus {
    border-color: #4e6ef2;
    box-shadow: 0 0 0 3px rgba(78,110,242,0.1);
    background: #fff;
}
.auth-form .form-input::placeholder { color: #b0b8c8; }

/* 密码行（输入框 + 眼睛图标） */
.auth-form .pwd-row { position: relative; }
.auth-form .pwd-row .form-input { padding-right: 2.8em; }
.auth-form .pwd-eye {
    width: 1.3em; height: 1.3em;
    position: absolute; top: calc(50% - 0.65em); right: 0.6em;
    background: url('../assets/bear/password-show.png') no-repeat center / 100%;
    cursor: pointer; display: none;
    filter: brightness(0) invert(0.35);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 2;
}
.auth-form .pwd-eye.active { display: block; }
.auth-form .pwd-eye.hiding {
    background-image: url('../assets/bear/password-hide.png');
}

/* 输入行（输入框 + 按钮） */
.auth-form .input-row { display: flex; gap: 8px; }
.auth-form .input-row .form-input { flex: 1; min-width: 0; }

/* ===== 按钮 ===== */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4e6ef2 0%, #6b8cff 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.3s;
    -webkit-appearance: none;
    appearance: none;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(78,110,242,0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(78,110,242,0.4);
    transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.98); }

.btn-code {
    padding: 12px 14px;
    background: linear-gradient(135deg, #4e6ef2, #6b8cff);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.25s, box-shadow 0.25s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(78,110,242,0.2);
}
.btn-code:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(78,110,242,0.3); }
.btn-code:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== Tab 切换 ===== */
.auth-pane { display: none; }
.auth-pane.active { display: block; }

/* ===== 圆形图标切换按钮 ===== */
.auth-toggle {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding-bottom: 8px;
}
.auth-toggle-item {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    text-decoration: none !important;
    background: rgba(78,110,242,.1);
    color: #4e6ef2;
    overflow: hidden;
}
.auth-toggle-item:hover {
    background: rgba(78,110,242,.2);
    transform: translateY(-2px);
    overflow: visible;
}
.auth-toggle-item.sms {
    background: rgba(76,175,80,.12);
    color: #43a047;
}
.auth-toggle-item.sms:hover {
    background: rgba(76,175,80,.22);
}
.auth-toggle-item.email {
    background: rgba(255,152,0,.12);
    color: #f57c00;
}
.auth-toggle-item.email:hover {
    background: rgba(255,152,0,.22);
}
.auth-toggle-item.qq {
    background: rgba(18,183,245,.12);
    color: #12B7F5;
}
.auth-toggle-item.qq:hover {
    background: rgba(18,183,245,.22);
}
.auth-toggle-item.wechat {
    background: rgba(7,193,96,.12);
    color: #07c160;
}
.auth-toggle-item.wechat:hover {
    background: rgba(7,193,96,.22);
}
.auth-toggle-item .toggle-tip {
    position: absolute;
    bottom: -22px; left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #86909c;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.auth-toggle-item:hover .toggle-tip {
    opacity: 1;
}

/* ===== 记住我 ===== */
.auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 16px;
    font-size: 13px;
    color: #86909c;
}
.auth-remember label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
.auth-remember label input {
    accent-color: #4e6ef2;
    width: 15px;
    height: 15px;
}
.auth-remember label span {
    color: #64748b;
}
.auth-remember a {
    color: #4e6ef2;
    text-decoration: none;
    font-size: 13px;
}
.auth-remember a:hover {
    text-decoration: underline;
}

/* ===== 错误/成功提示 ===== */
.auth-error {
    color: #dc2626;
    text-align: center;
    margin-bottom: 16px;
    font-size: 13px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}
.auth-success {
    color: #16a34a;
    text-align: center;
    margin-bottom: 16px;
    font-size: 13px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

/* ===== 底部链接 ===== */
.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #94a3b8;
}
.auth-links a {
    color: #4e6ef2;
    text-decoration: none;
    padding: 4px 8px;
    transition: color 0.2s;
}
.auth-links a:hover {
    color: #3b5de7;
    text-decoration: underline;
}

/* ===== 小熊气泡 (Speech Bubble) ===== */
.auth-toast {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 10;
    padding: 10px 20px;
    background: #ffffff;
    border: 1.5px solid rgba(78,110,242,0.15);
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #4e6ef2;
    line-height: 1.5;
    text-align: center;
    max-width: calc(100% - 40px);
    box-shadow: 0 4px 24px rgba(78,110,242,0.13), 0 2px 6px rgba(0,0,0,0.04);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(calc(-100% - 14px)) scale(0.5);
    transform-origin: bottom center;
    transition: opacity 0.35s, visibility 0.35s, transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
/* 尾巴边框 */
.auth-toast::before {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(78,110,242,0.15);
}
/* 尾巴填充 */
.auth-toast::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #ffffff;
}
.auth-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(calc(-100% - 14px)) scale(1);
    pointer-events: auto;
}

/* ===== 注册方式单选 ===== */
.reg-type-row {
    display: flex; gap: 12px; margin-bottom: 4px;
}
.reg-type-row label {
    display: flex !important; align-items: center; gap: 5px;
    cursor: pointer; font-weight: normal !important;
    color: #64748b !important; font-size: 14px !important;
    text-transform: none !important;
}
.reg-type-row input[type=radio] { accent-color: #4e6ef2; }

/* ===== 响应式 ===== */

/* 平板竖屏 */
@media (max-width: 768px) {
    .auth-page { padding: 20px 16px; }
}

/* 大手机（414px 以下） */
@media (max-width: 414px) {
    .auth-page {
        padding: 12px;
        align-items: flex-start;
        padding-top: 20px;
        overflow: visible;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    .auth-card { max-width: 100%; }
    .auth-box {
        padding: 40px 18px 22px;
        border-radius: 16px;
    }
    .auth-title { font-size: 17px; margin-bottom: 16px; }
    /* 小熊适配 */
    .bear-wrap {
        font-size: 0.6em;
        margin-bottom: -16px;
    }
    /* 表单适配 */
    .auth-form .form-group { margin-bottom: 12px; }
    .auth-form .form-group label { font-size: 12px; margin-bottom: 4px; }
    .auth-form .form-input {
        padding: 12px;
        font-size: 16px;                /* iOS 16px 防缩放 */
        border-radius: 8px;
    }
    .auth-form .pwd-row .form-input { padding-right: 3em; }
    .auth-form .pwd-eye { width: 22px; height: 22px; top: 50%; right: 0; transform: translateY(-50%); padding: 12px; box-sizing: content-box; background-origin: content-box; }
    /* 按钮加大 */
    .btn-primary {
        padding: 14px;
        font-size: 16px;
        letter-spacing: 2px;
        min-height: 48px;
    }
    .btn-code {
        padding: 12px 14px;
        font-size: 13px;
        min-height: 48px;
    }
    /* Toggle icons */
    .auth-toggle { gap: 14px; }
    .auth-toggle-item { width: 40px; height: 40px; font-size: 16px; }
    /* 输入行 */
    .auth-form .input-row { gap: 6px; }
    /* 底部链接加大触控区域 */
    .auth-links { margin-top: 16px; }
    .auth-links a { padding: 8px 10px; display: inline-block; }
    /* 注册方式 */
    .reg-type-row { gap: 8px; }
    .reg-type-row label { font-size: 13px !important; }
    /* 气泡适配 */
    .auth-toast {
        font-size: 12px;
        padding: 8px 14px;
        border-radius: 14px;
        max-width: calc(100% - 24px);
        transform: translateX(-50%) translateY(calc(-100% - 10px)) scale(0.5);
    }
    .auth-toast.show {
        transform: translateX(-50%) translateY(calc(-100% - 10px)) scale(1);
    }
}

/* 小屏手机（375px 以下） */
@media (max-width: 375px) {
    .auth-page { padding: 8px; padding-top: 12px; }
    .auth-box { padding: 34px 14px 18px; }
    .auth-title { font-size: 16px; }
    .bear-wrap { font-size: 0.55em; margin-bottom: -14px; }
    .btn-primary { font-size: 15px; letter-spacing: 1px; }
    .btn-code { padding: 12px 10px; font-size: 12px; }
}

/* 超小屏幕（320px 以下） */
@media (max-width: 320px) {
    .bear-wrap { font-size: 0.5em; margin-bottom: -10px; }
    .auth-box { padding: 30px 12px 16px; }
    .auth-form .form-input { font-size: 15px; padding: 10px; }
}

/* 横屏 */
@media (max-height: 500px) and (orientation: landscape) {
    .auth-page { align-items: flex-start; padding-top: 10px; }
    .bear-wrap { font-size: 0.5em; margin-bottom: -10px; }
    .auth-box { padding: 30px 20px 18px; }
    .auth-form .form-group { margin-bottom: 8px; }
}

/* ===== 第三方登录 ===== */
.auth-social {
    margin-top: 20px;
    padding-top: 0;
}
.auth-social-divider {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: #999;
    font-size: 12px;
}
.auth-social-divider::before,
.auth-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}
.auth-social-divider span {
    padding: 0 12px;
    white-space: nowrap;
}
.auth-social-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.auth-social-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e8e8e8;
    color: #333;
    background: #fff;
}
.auth-social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.auth-social-btn.qq-btn {
    color: #12B7F5;
    border-color: #12B7F5;
}
.auth-social-btn.qq-btn:hover {
    background: #12B7F5;
    color: #fff;
}
.auth-social-btn.qq-btn i {
    font-size: 18px;
}

/* ==========================================================================
   DCSHOP 用户入口统一暗色科技风
   适用于 /user/login.php、/user/register.php、/user/forgot.php
   与首页 / 开发文档保持同一套深色网格、荧光绿强调和克制卡片视觉。
   ========================================================================== */
.auth-page {
    --auth-primary: #00d084;
    --auth-primary-hover: #00e0a4;
    --auth-secondary: #08b7ff;
    --auth-warning: #ffb547;
    --auth-danger: #fb7185;
    --auth-bg: #05070b;
    --auth-panel: rgba(10,16,26,.84);
    --auth-panel-strong: rgba(12,18,29,.94);
    --auth-border: rgba(255,255,255,.11);
    --auth-border-soft: rgba(255,255,255,.075);
    --auth-text: #f8fafc;
    --auth-muted: rgba(226,232,240,.68);
    --auth-subtle: rgba(148,163,184,.64);
    background:
        radial-gradient(circle at 82% 14%, rgba(0,224,164,.17), transparent 31%),
        radial-gradient(circle at 12% 82%, rgba(8,183,255,.11), transparent 34%),
        radial-gradient(circle at 62% 106%, rgba(255,181,71,.08), transparent 30%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        var(--auth-bg);
    background-size: auto, auto, auto, 72px 72px, 72px 72px, auto;
    color: var(--auth-muted);
    overflow-x: hidden;
}
.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,.055), transparent 24%),
        radial-gradient(circle at 50% 0, rgba(0,208,132,.08), transparent 42%);
    z-index: 0;
    pointer-events: none;
}
.auth-page::after {
    content: '';
    position: fixed;
    width: min(62vw, 620px);
    height: min(62vw, 620px);
    right: -180px;
    top: -180px;
    left: auto;
    bottom: auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,208,132,.16) 0%, rgba(8,183,255,.06) 42%, transparent 70%);
    filter: blur(2px);
    z-index: 0;
    pointer-events: none;
    animation: authGlowFloat 8s ease-in-out infinite alternate;
}
@keyframes authGlowFloat {
    from { opacity: .65; transform: translate3d(0,0,0) scale(.96); }
    to { opacity: 1; transform: translate3d(-24px,28px,0) scale(1.04); }
}

.auth-card {
    max-width: 430px;
    z-index: 1;
}
.auth-box {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 8%, rgba(0,208,132,.13), transparent 34%),
        linear-gradient(180deg, var(--auth-panel-strong), var(--auth-panel));
    border: 1px solid var(--auth-border);
    border-radius: 26px;
    padding: 50px 34px 32px;
    box-shadow:
        0 28px 95px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.07);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}
.auth-box::before {
    content: '';
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,224,164,.72), rgba(8,183,255,.38), transparent);
}
.auth-box::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8,183,255,.10), transparent 68%);
    pointer-events: none;
}
.auth-box > * {
    position: relative;
    z-index: 1;
}

.bear-wrap {
    background:
        radial-gradient(circle at 50% 36%, rgba(0,208,132,.17), transparent 52%),
        radial-gradient(circle at 50% 42%, #172133 0%, #080d17 100%);
    border: 1.5px solid rgba(0,208,132,.28);
    box-shadow:
        0 0 34px rgba(0,208,132,.18),
        0 20px 58px rgba(0,0,0,.32),
        inset 0 0 28px rgba(0,208,132,.06);
}

.auth-title {
    color: var(--auth-text);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.025em;
    margin-bottom: 22px;
}
.auth-title i {
    color: var(--auth-primary);
    filter: drop-shadow(0 0 12px rgba(0,208,132,.45));
}

.auth-form .form-group label {
    color: var(--auth-subtle);
    font-weight: 700;
}
.auth-form .form-group label .req,
.req {
    color: var(--auth-warning);
}
.auth-form .form-input {
    background: rgba(3,6,10,.58);
    border: 1px solid var(--auth-border);
    color: var(--auth-text);
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.auth-form .form-input:focus {
    background: rgba(3,6,10,.78);
    border-color: rgba(0,208,132,.56);
    box-shadow:
        0 0 0 3px rgba(0,208,132,.12),
        0 12px 32px rgba(0,208,132,.06);
}
.auth-form .form-input::placeholder {
    color: rgba(148,163,184,.58);
}
.auth-form .form-input[readonly],
.auth-form .form-input:disabled {
    background: rgba(255,255,255,.045) !important;
    color: rgba(226,232,240,.58) !important;
    border-color: rgba(255,255,255,.10) !important;
    cursor: not-allowed !important;
}
.auth-form .pwd-eye {
    filter: brightness(0) invert(1) opacity(.68) drop-shadow(0 0 8px rgba(0,208,132,.16));
}

.btn-primary,
.btn-code {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-hover));
    color: #03110c;
    border: 1px solid rgba(0,208,132,.28);
    border-radius: 13px;
    box-shadow: 0 14px 34px rgba(0,208,132,.22);
}
.btn-primary:hover,
.btn-code:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 18px 44px rgba(0,224,164,.30);
}
.btn-code:disabled {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.10);
    color: rgba(148,163,184,.70);
    box-shadow: none;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    border: 1px solid var(--auth-border-soft);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
}
.auth-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    border-radius: 12px;
    color: var(--auth-subtle);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all .22s;
}
.auth-tab:hover {
    color: #fff;
    background: rgba(255,255,255,.055);
}
.auth-tab.active {
    color: #d9fff2;
    background: rgba(0,208,132,.13);
    box-shadow: inset 0 0 0 1px rgba(0,208,132,.24);
}
.auth-tabs .auth-tab:only-child {
    grid-column: 1 / -1;
}

.auth-toggle {
    gap: 14px;
    margin-top: 18px;
}
.auth-toggle-item,
.auth-toggle-item.sms,
.auth-toggle-item.email,
.auth-toggle-item.qq,
.auth-toggle-item.wechat {
    background: rgba(255,255,255,.055);
    color: rgba(226,232,240,.78);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.auth-toggle-item:hover,
.auth-toggle-item.sms:hover,
.auth-toggle-item.email:hover,
.auth-toggle-item.qq:hover,
.auth-toggle-item.wechat:hover {
    background: rgba(0,208,132,.12);
    border-color: rgba(0,208,132,.30);
    color: #d9fff2;
}
.auth-toggle-item.sms { color: #9fffd6; }
.auth-toggle-item.email { color: #fde68a; }
.auth-toggle-item.qq { color: #9de4ff; }
.auth-toggle-item.wechat { color: #86efac; }
.auth-toggle-item .toggle-tip {
    color: rgba(226,232,240,.72);
}

.auth-remember,
.auth-remember label span {
    color: var(--auth-subtle);
}
.auth-remember label input,
.reg-type-row input[type=radio] {
    accent-color: var(--auth-primary);
}
.auth-remember a,
.auth-links a {
    color: #75f8c8;
}
.auth-links {
    color: rgba(148,163,184,.62);
}
.auth-links a:hover {
    color: #d9fff2;
    text-decoration: none;
}

.auth-error,
.auth-success {
    text-align: left;
    border-radius: 13px;
}
.auth-error {
    color: #ffe4e6;
    background: rgba(251,113,133,.10);
    border: 1px solid rgba(251,113,133,.26);
}
.auth-success {
    color: #d9fff2;
    background: rgba(0,208,132,.10);
    border: 1px solid rgba(0,208,132,.26);
}

.auth-toast {
    background: rgba(8,13,22,.94);
    border: 1px solid rgba(0,208,132,.24);
    color: #d9fff2;
    box-shadow: 0 18px 46px rgba(0,0,0,.36), 0 0 24px rgba(0,208,132,.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.auth-toast::before {
    border-top-color: rgba(0,208,132,.24);
}
.auth-toast::after {
    border-top-color: rgba(8,13,22,.94);
}

.reg-type-row label {
    color: var(--auth-subtle) !important;
}
.auth-social-divider {
    color: rgba(148,163,184,.62);
}
.auth-social-divider::before,
.auth-social-divider::after {
    background: rgba(255,255,255,.10);
}
.auth-social-btn {
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.10);
    color: rgba(226,232,240,.78);
}
.auth-social-btn:hover {
    background: rgba(0,208,132,.10);
    border-color: rgba(0,208,132,.24);
    color: #fff;
    box-shadow: none;
}
.auth-social-btn.qq-btn {
    color: #9de4ff;
    border-color: rgba(8,183,255,.28);
}
.auth-social-btn.qq-btn:hover {
    background: rgba(8,183,255,.12);
    color: #d9f4ff;
}

@media (max-width: 768px) {
    .auth-page {
        background-size: auto, auto, auto, 56px 56px, 56px 56px, auto;
        align-items: flex-start;
        /* 小熊气泡位于卡片上方，移动端必须预留顶部呼吸区 */
        padding: calc(76px + env(safe-area-inset-top)) 14px calc(22px + env(safe-area-inset-bottom));
        min-height: 100svh;
    }
    .auth-card { max-width: 430px; }
    .bear-wrap {
        margin-top: 0;
    }
    .auth-box {
        border-radius: 22px;
        padding: 46px 22px 26px;
    }
}

@media (max-width: 414px) {
    .auth-page {
        padding: calc(68px + env(safe-area-inset-top)) 10px calc(18px + env(safe-area-inset-bottom));
    }
    .auth-box {
        padding: 40px 16px 22px;
        border-radius: 20px;
    }
    .auth-title {
        color: var(--auth-text);
        font-size: 19px;
        margin-bottom: 18px;
    }
    .bear-wrap {
        margin-bottom: -18px;
    }
    .auth-form .form-input {
        border-radius: 12px;
    }
    .btn-primary,
    .btn-code {
        border-radius: 12px;
    }
    .auth-tabs {
        border-radius: 14px;
    }
    .auth-tab {
        min-height: 38px;
        border-radius: 10px;
        font-size: 12px;
    }
    .auth-toast {
        transform: translateX(-50%) translateY(calc(-100% - 8px)) scale(0.5);
    }
    .auth-toast.show {
        transform: translateX(-50%) translateY(calc(-100% - 8px)) scale(1);
    }
}

@media (max-width: 360px) {
    .auth-form .input-row {
        display: grid;
        grid-template-columns: 1fr;
    }
    .btn-code {
        width: 100%;
    }
}
