html, body { min-height: 100%; }
body {
    margin: 0;
    background: radial-gradient(circle at 12% 18%, rgba(47,109,246,.12), transparent 28%), linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}
.login-topbar {
    height: 72px; padding: 0 clamp(20px,5vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(226,233,243,.85); backdrop-filter: blur(14px);
}
.login-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; }
.login-brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 8px 20px rgba(47,109,246,.22); }
.home-link {
    min-height: 38px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #d7e2f2; border-radius: 8px; color: var(--blue-dark); background: #fff; font-size: 14px; font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}
.home-link:hover { background: #eff6ff; transform: translateY(-1px); }
.login-main { min-height: calc(100vh - 72px); padding: clamp(28px,6vh,72px) 28px; display: grid; place-items: center; }
.login-shell {
    width: min(960px,100%); min-height: 540px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr);
    overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 24px 60px rgba(37,55,88,.14);
}
.login-intro {
    position: relative; overflow: hidden; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; color: #fff;
    background: radial-gradient(circle at 35% 18%, rgba(255,255,255,.18), transparent 34%), linear-gradient(135deg,#2d67f2 0%,#447dfb 55%,#4f86ff 100%);
}
.login-intro::before, .login-intro::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.login-intro::before { width: 300px; height: 300px; top: -120px; right: -100px; }
.login-intro::after { width: 220px; height: 220px; right: 30px; bottom: -120px; }
.intro-mark, .login-intro h1, .login-intro p, .intro-points { position: relative; z-index: 1; }
.intro-mark { width: 64px; height: 64px; margin-bottom: 28px; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(22,55,130,.2); }
.login-intro h1 { margin: 0 0 16px; font-size: clamp(30px,4vw,42px); line-height: 1.2; font-weight: 800; }
.login-intro p { margin: 0 0 36px; color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.8; font-weight: 700; }
.intro-points { display: flex; flex-wrap: wrap; gap: 10px; }
.intro-points span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 700; }
.login-panel { padding: 64px 52px 42px; display: flex; flex-direction: column; justify-content: center; }
.login-panel h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.3; font-weight: 800; }
.login-subtitle { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.login-error { margin: 0 0 16px; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 8px; color: #b42318; background: #fff1f0; font-size: 13px; }
.login-field { display: block; margin-bottom: 20px; }
.login-field span { display: block; margin-bottom: 8px; color: #334155; font-size: 14px; font-weight: 800; }
.login-field input {
    width: 100%; height: 48px; padding: 0 15px; border: 1px solid #dbe3ef; border-radius: 9px; outline: none;
    color: var(--ink); background: #f8fafc; font: inherit; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.login-field input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47,109,246,.12); }
.captcha-row img { max-width: 100%; margin-top: 10px; cursor: pointer; }
.login-submit {
    width: 100%; height: 48px; margin-top: 6px; border: 0; border-radius: 9px; color: #fff;
    background: linear-gradient(90deg,#2f75ff,#1263ef); box-shadow: 0 10px 22px rgba(47,116,255,.26);
    font: 800 15px var(--workspace-font); cursor: pointer; transition: box-shadow .2s ease, transform .2s ease;
}
.login-submit:hover { box-shadow: 0 14px 28px rgba(47,116,255,.34); transform: translateY(-1px); }
.login-links { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 18px; color: #64748b; font-size: 13px; }
.login-links a:hover { color: var(--blue); }
.login-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid #eef2f7; color: #94a3b8; text-align: center; font-size: 12px; }
@media (max-width: 760px) {
    .login-topbar { height: 60px; padding: 0 18px; }
    .login-brand { font-size: 19px; }
    .login-brand img { width: 32px; height: 32px; border-radius: 8px; }
    .home-link { min-height: 34px; padding: 0 13px; }
    .login-main { min-height: calc(100vh - 60px); padding: 22px 16px; }
    .login-shell { min-height: 0; grid-template-columns: 1fr; border-radius: 14px; }
    .login-intro { padding: 30px 28px; }
    .intro-mark, .intro-points { display: none; }
    .login-intro h1 { margin-bottom: 8px; font-size: 26px; }
    .login-intro p { margin: 0; font-size: 14px; line-height: 1.6; }
    .login-panel { padding: 32px 28px 26px; }
    .login-footer { margin-top: 10px; }
}
