/* 用户端 登录 / 注册 / 第三方绑定 · 深色科技风 · 2026-11-10 · 在 home.css 之后引入 */
.auth-sprite{position:absolute;width:0;height:0;overflow:hidden}

/* ===== 舞台背景：深空渐变 + 网格 + 漂浮光晕 ===== */
.auth-wrap{
    position:relative;overflow:hidden;min-height:100vh;padding:92px 24px 58px;
    display:flex;align-items:center;justify-content:center;
    background:
        radial-gradient(circle at 12% 18%,rgba(46,104,220,.42),transparent 44%),
        radial-gradient(circle at 88% 82%,rgba(20,168,170,.24),transparent 42%),
        linear-gradient(135deg,#080e22 0%,#0e1c40 46%,#0a2848 100%);
}
.auth-bg-grid{
    position:absolute;inset:0;pointer-events:none;opacity:.5;
    background-image:
        linear-gradient(rgba(130,180,255,.07) 1px,transparent 1px),
        linear-gradient(90deg,rgba(130,180,255,.07) 1px,transparent 1px);
    background-size:58px 58px;
    -webkit-mask-image:radial-gradient(circle at 50% 44%,#000 8%,transparent 76%);
    mask-image:radial-gradient(circle at 50% 44%,#000 8%,transparent 76%);
}
.auth-orb{position:absolute;border-radius:50%;pointer-events:none;animation:authFloat 16s ease-in-out infinite}
.orb-a{width:460px;height:460px;left:-150px;top:-170px;background:radial-gradient(circle,rgba(76,140,255,.38),transparent 68%)}
.orb-b{width:400px;height:400px;right:-120px;bottom:-160px;background:radial-gradient(circle,rgba(36,214,200,.24),transparent 68%);animation-delay:-5s}
.orb-c{width:280px;height:280px;left:46%;top:16%;background:radial-gradient(circle,rgba(150,96,255,.22),transparent 70%);animation-delay:-10s}
@keyframes authFloat{
    0%,100%{transform:translate3d(0,0,0) scale(1)}
    50%{transform:translate3d(34px,-28px,0) scale(1.09)}
}
@keyframes authSheen{0%{transform:translateX(-130%)}55%,100%{transform:translateX(130%)}}
@keyframes authPulse{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(79,224,208,.55)}50%{opacity:.7;box-shadow:0 0 0 7px rgba(79,224,208,0)}}

/* ===== 顶部品牌条 / 页脚 ===== */
.auth-topbar{
    position:absolute;top:0;left:0;right:0;height:74px;z-index:3;
    display:flex;align-items:center;justify-content:space-between;
    padding:0 clamp(20px,5vw,66px);
}
.auth-topbrand{display:inline-flex;align-items:center;gap:10px;color:#eaf3ff;font-size:15px;font-weight:600;text-decoration:none;letter-spacing:.3px}
.auth-topbrand:hover{color:#fff}
.auth-topbrand img{width:32px;height:32px;object-fit:contain;border-radius:9px;background:rgba(255,255,255,.94);padding:3px;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.auth-topmark{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:linear-gradient(135deg,#2f7bff,#6a5bff);font-size:17px}
.auth-toplink{color:#9ab4dc;font-size:12.5px;text-decoration:none;transition:color .18s}
.auth-toplink:hover{color:#fff}
.auth-copyright{
    position:absolute;left:0;right:0;bottom:18px;z-index:2;text-align:center;
    color:rgba(163,190,228,.5);font-size:11.5px;letter-spacing:.4px;
}

/* ===== 双栏骨架 ===== */
.auth-shell{
    position:relative;z-index:2;width:min(1020px,100%);
    display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:64px;align-items:center;
}
.auth-eyebrow{
    display:inline-flex;align-items:center;gap:9px;padding:7px 14px;margin-bottom:22px;
    border:1px solid rgba(120,180,255,.25);border-radius:20px;
    background:rgba(255,255,255,.045);color:#a9c6ef;font-size:12px;letter-spacing:.6px;
}
.auth-pulse{width:7px;height:7px;border-radius:50%;background:#4fe0d0;animation:authPulse 2.4s ease-in-out infinite}
.auth-title{
    margin:0 0 16px;font-size:clamp(32px,3.6vw,46px);line-height:1.28;font-weight:700;
    color:#f0f6ff;letter-spacing:.5px;
}
.auth-title em{
    font-style:normal;background:linear-gradient(90deg,#7cc4ff,#a68bff 52%,#4fe0d0);
    -webkit-background-clip:text;background-clip:text;color:transparent;
}
.auth-desc{margin:0 0 30px;max-width:440px;color:#9db4d6;font-size:14px;line-height:1.95}
.auth-feature-list{display:flex;flex-direction:column;gap:14px;max-width:430px}
.auth-feature{display:flex;align-items:center;gap:13px}
.auth-feature-icon{
    width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:flex;align-items:center;justify-content:center;
    font-size:17px;color:#bfe0ff;
    background:linear-gradient(140deg,rgba(70,130,255,.24),rgba(38,200,200,.12));
    border:1px solid rgba(130,180,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.09);
}
.auth-feature b{display:block;color:#e4eeff;font-size:13.5px;font-weight:600}
.auth-feature small{display:block;color:#89a2c6;font-size:12px;margin-top:2px}
.auth-trust{display:flex;align-items:center;gap:12px;margin-top:30px;color:#7f9bc2;font-size:11.5px;letter-spacing:.4px}
.auth-trust i{width:3px;height:3px;border-radius:50%;background:rgba(140,180,235,.5)}

/* ===== 玻璃卡片 ===== */
.auth-box{
    position:relative;width:100%;padding:34px 34px 28px;border-radius:24px;
    background:linear-gradient(158deg,rgba(24,40,78,.9),rgba(9,19,42,.94));
    border:1px solid rgba(150,190,255,.19);
    box-shadow:0 32px 80px rgba(2,8,24,.58),inset 0 1px 0 rgba(255,255,255,.09);
    -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
}
.auth-box::before{
    content:"";position:absolute;left:22px;right:22px;top:0;height:2px;border-radius:0 0 4px 4px;
    background:linear-gradient(90deg,transparent,#4f9cff,#a68bff 52%,#4fe0d0,transparent);
    box-shadow:0 0 18px rgba(90,150,255,.6);
}
.auth-box::after{
    content:"";position:absolute;right:-40px;bottom:-40px;width:180px;height:180px;border-radius:50%;
    background:radial-gradient(circle,rgba(80,140,255,.16),transparent 70%);pointer-events:none;
}
.auth-box > *{position:relative;z-index:1}
.auth-box .auth-logo{
    display:flex;align-items:center;justify-content:center;gap:10px;
    font-size:20px;font-weight:700;color:#f2f7ff;margin:4px 0 6px;letter-spacing:.3px;
}
.auth-logo-mark{
    width:48px;height:48px;flex:0 0 48px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;
    font-size:22px;background:linear-gradient(135deg,#2f7bff,#6a5bff);box-shadow:0 6px 18px rgba(60,110,255,.4);
}
.auth-logo-mark.has-img{background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.7);padding:4px;box-shadow:0 6px 18px rgba(0,0,0,.3)}
.auth-logo-mark img{width:100%;height:100%;object-fit:contain;display:block;border-radius:9px}
.auth-box .auth-sub{text-align:center;font-size:13px;color:#94aac9;margin-bottom:26px}
.auth-box .alert{border-radius:11px;font-size:13px;padding:10px 13px;margin-bottom:16px}
.auth-box .alert-error{background:rgba(255,86,86,.13);border:1px solid rgba(255,120,120,.32);color:#ffb9b7}

/* ===== 表单 ===== */
.auth-box .form-group{margin-bottom:17px}
.auth-box .form-group label{font-size:13px;font-weight:600;color:#b9cbe6;margin-bottom:7px;display:block}
.auth-box .form-group label span{color:#8199bd !important;font-weight:400}
.auth-box .form-control{
    height:46px;border-radius:12px;border:1px solid rgba(150,190,255,.21);
    background-color:rgba(255,255,255,.055);color:#eef5ff;font-size:14px;padding-left:40px;
    background-repeat:no-repeat;background-position:13px center;background-size:16px 16px;
    box-shadow:inset 0 1px 2px rgba(0,0,0,.14);transition:border-color .18s,box-shadow .18s,background-color .18s;
}
.auth-box .form-control:hover{border-color:rgba(160,200,255,.4);background-color:rgba(255,255,255,.08)}
.auth-box .form-control:focus{
    border-color:#5b9cff;background-color:rgba(255,255,255,.09);
    box-shadow:0 0 0 3px rgba(60,130,255,.2),0 0 22px rgba(60,130,255,.16);
}
.auth-box input[name="mobile"].form-control{
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='4' y='1' width='8' height='14' rx='2' fill='none' stroke='%23a8c4ee' stroke-width='1.4'/%3E%3Cpath d='M7 12.6h2' stroke='%23a8c4ee' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.auth-box input[name="password"].form-control,
.auth-box input[name="password_confirm"].form-control{
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='7' rx='2' fill='none' stroke='%23a8c4ee' stroke-width='1.4'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 015 0v2' fill='none' stroke='%23a8c4ee' stroke-width='1.4'/%3E%3C/svg%3E");
}
.auth-box input[name="invite_code"].form-control{
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='5.5' r='2.6' fill='none' stroke='%23a8c4ee' stroke-width='1.4'/%3E%3Cpath d='M3 14c0-2.8 2.2-4.6 5-4.6s5 1.8 5 4.6' fill='none' stroke='%23a8c4ee' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.auth-box input[name="nickname"].form-control{
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='3' width='12' height='10' rx='2' fill='none' stroke='%23a8c4ee' stroke-width='1.4'/%3E%3Ccircle cx='6' cy='7' r='1.4' fill='none' stroke='%23a8c4ee' stroke-width='1.2'/%3E%3Cpath d='M3.6 11.4c.4-1.3 1.3-1.9 2.4-1.9s2 .6 2.4 1.9M10 6.6h2.2M10 9h2.2' fill='none' stroke='%23a8c4ee' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.auth-box .form-control::placeholder{color:#7289ab}
.auth-box .btn-primary.btn-lg{
    position:relative;overflow:hidden;height:48px;margin-top:6px;border:none;border-radius:12px;
    font-size:15px;font-weight:600;letter-spacing:2px;color:#fff;
    background:linear-gradient(100deg,#2f7bff,#6a5bff 52%,#18c8dc);
    box-shadow:0 14px 30px rgba(48,104,255,.38),inset 0 1px 0 rgba(255,255,255,.26);
    transition:transform .18s,box-shadow .18s;
}
.auth-box .btn-primary.btn-lg::after{
    content:"";position:absolute;top:0;bottom:0;width:45%;left:0;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);
    transform:translateX(-130%);animation:authSheen 5s ease-in-out infinite;pointer-events:none;
}
.auth-box .btn-primary.btn-lg:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(48,104,255,.5)}
.auth-box .form-tip{font-size:12.5px;color:#8499b8;margin-top:18px;line-height:1.9;text-align:center}
.auth-box .form-tip a{color:#7cb6ff;font-weight:500}
.auth-links a:hover{text-decoration:underline}

/* ===== 第三方入口 ===== */
.oauth-sep{display:flex;align-items:center;gap:12px;margin:22px 0 14px;color:#7f97bd;font-size:12px}
.oauth-sep::before,.oauth-sep::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(150,190,255,.22))}
.oauth-sep::after{background:linear-gradient(90deg,rgba(150,190,255,.22),transparent)}
.oauth-list{display:flex;gap:10px;flex-wrap:wrap}
.oauth-btn{
    flex:1 1 30%;min-width:96px;display:flex;align-items:center;justify-content:center;gap:7px;
    padding:10px 6px;border:1px solid rgba(150,190,255,.2);border-radius:12px;
    background:rgba(255,255,255,.05) !important;color:#dbe8ff;font-size:13px;font-weight:500;text-decoration:none;
    transition:transform .18s,border-color .18s,background-color .18s,box-shadow .18s;
}
.oauth-btn:hover{
    opacity:1;transform:translateY(-2px);border-color:var(--oa-color,#4096ff);
    background:rgba(255,255,255,.1) !important;box-shadow:0 10px 22px rgba(0,0,0,.24);color:#fff;
}
.oauth-mark{
    width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
    background:var(--oa-color,#4096ff);color:#fff;flex:0 0 26px;
}
.oauth-mark svg{width:18px;height:18px;display:block;color:#fff;fill:currentColor}

/* ===== 注册页补充排版 ===== */
.auth-box--register{padding:30px 34px 24px}
.auth-box--register .auth-sub{margin-bottom:14px}
.auth-perks{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin:0 0 20px}
.auth-perks span{
    display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:20px;
    background:rgba(255,255,255,.055);border:1px solid rgba(150,190,255,.17);
    color:#a9c2e8;font-size:11.5px;line-height:1.4;
}
.auth-perks i{font-style:normal;color:#4fe0d0;font-weight:700}
.auth-box .auth-section{
    display:flex;align-items:center;gap:9px;margin:0 0 15px;
    font-size:12px;font-weight:600;color:#8fa9cf;letter-spacing:.4px;
}
.auth-box .auth-section::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,rgba(150,190,255,.22),transparent)}
.auth-box .auth-section small{font-size:11px;font-weight:400;color:#7189ac;letter-spacing:0}
.auth-box .auth-section--more{margin-top:20px}
.auth-box .form-row-2{margin-bottom:17px}
.auth-box .form-row-2 .form-group{margin-bottom:0}
.auth-box .form-row-2 .form-control{padding-left:34px;background-position:10px center;background-size:14px 14px;font-size:13px}
.auth-box--register .slider-item{margin-bottom:16px}

/* ===== 第三方绑定页 ===== */
.oauth-profile{
    display:flex;align-items:center;gap:13px;padding:14px 15px;margin-bottom:20px;
    background:linear-gradient(120deg,rgba(58,150,110,.17),rgba(40,90,180,.18));
    border:1px solid rgba(150,190,255,.2);border-radius:14px;
}
.oauth-profile img,.oauth-profile .oauth-char{
    width:46px;height:46px;flex:0 0 46px;border-radius:50%;object-fit:cover;
    box-shadow:0 4px 12px rgba(0,0,0,.28);
}
.oauth-profile .oauth-char{
    background:linear-gradient(135deg,#07c160,#3ad382);color:#fff;display:flex;align-items:center;
    justify-content:center;font-size:20px;
}
.oauth-brand{
    width:46px;height:46px;flex:0 0 46px;border-radius:50%;display:flex;align-items:center;justify-content:center;
    color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.28);
}
.oauth-brand svg{width:27px;height:27px;display:block;color:#fff;fill:currentColor}
.oauth-brand.p-wechat{background:linear-gradient(135deg,#07c160,#3ad382)}
.oauth-brand.p-qq{background:linear-gradient(135deg,#12b7f5,#55d2ff)}
.oauth-brand.p-douyin{background:linear-gradient(135deg,#161823,#4a4d5c)}
.oauth-profile b{font-size:14px;color:#eaf3ff}
.oauth-profile span{display:block;font-size:12px;color:#92aace;margin-top:3px}
.oauth-note{
    margin:18px 0 0;padding:12px 14px;border:1px solid rgba(150,190,255,.16);border-radius:12px;
    background:rgba(255,255,255,.04);font-size:12px;color:#9db2d0;line-height:1.9;
}
.oauth-note b{color:#dce9ff}
.oauth-foot{margin-top:16px;font-size:12.5px;color:#8499b8;text-align:center}
.oauth-foot a{color:#7cb6ff}

/* ===== 响应式 ===== */
@media (max-width:960px){
    .auth-shell{grid-template-columns:1fr;max-width:470px;min-width:0;gap:0}
    .auth-box{min-width:0}
    .auth-intro{display:none}
    .auth-wrap{padding:88px 16px 44px}
}
@media (max-height:720px){
    .auth-wrap{padding-top:78px;padding-bottom:36px}
    .auth-box{padding:26px 30px 22px}
    .auth-box .auth-sub{margin-bottom:18px}
}
@media (max-width:520px){
    .auth-shell,.auth-box{min-width:0;max-width:100%}
    .auth-box{padding:28px 22px 24px;border-radius:18px}
    .auth-wrap{padding:80px 12px 40px}
    .oauth-list{gap:8px;flex-wrap:nowrap}
    .oauth-btn{min-width:0;flex:1 1 0;font-size:12px;padding:9px 4px;white-space:nowrap}
    .auth-perks{margin-bottom:16px}
    .auth-perks span{font-size:11px;padding:4px 8px}
    .auth-topbar{padding:0 18px;height:64px}
}
@media (max-width:400px){
    .auth-box .form-row-2{grid-template-columns:1fr;gap:0}
    .auth-box .form-row-2 .form-group{margin-bottom:17px}
    .auth-box .form-row-2 .form-control{padding-left:40px;background-position:13px center;background-size:16px 16px;font-size:14px}
}
@media (prefers-reduced-motion:reduce){
    .auth-orb,.auth-pulse,.auth-box .btn-primary.btn-lg::after{animation:none !important}
    .auth-box .btn-primary.btn-lg::after{display:none}
}
