/* Base layout and colors reused from the platform login.html. */

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            min-height: 100vh;
            min-height: 100svh;
            background: #071426;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px 24px 24px;
            font-family: 'Microsoft YaHei', sans-serif;
        }

        /* 装饰独立于文档流，短屏滚动时仍铺满视口。 */
        .login-background {
            position: fixed;
            inset: 0;
            z-index: 0;
            overflow: hidden;
            pointer-events: none;
            background:
                radial-gradient(ellipse at 10% 16%, rgba(14,116,144,0.22), transparent 48%),
                radial-gradient(ellipse at 92% 86%, rgba(37,99,235,0.19), transparent 48%),
                linear-gradient(135deg, #0b2037, #071426 52%, #0a1b33);
        }

        .login-background::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(125,211,252,0.045) 1px, transparent 1px),
                linear-gradient(90deg, rgba(125,211,252,0.045) 1px, transparent 1px);
            background-size: 64px 64px;
            -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, #000 85%);
            mask-image: radial-gradient(ellipse at center, transparent 20%, #000 85%);
        }

        .glow-orb {
            position: absolute;
            width: 720px;
            height: 720px;
            border-radius: 50%;
            opacity: 0.65;
            background: radial-gradient(circle, rgba(6,182,212,0.18), transparent 68%);
            animation: orbDrift 20s ease-in-out infinite alternate;
        }

        .glow-orb-1 { top: -260px; left: -200px; }

        .glow-orb-2 {
            right: -220px;
            bottom: -280px;
            background: radial-gradient(circle, rgba(59,130,246,0.22), transparent 68%);
            animation-duration: 24s;
            animation-delay: -12s;
        }

        .network-art {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        .network-lines {
            fill: none;
            stroke: #38bdf8;
            stroke-width: 1;
            opacity: 0.22;
        }

        .network-rings {
            fill: none;
            stroke: #67e8f9;
            stroke-width: 1;
            opacity: 0.18;
        }

        .network-nodes { fill: #67e8f9; opacity: 0.6; }

        .network-pulse {
            fill: #22d3ee;
            opacity: 0.12;
            animation: nodeBreathe 12s ease-in-out infinite alternate;
        }

        .network-pulse-delayed { animation-delay: -6s; }

        @keyframes orbDrift {
            from { transform: translate(0, 0); opacity: 0.5; }
            to { transform: translate(32px, 24px); opacity: 0.85; }
        }

        @keyframes nodeBreathe {
            from { opacity: 0.08; }
            to { opacity: 0.28; }
        }

        .login-wrapper {
            position: relative;
            z-index: 10;
            display: flex;
            flex-shrink: 0;
            width: 900px;
            max-width: 100%;
            min-height: 520px;
            margin: auto 0;
            border-radius: 14px;
            overflow: hidden;
            background: #fff;
            box-shadow: 0 28px 80px rgba(0,5,16,0.42), 0 0 0 1px rgba(125,211,252,0.24);
        }

        /* 左侧品牌区 */
        .brand-panel {
            flex: 1;
            background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
            padding: 50px 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            border-right: 1px solid #e2e8f0;
            position: relative;
            overflow: hidden;
        }

        .brand-panel::before {
            content: '';
            position: absolute;
            width: 300px; height: 300px;
            border-radius: 50%;
            border: 1px solid rgba(37,99,235,0.08);
            top: -80px; right: -80px;
        }
        .brand-panel::after {
            content: '';
            position: absolute;
            width: 200px; height: 200px;
            border-radius: 50%;
            border: 1px solid rgba(37,99,235,0.06);
            bottom: -50px; left: -50px;
        }

        .brand-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 40px;
        }

        .brand-name {
            font-size: 22px;
            font-weight: 700;
            color: #172033;
            letter-spacing: 2px;
        }

        .brand-name span { color: #2563eb; }

        .brand-tagline {
            font-size: 14px;
            color: #64748b;
            margin-top: 4px;
            letter-spacing: 1px;
        }

        .brand-desc {
            color: #64748b;
            font-size: 14px;
            line-height: 1.8;
            margin-bottom: 36px;
        }

        .feature-list { list-style: none; }

        .feature-list li {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #475569;
            font-size: 13px;
            padding: 8px 0;
            border-bottom: 1px solid #e8eef6;
        }

        .feature-list li:last-child { border-bottom: none; }

        .feature-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: #2563eb;
            flex-shrink: 0;
        }

        .register-link {
            margin-top: 30px;
            font-size: 13px;
            color: #64748b;
        }

        .register-link a {
            color: #2563eb;
            text-decoration: none;
        }

        .register-link a:hover { text-decoration: underline; }

        /* 右侧表单区 */
        .form-panel {
            width: 380px;
            background: #fff;
            padding: 50px 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .form-title {
            font-size: 24px;
            font-weight: 700;
            color: #172033;
            margin-bottom: 6px;
        }

        .form-subtitle {
            font-size: 13px;
            color: #64748b;
            margin-bottom: 36px;
        }

        .form-group { margin-bottom: 18px; }

        .input-wrap {
            position: relative;
        }

        .input-wrap i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 14px;
        }

        .form-control {
            width: 100%;
            height: 46px;
            background: #f8fafc;
            border: 1px solid #dbe5f0;
            border-radius: 8px;
            color: #172033;
            font-size: 14px;
            padding: 0 14px 0 40px;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .form-control::placeholder { color: #94a3b8; }

        .form-control:focus {
            border-color: #60a5fa;
            box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
            background: #fff;
        }

        .captcha-row {
            display: flex;
            gap: 10px;
        }

        .captcha-row .input-wrap { flex: 1; }

        .captcha-img {
            height: 46px;
            border-radius: 8px;
            border: 1px solid #dbe5f0;
            cursor: pointer;
            flex-shrink: 0;
        }

        .remember-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
        }

        .remember-row input[type=checkbox] { accent-color: #2563eb; }
        .remember-row label { color: #64748b; font-size: 13px; cursor: pointer; }
        .remember-row a { color: #2563eb; font-size: 13px; text-decoration: none; }
        .remember-left { display: flex; align-items: center; gap: 8px; }

        .login-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            padding: 4px;
            background: #f1f5f9;
            border-radius: 8px;
        }

        .login-tab {
            flex: 1;
            height: 34px;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: #64748b;
            cursor: pointer;
        }

        .login-tab.active {
            background: #fff;
            color: #2563eb;
            box-shadow: 0 1px 4px rgba(15,23,42,0.08);
        }

        .wechat-login {
            display: none;
        }

        .wechat-qrcode {
            height: 150px;
            border: 1px solid #dbe5f0;
            border-radius: 8px;
            background: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 18px;
            overflow: hidden;
            color: #64748b;
            font-size: 13px;
            text-align: center;
        }

        .wechat-qrcode img {
            width: 150px;
            height: 150px;
            object-fit: contain;
        }

        .wechat-tip {
            font-size: 12px;
            color: #64748b;
            line-height: 1.7;
            margin-bottom: 18px;
        }

        .btn-login {
            width: 100%;
            height: 46px;
            background: linear-gradient(90deg, #2563eb, #0ea5e9);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 2px;
            cursor: pointer;
            transition: opacity 0.2s, box-shadow 0.2s;
            box-shadow: 0 10px 24px rgba(37,99,235,0.22);
        }

        .btn-login:hover {
            opacity: 0.9;
            box-shadow: 0 12px 30px rgba(37,99,235,0.28);
        }

        .footer-copy {
            position: relative;
            flex-shrink: 0;
            margin-top: 24px;
            color: #9aafc6;
            font-size: 12px;
            line-height: 1.8;
            text-align: center;
            z-index: 10;
        }

        label.error { color: #ff4d6d; font-size: 12px; margin-top: 4px; display: block; }

        @media (max-width: 900px) {
            body {
                padding: 24px 12px;
            }

            .network-art { display: none; }

            .login-background::before { opacity: 0.5; }

            .glow-orb { width: 480px; height: 480px; }

            .glow-orb, .network-pulse { animation: none; }

            .login-wrapper {
                width: 100%;
                max-width: 420px;
                min-height: 0;
                margin: 0;
                flex-direction: column;
            }

            .brand-panel {
                padding: 30px 28px;
            }

            .brand-logo {
                margin-bottom: 24px;
            }

            .form-panel {
                width: 100%;
                padding: 34px 28px;
            }

            .footer-copy {
                max-width: 420px;
                margin-top: 18px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .glow-orb, .network-pulse { animation: none; }
        }

/* SMS preview overrides; original desktop brand and form surfaces are retained. */
[hidden] { display: none !important; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; padding-top: 36px; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, input[type=checkbox]:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
h1:focus { outline: none; }
.login-wrapper { width: 940px; min-height: 560px; }
.brand-panel { padding: 48px 40px; }
.brand-logo { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.brand-logo img { object-fit: contain; }
.brand-name { font-size: 23px; letter-spacing: 1px; }
.brand-caption { margin-top: 38px; color: #64748b; font-size: 12px; }
.form-panel { width: 430px; padding: 42px 40px; flex-shrink: 0; }
.form-subtitle { line-height: 1.7; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group > label { display: block; color: #334155; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.form-control { padding: 0 13px; min-width: 0; font-size: 14px; }
.form-control::placeholder { color: #737f90; }
.form-control[aria-invalid=true] { border-color: #c53745; }
.input-wrap:has(.reveal) .form-control { padding-right: 58px; }
.reveal { position: absolute; right: 4px; top: 3px; height: 40px; padding: 0 10px; border: 0; background: transparent; color: #47617e; cursor: pointer; font-size: 12px; border-radius: 5px; }
.code-row { display: flex; gap: 10px; }
.code-row .form-control { flex: 1; width: 0; }
.btn-code { min-width: 116px; flex-shrink: 0; height: 46px; padding: 0 10px; border: 1px solid #bdd3f0; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font-size: 13px; cursor: pointer; }
.btn-code:hover:enabled { background: #dbeafe; }
.btn-code:disabled { color: #64748b; background: #f1f5f9; border-color: #dbe5f0; cursor: not-allowed; }
.field-error { color: #b42336; font-size: 12px; line-height: 1.6; margin-top: 5px; }
.field-error:empty, .send-hint:empty { display: none; }
.send-hint { font-size: 12px; color: #416181; line-height: 1.7; margin-top: 8px; }
.form-help { font-size: 12px; color: #64748b; margin: -2px 0 22px; }
.notice { font-size: 13px; line-height: 1.7; padding: 10px 12px; margin: 0 0 16px; border-radius: 6px; background: #fff4f3; color: #a02d38; overflow-wrap: anywhere; border: 1px solid #f5d0d0; }
.notice.success { color: #16634e; background: #edf9f4; border-color: #bce2d3; }
.btn-login { letter-spacing: 1px; }
.btn-login:disabled { opacity: .65; cursor: wait; }
.remember-row { min-height: 28px; gap: 12px; }
.remember-left { margin-right: auto; }
.remember-left input { width: 15px; height: 15px; }
.text-button { padding: 4px 0; color: #2563eb; border: 0; background: transparent; cursor: pointer; font-size: 13px; }
.text-button:hover { text-decoration: underline; }
.register-link { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e8eef6; text-align: center; line-height: 1.7; }

.back-link { display: inline-block; margin-bottom: 20px; }
#reset-view .form-subtitle { margin-bottom: 22px; }
#reset-view .form-group { margin-bottom: 16px; }
.success-view { text-align: center; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 24px; font-size: 30px; color: #167858; background: #e8f7ef; }
@media (max-width: 900px) {
    body { padding: 20px 12px; }
    .login-wrapper { max-width: 440px; width: 100%; min-height: 0; }
    .brand-panel { flex: none; padding: 24px 24px 22px; border-right: 0; border-bottom: 1px solid #e2e8f0; }
    .brand-logo { gap: 14px; margin: 0; }
    .brand-name { font-size: 20px; }
    .brand-tagline { font-size: 12px; }
    .brand-desc, .feature-list, .brand-caption { display: none; }
    .form-panel { width: 100%; padding: 28px 24px; }
    .form-title { font-size: 22px; }
    .form-subtitle { font-size: 12px; }
    .form-control { font-size: 16px; }
    .footer-copy { font-size: 10px; }
}
@media (max-width: 360px) {
    body { padding: 12px 10px; }
    .brand-panel { padding: 20px; }
    .form-panel { padding: 26px 20px; }
    .brand-name { font-size: 19px; }
    .code-row { gap: 7px; }
    .btn-code { min-width: 106px; padding: 0 6px; font-size: 12px; }
}
.button-link { display:flex; align-items:center; justify-content:center; text-decoration:none; }


.agree-row { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-bottom:18px; color:#64748b; font-size:12px; }
.agree-row input { accent-color:#2563eb; }
.agree-row a { color:#2563eb; text-decoration:none; }
