:root {
    color-scheme: light;
    --login-blue: #2563eb;
    --login-blue-dark: #1d4ed8;
    --login-ink: #162a48;
    --login-muted: #64748b;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f5f8ff; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; border-radius: 4px; }

.login-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--login-ink); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
.login-header { height: 76px; flex-shrink: 0; position: relative; z-index: 1; background: rgba(255, 255, 255, .96); border-bottom: 1px solid #e9eef7; }
.login-header-inner { width: min(1280px, calc(100% - 96px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.login-brand { display: flex; align-items: center; min-width: 0; gap: 22px; }
.login-brand img { display: block; max-width: 180px; max-height: 36px; object-fit: contain; }
.login-brand-divider { height: 22px; width: 1px; background: #dce3ef; }
.login-brand-caption { color: #57677f; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.login-home { display: inline-flex; align-items: center; gap: 8px; color: #53647d; font-size: 13px; white-space: nowrap; padding: 10px 0; transition: color .18s ease; }
.login-home svg { width: 17px; height: 17px; }
.login-home:hover { color: var(--login-blue); }

.login-main { flex: 1; display: flex; align-items: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 34% 65%, #dceaff 0%, transparent 48%), linear-gradient(116deg, #f8fbff 6%, #edf4ff 55%, #e8f0fd 100%); }
.login-main::before { content: ""; pointer-events: none; position: absolute; width: 650px; height: 650px; left: -410px; top: 20%; border: 1px solid rgba(73, 123, 203, .09); border-radius: 50%; box-shadow: 0 0 0 100px rgba(255, 255, 255, .13), 0 0 0 200px rgba(255, 255, 255, .1); }
.login-layout { position: relative; width: min(1180px, calc(100% - 96px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 460px; align-items: center; gap: 72px; padding: 48px 0; }
.login-intro { min-width: 0; padding: 8px 0; }
.login-eyebrow { display: flex; align-items: center; gap: 9px; color: #506d9b; font-size: 13px; letter-spacing: 3px; margin-bottom: 17px; }
.login-eyebrow > span { width: 7px; height: 7px; background: var(--login-blue); box-shadow: 0 0 0 4px #e0eaff; border-radius: 50%; }
.login-intro h1 { margin: 0; font-size: clamp(34px, 3.2vw, 44px); line-height: 1.45; letter-spacing: 1px; font-weight: 650; }
.login-intro h1 span { color: var(--login-blue); }
.login-intro-description { margin: 18px 0 12px; color: #576b86; font-size: 14px; line-height: 1.9; }
.login-services { font-size: 12px; color: #566d8b; letter-spacing: .4px; }
.login-services span { color: #b4c5df; margin: 0 8px; }
.login-illustration { display: block; width: calc(100% + 42px); max-width: 640px; height: auto; margin: 8px 0 -10px -25px; user-select: none; pointer-events: none; }
.login-benefits { display: flex; align-items: center; gap: 28px; margin-top: 10px; color: #526b8d; font-size: 12px; }
.login-benefits > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.login-benefits svg { color: #5982bb; width: 17px; height: 17px; }

.login-card { padding: 36px 40px 27px; background: #fff; border: 1px solid rgba(255, 255, 255, .9); border-radius: 16px; box-shadow: 0 22px 70px -24px rgba(42, 76, 136, .2), 0 3px 12px rgba(44, 81, 145, .025); }
.login-card h2 { margin: 0; font-size: 27px; font-weight: 650; line-height: 1.5; letter-spacing: .5px; }
.login-card-description { margin: 8px 0 31px; color: var(--login-muted); font-size: 13px; }
.login-field { margin-bottom: 19px; }
.login-field label { display: block; font-size: 13px; color: #354862; font-weight: 500; margin-bottom: 8px; }
.login-input-wrap { position: relative; flex: 1; min-width: 0; }
.login-input-icon { position: absolute; top: 15px; left: 15px; width: 18px; height: 18px; color: #8595ad; pointer-events: none; }
.login-field input { display: block; width: 100%; height: 48px; padding: 0 14px 0 43px; border: 1px solid #dce3ee; border-radius: 7px; outline: none; color: #233d5d; background: #fcfdff; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.login-field input::placeholder { color: #64748b; font-size: 13px; }
.login-field input:hover { border-color: #a8bcd9; }
.login-field input:focus { background: #fff; border-color: var(--login-blue); box-shadow: 0 0 0 3px #2563eb14; }
.login-field input[aria-invalid="true"] { border-color: #d84848; }
.login-field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #d8484814; }
#login-password { padding-right: 49px; }
.login-password-toggle { position: absolute; top: 2px; right: 3px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: #7a8ba4; background: none; border: 0; border-radius: 5px; }
.login-password-toggle svg { width: 18px; height: 18px; }
.login-password-toggle:hover { color: var(--login-blue); background: #eff5ff; }
.login-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.login-label-row label { margin: 0; }
.login-refresh-text { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; border: 0; color: #607694; background: none; padding: 4px 0 4px 8px; font-size: 12px; margin: -4px 0; min-height: 28px; }
.login-refresh-text svg { width: 13px; height: 13px; }
.login-refresh-text:hover { color: var(--login-blue); }
.login-captcha-row { display: flex; align-items: flex-start; gap: 12px; }
.login-captcha-image { flex: 0 0 122px; height: 48px; padding: 0; border: 1px solid #dce3ee; border-radius: 7px; background: #f4f7fb; overflow: hidden; }
.login-captcha-image:hover { border-color: #8caee8; }
.login-captcha-image img { display: block; width: 100%; height: 100%; object-fit: fill; font-size: 12px; color: #5b6b83; }
.login-field-error { color: #bd3030; margin: 6px 0 0; line-height: 1.6; font-size: 12px; }
.login-alert { margin: -4px 0 18px; padding: 10px 13px; background: #fff3f3; border: 1px solid #f5d4d4; border-radius: 6px; color: #b83232; font-size: 13px; overflow-wrap: anywhere; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border: 0; border-radius: 7px; color: #fff; background: var(--login-blue); box-shadow: 0 5px 12px #2563eb20; font-size: 15px; font-weight: 500; letter-spacing: 1px; margin-top: 26px; transition: background .18s ease, box-shadow .18s ease; }
.login-submit:hover:not(:disabled) { background: var(--login-blue-dark); box-shadow: 0 6px 17px #2563eb35; }
.login-submit:disabled { background: #527ee8; }
.login-submit svg { width: 17px; height: 17px; }
.login-spinner { width: 17px; height: 17px; border: 2px solid #ffffff50; border-top-color: #fff; border-radius: 50%; animation: login-spin .8s linear infinite; }
.login-register { display: flex; align-items: center; justify-content: center; margin: 20px 0 22px; color: #64748b; font-size: 13px; }
.login-register a { display: inline-flex; align-items: center; gap: 2px; color: var(--login-blue-dark); font-weight: 500; margin-left: 4px; padding: 3px 0; }
.login-register svg { width: 13px; height: 13px; }
.login-register a:hover, .login-terms a:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-terms { margin: 0; padding-top: 17px; border-top: 1px solid #f0f3f8; color: #65758b; text-align: center; font-size: 11px; line-height: 1.9; }
.login-terms br { display: none; }
.login-terms a { color: #526b91; white-space: nowrap; }
.login-terms span { margin: 0 1px; }
.login-footer { position: relative; flex-shrink: 0; padding: 19px 24px; color: #5f6f87; font-size: 11px; text-align: center; background: #f5f8ff; overflow-wrap: anywhere; }
.login-footer p { margin: 0; }
.login-footer a:hover { color: var(--login-blue); }
.login-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes login-spin { to { transform: rotate(360deg); } }

@media (min-width: 901px) and (max-height: 800px) {
    .login-header { height: 64px; }
    .login-layout { padding-top: 20px; padding-bottom: 20px; }
    .login-intro h1 { font-size: 36px; line-height: 1.4; }
    .login-illustration { max-width: 450px; margin-top: -2px; }
    .login-card { padding-top: 26px; padding-bottom: 22px; }
    .login-card-description { margin-bottom: 25px; }
    .login-field { margin-bottom: 15px; }
    .login-submit { margin-top: 21px; }
    .login-register { margin-top: 15px; margin-bottom: 15px; }
    .login-footer { padding: 14px 24px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
    .login-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 36px; width: calc(100% - 64px); }
    .login-header-inner { width: calc(100% - 64px); }
    .login-card { padding-left: 32px; padding-right: 32px; }
    .login-intro h1 { font-size: 34px; }
    .login-benefits { gap: 15px; flex-wrap: wrap; }
    .login-services span { margin: 0 3px; }
}
@media (max-width: 900px) {
    .login-header { height: 68px; }
    .login-header-inner { width: calc(100% - 48px); }
    .login-layout { width: min(460px, calc(100% - 48px)); grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 30px 0 36px; }
    .login-intro { padding: 0; text-align: center; }
    .login-eyebrow, .login-intro-description, .login-services, .login-illustration, .login-benefits { display: none; }
    .login-intro h1 { font-size: 24px; line-height: 1.6; letter-spacing: 0; font-weight: 600; }
    .login-intro h1 br { display: none; }
    .login-intro h1 span { margin-left: 2px; }
    .login-main { background: radial-gradient(ellipse at top, #e0ecff 0%, #f3f7ff 70%); }
    .login-card { padding: 30px 34px 24px; }
    .login-card-description { margin-bottom: 23px; }
    .login-footer { padding: 16px 24px; }
}
@media (max-width: 480px) {
    .login-header { height: 64px; }
    .login-header-inner { width: calc(100% - 36px); gap: 12px; }
    .login-brand { gap: 0; }
    .login-brand img { max-width: 132px; max-height: 30px; }
    .login-brand-divider, .login-brand-caption { display: none; }
    .login-home { font-size: 12px; gap: 5px; }
    .login-layout { width: calc(100% - 32px); gap: 16px; padding: 20px 0 22px; }
    .login-intro h1 { font-size: 21px; }
    .login-card { padding: 24px 23px 20px; border-radius: 12px; }
    .login-card h2 { font-size: 25px; }
    .login-card-description { font-size: 12px; margin-bottom: 21px; }
    .login-field { margin-bottom: 17px; }
    .login-field input { font-size: 16px; }
    .login-captcha-image { flex-basis: 108px; }
    .login-captcha-row { gap: 9px; }
    .login-register { margin: 17px 0 18px; }
    .login-terms br { display: block; }
    .login-footer { font-size: 10px; padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
