:root {
    --brand: #2563eb;
    --brand-2: #3b82f6;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e6ebf3;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #eaf1fd;
    -webkit-font-smoothing: antialiased;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background:
        radial-gradient(900px 500px at 12% 8%, #dbeafe 0%, rgba(219, 234, 254, 0) 60%),
        radial-gradient(700px 500px at 92% 96%, #e0e7ff 0%, rgba(224, 231, 255, 0) 62%),
        linear-gradient(160deg, #eef4ff 0%, #e7eefb 100%);
}

.login-card {
    width: 100%;
    max-width: 940px;
    min-height: 540px;
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 34, 71, .16), 0 2px 6px rgba(15, 34, 71, .04);
}

/* 左侧视觉区 */
.login-visual {
    position: relative;
    background: linear-gradient(155deg, #1e3a8a 0%, #1d4ed8 45%, #2563eb 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual-glow {
    position: absolute; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, .55), rgba(96, 165, 250, 0) 68%);
    top: -140px; right: -150px;
}
.visual-body { position: relative; z-index: 2; text-align: center; padding: 0 34px; }
.visual-badge {
    width: 84px; height: 84px; margin: 0 auto 26px;
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 30px rgba(2, 20, 60, .25);
    backdrop-filter: blur(4px);
    color: #cfe3ff;
}
.visual-body h1 { font-size: 24px; letter-spacing: 1px; font-weight: 600; }
.visual-body p { margin-top: 10px; font-size: 12.5px; color: rgba(226, 238, 255, .78); letter-spacing: .6px; }

/* 右侧表单区 */
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 46px 54px; }
.form-inner { width: 100%; max-width: 340px; }
.form-inner h2 { font-size: 25px; font-weight: 700; letter-spacing: .5px; }
.form-inner .sub { color: #94a3b8; font-size: 12.5px; margin: 8px 0 26px; }

.field { position: relative; margin-bottom: 16px; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; display: flex; }
.field input {
    width: 100%; height: 48px; border: 1.5px solid #e8eef7; border-radius: 11px;
    padding: 0 44px 0 42px; font-size: 14px; color: var(--ink); outline: none;
    background: #f8fafd; transition: .16s; font-family: inherit;
}
.field input::placeholder { color: #a9b6c9; }
.field input:focus { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, .12); }
.field .eye {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: #a9b6c9; cursor: pointer; padding: 6px; display: flex;
}

.login-btn {
    width: 100%; height: 48px; margin-top: 6px; border: 0; border-radius: 11px; cursor: pointer;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 3px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .30);
    transition: .18s; font-family: inherit;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(37, 99, 235, .34); }
.login-btn:active { transform: translateY(0); }

.login-error {
    display: flex; align-items: center; gap: 8px;
    background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
    border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 16px;
}

.form-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 26px; padding-top: 16px; border-top: 1px dashed #eef2f8;
    font-size: 11.5px; color: #a3b1c6;
}
.form-foot a { color: var(--brand); text-decoration: none; }
.form-foot a:hover { text-decoration: underline; }

.login-copyright { margin-top: 22px; font-size: 12px; color: #94a3b8; }

@media (max-width: 860px) {
    .login-card { grid-template-columns: 1fr; max-width: 440px; min-height: auto; }
    .login-visual { min-height: 190px; padding: 26px 0; }
    .visual-body h1 { font-size: 20px; }
    .visual-badge { width: 62px; height: 62px; margin-bottom: 16px; }
    .login-form-side { padding: 32px 26px 36px; }
}
