* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
body {
    background: radial-gradient(ellipse at top left, #0a1530 0%, #060a1a 45%, #03060f 100%);
    color: #cfe6ff;
}

/* ===== 背景动效 ===== */
#bgCanvas {
    position: fixed; inset: 0; z-index: 0;
}
.glow-grid {
    position: fixed; inset: 0; z-index: 0;
    background-image:
            linear-gradient(rgba(64,158,255,.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(64,158,255,.06) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    animation: gridShift 24s linear infinite;
}
@keyframes gridShift { from { background-position: 0 0; } to { background-position: 46px 46px; } }
.aurora {
    position: fixed; z-index: 0; border-radius: 50%; filter: blur(90px); opacity: .55;
    animation: float 18s ease-in-out infinite;
}
.aurora.a1 { width: 520px; height: 520px; left: -120px; top: -120px;
    background: radial-gradient(circle, #1e6bff, transparent 70%); }
.aurora.a2 { width: 460px; height: 460px; right: -100px; bottom: -120px;
    background: radial-gradient(circle, #00e0ff, transparent 70%); animation-delay: -6s; }
.aurora.a3 { width: 380px; height: 380px; right: 18%; top: -80px;
    background: radial-gradient(circle, #6a3bff, transparent 70%); animation-delay: -12s; }
@keyframes float {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(40px,30px) scale(1.08); }
}

/* ===== 布局 ===== */
.wrap {
    position: relative; z-index: 2;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.panel {
    display: flex; width: 880px; max-width: 92vw; height: 520px;
    border-radius: 18px; overflow: hidden;
    background: rgba(10,20,42,.55);
    border: 1px solid rgba(80,160,255,.25);
    box-shadow: 0 0 0 1px rgba(80,160,255,.08), 0 30px 80px rgba(0,0,0,.6),
    inset 0 0 60px rgba(30,107,255,.06);
    backdrop-filter: blur(10px);
}

/* 左侧品牌区 */
.brand {
    position: relative; flex: 1; padding: 46px 40px;
    background:
            linear-gradient(160deg, rgba(30,107,255,.18), rgba(0,224,255,.05) 60%, transparent),
            radial-gradient(circle at 30% 20%, rgba(0,224,255,.18), transparent 55%);
    border-right: 1px solid rgba(80,160,255,.18);
    display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden;
}
.brand .corner {
    position: absolute; width: 26px; height: 26px; border: 2px solid #2f9bff; opacity: .8;
}
.brand .c1 { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.brand .c2 { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.brand .c3 { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.brand .c4 { bottom: 16px; right: 16px; border-left: none; border-top: none; }
.logo { display: flex; align-items: center; gap: 14px; z-index: 2; }
.logo .mark {
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, #1e6bff, #00e0ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: #03101f;
    box-shadow: 0 0 24px rgba(0,224,255,.5);
}
.logo .title { font-size: 22px; font-weight: 700; letter-spacing: 2px;
    background: linear-gradient(90deg, #8fd0ff, #ffffff);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .sub { font-size: 12px; color: #6f93c4; letter-spacing: 3px; }
.brand h1 { font-size: 30px; font-weight: 800; line-height: 1.4; z-index: 2;
    background: linear-gradient(90deg, #ffffff, #7fc8ff);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand p { margin-top: 14px; font-size: 13px; color: #79a3d6; line-height: 1.9; z-index: 2; }
.brand .stats { display: flex; gap: 26px; z-index: 2; }
.brand .stats div span { display: block; font-size: 24px; font-weight: 800; color: #4fd2ff; }
.brand .stats div label { font-size: 11px; color: #6f93c4; letter-spacing: 1px; }

/* 右侧登录区 */
.form-area {
    flex: 1; padding: 52px 46px; display: flex; flex-direction: column; justify-content: center;
}
.form-area h2 { font-size: 20px; font-weight: 700; color: #e6f3ff; margin-bottom: 6px; letter-spacing: 1px; }
.form-area .tip { font-size: 12px; color: #6f93c4; margin-bottom: 30px; letter-spacing: 1px; }

.field { display: flex; align-items: center; margin-bottom: 22px; }
.field i.fa { position: absolute; left: 14px; color: #4aa8ff; font-size: 15px; z-index: 1; pointer-events: none; }
.field input {
    flex: 1; height: 48px; padding: 0 16px 0 42px;
    background: rgba(8,18,38,.7); border: 1px solid rgba(80,160,255,.25);
    border-radius: 10px; color: #dcefff; font-size: 14px; outline: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder { color: #5e80ab; }
.field input:focus {
    border-color: #2f9bff; background: rgba(12,26,52,.85);
    box-shadow: 0 0 0 3px rgba(47,155,255,.15), 0 0 18px rgba(0,224,255,.25);
}
.field .toggle { position: relative; right: 14px; margin-left: -36px; color: #5e80ab; cursor: pointer; font-size: 15px; z-index: 2; }

.row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; font-size: 13px; }
.row label { color: #9cc0ec; cursor: pointer; display: flex; align-items: center; gap: 7px; }
.row input[type=checkbox] { accent-color: #2f9bff; width: 15px; height: 15px; }
.row a { color: #6fa8e6; text-decoration: none; }
.row a:hover { color: #4fd2ff; }

.btn-login {
    width: 100%; height: 50px; border: none; border-radius: 10px; cursor: pointer;
    font-size: 16px; font-weight: 700; letter-spacing: 4px; color: #03101f;
    background: linear-gradient(90deg, #1e6bff, #00e0ff);
    background-size: 200% auto; position: relative; overflow: hidden;
    box-shadow: 0 8px 26px rgba(0,160,255,.35); transition: background-position .5s, transform .1s;
}
.btn-login:hover { background-position: right center; box-shadow: 0 10px 34px rgba(0,224,255,.5); }
.btn-login:active { transform: scale(.985); }
.btn-login::after {
    content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg); animation: shine 3.2s infinite;
}
@keyframes shine { 0% { left: -120%; } 55%,100% { left: 130%; } }

.err { color: #ff7a8a; font-size: 13px; min-height: 20px; margin: -8px 0 14px; text-align: center; }

.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #4fd2ff, transparent);
    box-shadow: 0 0 12px #4fd2ff; animation: scan 3.5s linear infinite; opacity: .7; }
@keyframes scan { from { top: 0; } to { top: 100%; } }

@media (max-width: 760px) {
    .panel { flex-direction: column; height: auto; }
    .brand { display: none; }
}