*{box-sizing:border-box}
html,body{min-height:100%}
body.auth-body{
    margin:0;padding:26px;min-height:100vh;display:flex;align-items:center;justify-content:center;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
    color:#0f172a;overflow-x:hidden;
    background:
        radial-gradient(circle at 10% 12%,rgba(45,212,191,.24),transparent 34%),
        radial-gradient(circle at 90% 86%,rgba(139,123,240,.20),transparent 36%),
        linear-gradient(135deg,#f5faff 0%,#eef6f7 55%,#eef4ff 100%);
}
body.auth-body::before{
    content:"";position:fixed;inset:0;pointer-events:none;opacity:.45;z-index:0;
    background-image:linear-gradient(rgba(15,23,42,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.035) 1px,transparent 1px);
    background-size:38px 38px;
    mask-image:radial-gradient(circle at center,#000 0%,transparent 78%);
    -webkit-mask-image:radial-gradient(circle at center,#000 0%,transparent 78%);
}
.auth-orb{position:fixed;border-radius:50%;filter:blur(70px);pointer-events:none;z-index:0}
.auth-orb--1{width:360px;height:360px;left:-120px;top:-140px;background:rgba(98,89,206,.26)}
.auth-orb--2{width:320px;height:320px;right:-100px;bottom:-120px;background:rgba(98,89,206,.18)}

.auth-shell{
    position:relative;z-index:1;width:100%;max-width:1040px;margin:auto;
    display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
    background:#fff;border-radius:28px;overflow:hidden;
    box-shadow:0 34px 90px rgba(15,23,42,.18),0 6px 24px rgba(15,23,42,.06);
    animation:authRise .6s cubic-bezier(.22,1,.36,1) both;
}
.auth-shell--reg{max-width:1100px;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)}
.auth-shell--recover{max-width:980px;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)}
@keyframes authRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}

/* ===== 左侧品牌区 ===== */
.auth-brand{
    position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:28px;
    padding:44px 42px;color:#fff;overflow:hidden;
    background:linear-gradient(150deg,#3D379B 0%,#6259CE 42%,#8B7BF0 100%);
}
.auth-brand::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-180px;top:-190px;background:radial-gradient(circle,rgba(255,255,255,.22),rgba(255,255,255,0) 68%)}
.auth-brand::after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;left:-130px;bottom:-150px;border:1px solid rgba(255,255,255,.22)}
.auth-brand__ring{position:absolute;width:230px;height:230px;border-radius:50%;right:-60px;bottom:40px;border:1px solid rgba(255,255,255,.16);pointer-events:none}
.auth-brand__ring::before{content:"";position:absolute;inset:26px;border-radius:50%;border:1px solid rgba(255,255,255,.12)}
.auth-brand__head{position:relative;z-index:1;display:flex;align-items:center;gap:14px}
.auth-brand__logo{
    width:54px;height:54px;border-radius:17px;display:flex;align-items:center;justify-content:center;font-size:23px;flex-shrink:0;
    background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);
    box-shadow:0 10px 26px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.25);
    backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.auth-brand__name strong{display:block;font-size:20px;line-height:1.25;letter-spacing:.4px}
.auth-brand__name span{display:block;margin-top:4px;font-size:12px;color:rgba(255,255,255,.72);letter-spacing:.6px}
.auth-brand__body{position:relative;z-index:1}
.auth-eyebrow-brand{
    display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;
    background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);
    font-size:10px;font-weight:700;letter-spacing:1.6px;color:rgba(255,255,255,.86);
}
.auth-brand__title{margin:20px 0 12px;font-size:32px;line-height:1.28;letter-spacing:-.5px;font-weight:800}
.auth-brand__desc{margin:0;max-width:330px;font-size:13.5px;line-height:1.8;color:rgba(255,255,255,.75)}
.auth-steps{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-direction:column;gap:14px}
.auth-step{display:flex;align-items:flex-start;gap:12px}
.auth-step__num{
    width:32px;height:32px;border-radius:11px;flex-shrink:0;display:flex;align-items:center;justify-content:center;
    font-size:11px;font-weight:800;letter-spacing:.5px;
    background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.2);color:#fff;
}
.auth-step b{display:block;font-size:13px;font-weight:700;line-height:1.4}
.auth-step em{display:block;margin-top:2px;font-style:normal;font-size:11.5px;color:rgba(255,255,255,.66);line-height:1.5}
.auth-brand__foot{position:relative;z-index:1;display:flex;align-items:center;gap:7px;font-size:11.5px;color:rgba(255,255,255,.62);letter-spacing:.3px}
.auth-brand__foot i{font-size:12px}

