:root {
    --login-sidebar: #171b24;
    --login-sidebar-soft: #202633;
    --login-border: #e1e6ed;
    --login-text: #182230;
    --login-muted: #758194;
    --login-primary: #2f6df6;
    --login-primary-hover: #245edc;
    --login-success: #20a36a;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; letter-spacing: 0; }
body,
button,
input { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; letter-spacing: 0; }
body.v2-login-page { display: flex; align-items: stretch; justify-content: center; min-height: 100vh; background: #f4f6f9; color: var(--login-text); }
.v2-login-shell { display: grid; width: 100%; min-height: 100vh; grid-template-columns: minmax(360px, 42%) minmax(420px, 58%); }
.v2-login-context { display: flex; position: relative; min-height: 100vh; flex-direction: column; padding: 34px 44px; background: var(--login-sidebar); color: #fff; overflow: hidden; }
.v2-login-brand { display: flex; align-items: center; gap: 12px; }
.v2-login-brand > span { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 7px; background: var(--login-primary); }
.v2-login-brand > span i { font-size: 19px; }
.v2-login-brand > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.v2-login-brand strong { font-size: 16px; font-weight: 700; }
.v2-login-brand small { color: #8994a7; font-size: 10px; }
.v2-login-summary { width: min(470px, 100%); margin: auto 0; }
.v2-login-summary > p { margin: 0 0 10px; color: #779cff; font-size: 11px; font-weight: 700; }
.v2-login-summary h1 { margin: 0; color: #f8faff; font-size: clamp(28px, 3vw, 42px); font-weight: 700; line-height: 1.3; }
.v2-login-status { margin-top: 44px; border-top: 1px solid #2b3240; }
.v2-login-status > div { display: flex; min-height: 72px; align-items: center; gap: 13px; border-bottom: 1px solid #2b3240; }
.v2-login-status > div > i { display: inline-flex; flex: 0 0 34px; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 6px; background: var(--login-sidebar-soft); color: #85a6ff; font-size: 16px; }
.v2-login-status span { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.v2-login-status strong { font-size: 12px; font-weight: 650; }
.v2-login-status small { color: #838fa2; font-size: 10px; }
.v2-login-status b { width: 7px; height: 7px; border-radius: 50%; background: var(--login-success); box-shadow: 0 0 0 3px rgba(32, 163, 106, .12); }
.v2-login-context footer { display: flex; align-items: center; gap: 8px; color: #778397; font-size: 10px; }
.v2-login-context footer i { width: 7px; height: 7px; border-radius: 50%; background: var(--login-success); }

.v2-login-form-wrap { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 38px; background: #fff; }
.v2-login-form { width: min(420px, 100%); }
.v2-login-form header { margin-bottom: 32px; }
.v2-login-form header > span { color: var(--login-primary); font-size: 11px; font-weight: 700; }
.v2-login-form h2 { margin: 8px 0 7px; color: var(--login-text); font-size: 28px; font-weight: 720; line-height: 1.25; }
.v2-login-form header p { margin: 0; color: var(--login-muted); font-size: 11px; }
.v2-login-field { margin-bottom: 16px; }
.v2-login-field > label { display: block; margin-bottom: 7px; color: #4d596b; font-size: 11px; font-weight: 620; }
.v2-login-input { display: flex; height: 44px; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #d8dee7; border-radius: 6px; background: #fff; }
.v2-login-input:focus-within { border-color: var(--login-primary); box-shadow: 0 0 0 3px rgba(47, 109, 246, .1); }
.v2-login-input > i { flex: 0 0 auto; color: #8691a1; font-size: 15px; }
.v2-login-input input { min-width: 0; height: 100%; flex: 1; padding: 0; border: 0; outline: 0; color: var(--login-text); font-size: 12px; }
.v2-login-input input::placeholder { color: #a2aab7; }
.v2-login-input button { display: inline-flex; flex: 0 0 30px; width: 30px; height: 30px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #7f8a9a; cursor: pointer; }
.v2-login-input button:hover { background: #f1f4f8; color: var(--login-primary); }
.v2-login-captcha { display: grid; grid-template-columns: minmax(0, 1fr) 126px; gap: 9px; }
.v2-login-captcha > button { height: 44px; padding: 0; border: 1px solid #d8dee7; border-radius: 6px; background: #f8fafc; overflow: hidden; cursor: pointer; }
.v2-login-captcha img { display: block; width: 100%; height: 42px; object-fit: cover; }
.v2-login-verification { margin-bottom: 16px; }
.v2-login-verification > button,
.v2-login-verified { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 1px solid #d8dee7; border-radius: 6px; background: #f8fafc; color: #536075; font-size: 11px; cursor: pointer; }
.v2-login-verified { border-color: #cbe8da; background: #eaf8f2; color: #247b55; cursor: default; }
#geetest_captcha { width: 100%; }
.v2-login-options { display: flex; min-height: 32px; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 15px; }
.v2-login-options .layui-form-checkbox span { color: #657184; font-size: 10px; }
.v2-login-options a { color: #778397; font-size: 10px; text-decoration: none; }
.v2-login-options a:hover { color: var(--login-primary); }
.v2-login-submit { display: flex; width: 100%; height: 44px; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--login-primary); border-radius: 6px; background: var(--login-primary); color: #fff; font-size: 12px; font-weight: 650; cursor: pointer; }
.v2-login-submit:hover { border-color: var(--login-primary-hover); background: var(--login-primary-hover); }
.v2-login-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 16px; color: #929baa; font-size: 9px; line-height: 1.5; }
.v2-login-note i { margin-top: 1px; }
.layui-layer { border-radius: 7px !important; }

@media (max-width: 820px) {
    .v2-login-shell { grid-template-columns: 1fr; }
    .v2-login-context { display: none; }
    .v2-login-form-wrap { min-height: 100vh; padding: 28px 20px; }
}
@media (max-width: 420px) {
    .v2-login-form-wrap { padding: 24px 16px; }
    .v2-login-form h2 { font-size: 24px; }
    .v2-login-captcha { grid-template-columns: minmax(0, 1fr) 108px; }
}
