/* ============================================================
   授权中心 · 登录 / 安装向导 视觉
   ============================================================ */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    background: var(--bg);
}

.auth-visual {
    position: relative;
    overflow: hidden;
    padding: 46px 54px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        radial-gradient(80% 60% at 15% 10%, rgba(99, 102, 241, .55) 0%, rgba(99, 102, 241, 0) 60%),
        radial-gradient(60% 50% at 90% 80%, rgba(34, 211, 238, .34) 0%, rgba(34, 211, 238, 0) 65%),
        linear-gradient(160deg, #0a0f1e 0%, #131a30 55%, #0b1224 100%);
}

.auth-visual::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(75% 65% at 40% 40%, #000 20%, transparent 90%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .55;
    animation: float 12s ease-in-out infinite;
}
.orb.a { width: 280px; height: 280px; background: #6366f1; top: -70px; right: -40px; }
.orb.b { width: 220px; height: 220px; background: #22d3ee; bottom: -80px; left: 12%; animation-delay: -4s; }
.orb.c { width: 160px; height: 160px; background: #a855f7; top: 42%; right: 22%; animation-delay: -7s; opacity: .4; }

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(14px, -22px, 0) scale(1.06); }
}

.auth-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.auth-brand .brand-mark { box-shadow: 0 14px 30px -12px rgba(99, 102, 241, 1); }
.auth-brand .bn { font-size: 16px; font-weight: 650; letter-spacing: .2px; }
.auth-brand .bs { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(226, 232, 240, .55); }

.auth-hero { position: relative; z-index: 2; margin: 40px 0; }
.auth-hero .eyebrow { color: rgba(165, 180, 252, .9); }
.auth-hero h1 {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.22;
    letter-spacing: -.035em;
    margin: 14px 0 16px;
    font-weight: 700;
    background: linear-gradient(120deg, #fff 10%, #c7d2fe 55%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-hero p { font-size: 14px; color: rgba(203, 213, 225, .78); max-width: 420px; line-height: 1.85; margin: 0; }

.auth-features { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.auth-feature { display: flex; gap: 12px; align-items: flex-start; }
.auth-feature .fi {
    width: 32px; height: 32px; border-radius: 10px; flex: none;
    background: rgba(148, 163, 184, .12);
    border: 1px solid rgba(148, 163, 184, .18);
    display: grid; place-items: center;
    color: #a5b4fc;
}
.auth-feature .fi svg { width: 16px; height: 16px; }
.auth-feature b { display: block; font-size: 13px; font-weight: 600; color: #e2e8f0; }
.auth-feature span { font-size: 12px; color: rgba(148, 163, 184, .8); }

.auth-visual-foot {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11.5px; color: rgba(148, 163, 184, .65);
    border-top: 1px solid rgba(148, 163, 184, .14);
    padding-top: 18px;
}

.auth-panel {
    display: grid;
    place-items: center;
    padding: 40px 32px;
    position: relative;
}

.auth-card { width: min(392px, 100%); }
.auth-card-head h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.auth-card-head p { margin: 0 0 26px; font-size: 13px; color: var(--muted); }

.auth-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: var(--muted); margin-bottom: 26px;
}
.auth-back:hover { color: var(--brand); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field-box {
    position: relative;
    display: flex; align-items: center;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color .16s, box-shadow .16s;
}
.field-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(99, 102, 241, .12); }
.field-box > svg { width: 17px; height: 17px; color: var(--muted); margin-left: 14px; flex: none; }
.field-box input {
    flex: 1; height: 100%; border: 0; outline: 0; background: transparent;
    padding: 0 12px; font-family: var(--font); font-size: 14px; color: var(--text);
    min-width: 0;
}
.field-box input::placeholder { color: #a6b0c4; }
.field-eye {
    width: 38px; height: 38px; margin-right: 4px; border: 0; background: transparent;
    border-radius: 9px; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.field-eye:hover { background: var(--bg-soft); color: var(--text-2); }
.field-eye svg { width: 17px; height: 17px; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; font-size: 12.5px; }
.auth-row label { display: flex; align-items: center; gap: 7px; color: var(--text-2); cursor: pointer; }
.auth-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--brand); }
.auth-row a { color: var(--brand); }

.btn-auth {
    width: 100%; height: 46px;
    border: 0; border-radius: 12px;
    background: var(--grad);
    color: #fff; font-family: var(--font);
    font-size: 14.5px; font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 30px -14px rgba(99, 102, 241, .95);
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    transition: transform .12s, filter .16s, box-shadow .16s;
}
.btn-auth:hover { filter: brightness(1.05); box-shadow: 0 18px 34px -14px rgba(99, 102, 241, 1); }
.btn-auth:active { transform: translateY(1px); }
.btn-auth[disabled] { opacity: .7; cursor: default; }

.btn-auth .spinner {
    width: 15px; height: 15px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
    display: none;
}
.btn-auth.loading .spinner { display: inline-block; }
.btn-auth.loading .btn-label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-error {
    display: none;
    align-items: center; gap: 8px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12.5px;
    line-height: 1.5;
}
.auth-error.show { display: flex; }

.auth-foot { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
.auth-foot a { font-weight: 600; }

#vaptchaContainer { margin-bottom: 14px; min-height: 0; }
#vaptchaContainer:empty { display: none; }
.vaptcha-init-main { border-radius: 12px; overflow: hidden; }
.vaptcha-init-loading { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; color: var(--muted); }
.vaptcha-init-loading img { width: 18px; }
.vaptcha-text { font-size: 12px; }

/* 移动端 */
@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { padding: 28px 20px; min-height: 100vh; align-content: center; }
    .auth-card-head h2 { font-size: 22px; }
}