/* ===== 右侧表单区 ===== */
.auth-panel{padding:44px 46px;display:flex;flex-direction:column;justify-content:center;background:#fff}
.auth-mobile-brand{display:none;align-items:center;gap:12px;margin-bottom:24px}
.auth-mobile-brand .mb-logo{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:19px;background:linear-gradient(135deg,#4B43B8,#8B7BF0);box-shadow:0 8px 20px rgba(98,89,206,.28);flex-shrink:0}
.auth-mobile-brand strong{display:block;font-size:17px;color:#0f172a;line-height:1.3}
.auth-mobile-brand span{display:block;margin-top:2px;font-size:11px;color:#94a3b8}
.auth-panel__head{margin-bottom:24px}
.auth-eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#6259CE}
.auth-panel__head h1{margin:8px 0 8px;font-size:28px;line-height:1.25;letter-spacing:-.4px;color:#0f172a;font-weight:800}
.auth-panel__head p{margin:0;font-size:13px;line-height:1.6;color:#64748b}

.auth-invite{
    display:flex;align-items:flex-start;gap:9px;padding:11px 13px;margin-bottom:16px;border-radius:12px;
    background:linear-gradient(135deg,rgba(98,89,206,.08),rgba(98,89,206,.07));
    border:1px solid rgba(98,89,206,.18);color:#4B43B8;font-size:12px;line-height:1.6;
}
.auth-invite i{font-size:13px;margin-top:2px}
.auth-invite b{font-weight:800}

.auth-form{display:flex;flex-direction:column;gap:16px}
.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 16px}
.auth-field--full{grid-column:1/-1}
.auth-field label,.auth-label{display:block;margin-bottom:7px;font-size:12.5px;font-weight:700;color:#334155;letter-spacing:.2px}
.auth-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.auth-label-row label{margin:0}
.auth-label-row a{font-size:11.5px;font-weight:600;color:#6259CE;text-decoration:none}
.auth-label-row a:hover{text-decoration:underline}
.auth-input-wrap{position:relative}
.auth-input-icon{
    position:absolute;left:17px;top:50%;transform:translateY(-50%);
    width:18px;text-align:center;font-size:15px;color:#94a3b8;pointer-events:none;z-index:2;
    transition:color .2s ease;
}
.auth-input{
    width:100%;height:54px;display:block;padding:0 18px 0 48px;
    border:1.5px solid #e2e8f0;border-radius:13px;background:#f8fafc;color:#0f172a;
    font-size:14.5px;line-height:1.4;outline:none;-webkit-appearance:none;appearance:none;
    transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.auth-input::placeholder{color:#a3aec0;font-size:13.5px}
.auth-input:hover{border-color:#cbd5e1}
.auth-input:focus{border-color:#6259CE;background:#fff;box-shadow:0 0 0 4px rgba(98,89,206,.12)}
.auth-input-wrap:focus-within .auth-input-icon{color:#6259CE}
.auth-input[readonly]{background:#f1f5f9;color:#64748b}
.auth-input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #f8fafc inset;-webkit-text-fill-color:#0f172a;transition:background-color 9999s ease-out}
.auth-input--with-btn{padding-right:56px}
.auth-eye{
    position:absolute;right:8px;top:50%;transform:translateY(-50%);
    width:40px;height:40px;border:0;border-radius:10px;background:transparent;color:#94a3b8;
    display:flex;align-items:center;justify-content:center;font-size:14px;cursor:pointer;z-index:2;
    transition:color .2s ease,background .2s ease;
}
.auth-eye:hover{color:#6259CE;background:rgba(98,89,206,.08)}

.auth-row{display:flex;gap:10px;align-items:stretch}
.auth-row .auth-input-wrap{flex:1;min-width:0}
.auth-code-img{
    width:120px;height:54px;object-fit:cover;flex-shrink:0;border-radius:12px;cursor:pointer;
    border:1.5px solid #e2e8f0;background:#f8fafc;transition:opacity .2s ease,border-color .2s ease;
}
.auth-code-img:hover{opacity:.9;border-color:#cbd5e1}
.auth-send-btn{
    flex-shrink:0;height:54px;padding:0 16px;border:1px solid rgba(98,89,206,.22);border-radius:13px;
    background:linear-gradient(135deg,rgba(98,89,206,.1),rgba(98,89,206,.09));
    color:#4B43B8;font-size:12.5px;font-weight:800;cursor:pointer;white-space:nowrap;
    transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.auth-send-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(98,89,206,.16);background:linear-gradient(135deg,rgba(98,89,206,.16),rgba(98,89,206,.13))}
.auth-send-btn:active{transform:translateY(0)}

.auth-section-title{
    grid-column:1/-1;display:flex;align-items:center;gap:9px;margin:2px 0 -2px;
    font-size:11px;font-weight:800;letter-spacing:1.4px;color:#94a3b8;text-transform:uppercase;
}
.auth-section-title::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,#e2e8f0,transparent)}
.auth-note{
    grid-column:1/-1;display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:11px;
    background:#f8fafc;border:1px dashed #cbd5e1;color:#64748b;font-size:11.5px;line-height:1.65;
}
.auth-note i{color:#6259CE;margin-top:2px;font-size:12px}

.auth-check-row{display:flex;align-items:flex-start;gap:9px;margin-top:2px}
.auth-check-row input[type=checkbox]{
    width:16px;height:16px;margin-top:2px;flex-shrink:0;accent-color:#6259CE;cursor:pointer;
}
.auth-check-row .auth-check-text{font-size:12px;line-height:1.7;color:#64748b}
.auth-check-row .auth-check-text label{cursor:pointer}
.auth-clause-btn{
    border:0;background:none;padding:0;color:#6259CE;font-size:12px;font-weight:700;cursor:pointer;text-decoration:underline;
}
.auth-clause-btn:hover{color:#4B43B8}

.auth-btn{
    width:100%;height:54px;margin-top:4px;border:0;border-radius:13px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;gap:9px;
    font-size:15px;font-weight:800;letter-spacing:.5px;color:#fff;
    background:linear-gradient(135deg,#6259CE 0%,#4B43B8 45%,#6259CE 100%);
    box-shadow:0 12px 26px rgba(98,89,206,.30);
    transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.auth-btn:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(98,89,206,.38);filter:saturate(1.05)}
.auth-btn:active{transform:translateY(0)}
.auth-btn:disabled{cursor:wait;opacity:.8;transform:none;box-shadow:0 10px 22px rgba(98,89,206,.22)}
.auth-btn i{font-size:13px;transition:transform .2s ease}
.auth-btn:hover i{transform:translateX(2px)}
.auth-btn.is-loading i{display:none}
.auth-btn.is-loading::after{content:"";width:15px;height:15px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:authSpin .7s linear infinite}
@keyframes authSpin{to{transform:rotate(360deg)}}

.auth-links{margin-top:20px;padding-top:17px;border-top:1px solid #f1f5f9;text-align:center;font-size:12.5px;color:#64748b}
.auth-links a{font-weight:700;color:#6259CE;text-decoration:none;margin:0 7px;white-space:nowrap}
.auth-links a:hover{text-decoration:underline}
.auth-sep{color:#cbd5e1;margin:0 2px}
.auth-foot{margin-top:16px;text-align:center;font-size:10.5px;color:#a3aec0;letter-spacing:.2px}

/* ===== 找回密码标签页 ===== */
.auth-tabs{display:flex;gap:6px;padding:5px;border-radius:13px;background:#f1f5f9;margin-bottom:20px}
.auth-tab{
    flex:1;height:42px;border:0;border-radius:10px;background:transparent;cursor:pointer;
    display:flex;align-items:center;justify-content:center;gap:7px;
    font-size:12.5px;font-weight:700;color:#64748b;transition:all .2s ease;
}
.auth-tab i{font-size:13px}
.auth-tab:hover{color:#4B43B8}
.auth-tab.is-active{background:#fff;color:#6259CE;box-shadow:0 5px 14px rgba(15,23,42,.09)}
.auth-pane{display:block}
.auth-pane.is-hidden{display:none!important}

/* ===== 提示 ===== */
.auth-toast-wrap{position:fixed;top:22px;left:50%;transform:translateX(-50%);z-index:80;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.auth-toast{
    display:flex;align-items:center;gap:7px;padding:9px 15px;border-radius:11px;
    background:#0f172a;color:#fff;font-size:12.5px;font-weight:600;line-height:1.4;
    box-shadow:0 14px 30px rgba(15,23,42,.24);
    opacity:0;transform:translateY(-8px);transition:opacity .25s ease,transform .25s ease;
    max-width:calc(100vw - 32px);
}
.auth-toast.is-show{opacity:1;transform:translateY(0)}
.auth-toast--success{background:linear-gradient(135deg,#059669,#6259CE)}
.auth-toast--error{background:linear-gradient(135deg,#dc2626,#e11d48)}
.auth-toast--warning{background:linear-gradient(135deg,#d97706,#ea580c)}
.auth-toast i{font-size:12px}
.auth-loading{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.45);backdrop-filter:blur(2px)}
.auth-loading.is-hidden{display:none!important}
.auth-loading__spin{width:38px;height:38px;border-radius:50%;border:3px solid rgba(98,89,206,.2);border-top-color:#6259CE;animation:authSpin .8s linear infinite}

@media (max-width:980px){
    body.auth-body{padding:18px;align-items:flex-start}
    .auth-shell,.auth-shell--reg,.auth-shell--recover{grid-template-columns:1fr;max-width:520px;min-height:0;border-radius:24px}
    .auth-brand{display:none}
    .auth-panel{padding:32px 26px 28px}
    .auth-mobile-brand{display:flex}
    .auth-panel__head h1{font-size:25px}
    .auth-grid{grid-template-columns:1fr;gap:14px}
    .auth-field--full{grid-column:auto}
}
@media (max-width:420px){
    body.auth-body{padding:12px}
    .auth-shell{border-radius:20px}
    .auth-panel{padding:26px 19px 24px}
    .auth-input,.auth-btn,.auth-code-img,.auth-send-btn{height:52px}
    .auth-code-img{width:104px}
}

/* ============================================================
   用户中心 · 品牌紫 · 极简覆盖层（v2，安全版）
   标记: BRAND_LEAN_20261125
   原则：只覆盖颜色变量与 Tailwind 色阶类，绝不改动任何布局/背景块
   ============================================================ */

/* ---------- 1. 品牌变量 ---------- */
html:root,
html:not(.dark){
  --brand:#6259CE;
  --brand-lt:#8B7BF0;
  --brand-dk:#4B43B8;
  --brand-soft:#F5F3FE;
  --brand-line:#DED9F8;
  --u-accent:#6259CE !important;
  --u-accent2:#8B7BF0 !important;
  --v3-teal:#6259CE !important;
  --v3-teal-dk:#4B43B8 !important;
  --v3-teal-2:#8B7BF0 !important;
  --v3-teal-soft:rgba(98,89,206,.10) !important;
  --v3-teal-line:rgba(98,89,206,.22) !important;
  --v3-blue:#8B7BF0 !important;
  --v3-accent:#6259CE !important;
  --v3-accent2:#8B7BF0 !important;
}

/* ---------- 2. Tailwind 文本色 ---------- */
.text-teal-400,.text-cyan-400,.text-sky-400,.text-blue-400,.text-indigo-400{color:#8B7BF0 !important}
.text-teal-500,.text-cyan-500,.text-sky-500,.text-blue-500,.text-indigo-500{color:#6259CE !important}
.text-teal-600,.text-cyan-600,.text-sky-600,.text-blue-600,.text-indigo-600{color:#5A51C6 !important}
.text-teal-700,.text-cyan-700,.text-sky-700,.text-blue-700,.text-indigo-700{color:#4B43B8 !important}
.text-teal-800,.text-blue-800,.text-indigo-800{color:#3D379B !important}
.text-teal-900,.text-blue-900,.text-indigo-900{color:#2E2A75 !important}
.hover\:text-teal-700:hover,.hover\:text-teal-600:hover,
.hover\:text-blue-600:hover,.hover\:text-indigo-700:hover{color:#4B43B8 !important}

/* ---------- 3. Tailwind 背景 ---------- */
.bg-teal-50,.bg-cyan-50,.bg-sky-50,.bg-blue-50,.bg-indigo-50{background-color:#F5F3FE !important}
.bg-teal-100,.bg-cyan-100,.bg-sky-100,.bg-blue-100,.bg-indigo-100{background-color:#EDE9FD !important}
.bg-teal-200,.bg-blue-200,.bg-indigo-200{background-color:#DED9F8 !important}
.bg-teal-500,.bg-cyan-500,.bg-sky-500,.bg-blue-500,.bg-indigo-500{background-color:#6259CE !important}
.bg-teal-600,.bg-cyan-600,.bg-sky-600,.bg-blue-600,.bg-indigo-600{background-color:#5A51C6 !important}
.bg-teal-700,.bg-blue-700,.bg-indigo-700{background-color:#4B43B8 !important}
.hover\:bg-blue-100:hover,.hover\:bg-indigo-100:hover,.hover\:bg-teal-50:hover{background-color:#EDE9FD !important}
.hover\:bg-indigo-200:hover{background-color:#DED9F8 !important}

/* ---------- 4. Tailwind 边框 ---------- */
.border-teal-100,.border-blue-100,.border-indigo-100{ border-color:#EDE9FD !important }
.border-teal-200,.border-blue-200,.border-indigo-200{ border-color:#DED9F8 !important }
.border-teal-300,.border-blue-300,.border-indigo-300{ border-color:#C4BCF2 !important }
.border-teal-400,.border-teal-500,.border-blue-500,.border-indigo-500{ border-color:#6259CE !important }

/* ---------- 5. Tailwind 渐变变量（只改 --tw-*，不动 background-image） ---------- */
.from-teal-400,.from-cyan-400,.from-sky-400,.from-blue-400,.from-indigo-400{
  --tw-gradient-from:#8B7BF0 !important;
  --tw-gradient-to:rgb(139 123 240 / 0) !important;
  --tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to) !important;
}
.from-teal-500,.from-cyan-500,.from-sky-500,.from-blue-500,.from-indigo-500{
  --tw-gradient-from:#6259CE !important;
  --tw-gradient-to:rgb(98 89 206 / 0) !important;
  --tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to) !important;
}
.from-teal-600,.from-blue-600,.from-indigo-600{
  --tw-gradient-from:#4B43B8 !important;
  --tw-gradient-to:rgb(75 67 184 / 0) !important;
  --tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to) !important;
}
.via-teal-500,.via-blue-500,.via-indigo-500{
  --tw-gradient-stops:var(--tw-gradient-from),#7C73E6,var(--tw-gradient-to) !important;
}
.to-teal-500,.to-cyan-500,.to-sky-500,.to-blue-500,.to-indigo-500,
.to-teal-600,.to-cyan-600,.to-sky-600,.to-blue-600,.to-indigo-600,
.to-violet-500,.to-violet-600{ --tw-gradient-to:#8B7BF0 !important }

/* ---------- 6. 商城分类图标 ---------- */
.page-shop .shop-card__ico.is-teal{ background:linear-gradient(135deg,#8B7BF0,#6259CE) !important }
.page-shop .shop-card__ico.is-blue{ background:linear-gradient(135deg,#A79CEC,#4B43B8) !important }

/* ---------- 7. 输入焦点统一 ---------- */
input:focus,select:focus,textarea:focus{ border-color:#6259CE !important }

/* ---------- 8. 内联装饰渐变的精确替换（仅颜色，不动布局） ---------- */
[style*="linear-gradient(135deg,#0d9488,#2563eb)"]{
  background:linear-gradient(135deg,#6259CE,#8B7BF0) !important;
  box-shadow:0 6px 18px rgba(98,89,206,.28) !important;
}
[style*="linear-gradient(135deg,#3b82f6,#2563eb)"],
[style*="linear-gradient(135deg, #3b82f6 0%, #2563eb 100%)"]{
  background:linear-gradient(135deg,#8B7BF0,#6259CE) !important;
}
[style*="linear-gradient(135deg,#14b8a6,#0d9488)"],
[style*="linear-gradient(135deg, #14b8a6 0%, #0d9488 100%)"]{
  background:linear-gradient(135deg,#6259CE,#4B43B8) !important;
}
[style*="linear-gradient(135deg,#06b6d4,#4f46e5)"]{
  background:linear-gradient(135deg,#8B7BF0,#5A51C6) !important;
}
[style*="color:#0d9488"]{ color:#6259CE !important }
[style*="color:#0ea5e9"]{ color:#8B7BF0 !important }
[style*="color:#0f766e"]{ color:#4B43B8 !important }
