:root { color-scheme: light; --primary: #409eff; --text: #1e293b; --muted: #64748b; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: radial-gradient(ellipse at 12% 12%, #eaf3ff 0, transparent 48%), radial-gradient(ellipse at 95% 95%, #edf4ff 0, transparent 46%), #f5f7fa; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, input[type='checkbox'] { cursor: pointer; }
svg { display: block; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.login-shell { display: grid; grid-template-columns: 1fr 1.04fr; width: 100%; max-width: 1000px; min-height: 652px; overflow: hidden; background: white; border: 1px solid #e6edf5; border-radius: 20px; box-shadow: 0 24px 80px -20px #24538421, 0 4px 16px #24538405; }
.brand-panel { position: relative; display: flex; flex-direction: column; padding: 34px 38px 27px; overflow: hidden; background: linear-gradient(155deg, #60a5fa 0%, #4096f5 52%, #3b82f6 100%); color: #fff; }
.brand-panel::before, .brand-panel::after { position: absolute; content: ''; width: 360px; height: 360px; border-radius: 50%; border: 1px solid #ffffff12; pointer-events: none; }
.brand-panel::before { right: -210px; top: -160px; box-shadow: 0 0 0 58px #ffffff05, 0 0 0 118px #ffffff04; }
.brand-panel::after { left: -260px; bottom: -190px; width: 450px; height: 450px; box-shadow: 0 0 0 52px #ffffff04; }
.brand { display: flex; align-items: center; gap: 11px; position: relative; font-size: 20px; font-weight: 600; letter-spacing: .5px; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff40; border-radius: 11px; background: #ffffff14; }
.brand-icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
.brand-content { position: relative; flex: 1; margin-top: 49px; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 2px; color: #e9f4ff; }
.eyebrow span { width: 5px; height: 5px; border-radius: 50%; background: #d8edff; }
h1 { margin: 15px 0 15px; font-size: 32px; line-height: 1.48; letter-spacing: 1px; font-weight: 600; }
.brand-description { margin: 0; font-size: 13px; line-height: 1.9; color: #e4efff; }
.mail-preview { margin-top: 31px; padding: 16px 16px 0; width: 100%; background: #fff; color: var(--text); border: 1px solid #ffffffd9; border-radius: 12px; box-shadow: 0 14px 30px #1759b51c; transform: rotate(-1.5deg); }
.preview-header { display: flex; align-items: center; justify-content: space-between; }
.preview-title { font-weight: 600; font-size: 12px; }
.preview-dots { display: flex; gap: 4px; }
.preview-dots i { width: 3px; height: 3px; background: #cbd5e1; border-radius: 50%; }
.preview-toolbar { display: flex; align-items: center; gap: 7px; margin: 12px 0 5px; }
.preview-search { display: flex; align-items: center; gap: 5px; height: 25px; flex: 1; border: 1px solid #e8edf3; border-radius: 4px; padding: 0 7px; color: #a0acba; font-size: 8px; }
.preview-search svg { height: 10px; width: 10px; }
.preview-add { display: grid; place-items: center; width: 25px; height: 25px; background: #409eff; border-radius: 4px; color: white; font-size: 17px; font-weight: 300; }
.preview-row { display: flex; align-items: center; gap: 9px; height: 47px; border-bottom: 1px solid #f0f3f7; }
.preview-row:last-of-type { border: 0; }
.preview-avatar { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; }
.preview-avatar svg { width: 17px; height: 17px; stroke-width: 1.4; }
.avatar-blue { color: #409eff; background: #edf5ff; }
.avatar-purple { color: #9181dd; background: #f4f1ff; }
.avatar-green { color: #45af97; background: #eefaf6; }
.preview-lines { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 25px; }
.preview-lines i { display: block; width: 87%; max-width: 92px; height: 5px; background: #dfe7f0; border-radius: 4px; }
.preview-lines i + i { width: 58%; max-width: 60px; height: 4px; background: #eff3f8; }
.preview-tag { font-size: 7px; line-height: 17px; padding: 0 5px; background: #eff6ff; color: #5598e8; border-radius: 3px; white-space: nowrap; }
.tag-purple { background: #f4f1ff; color: #9181dd; }
.tag-green { background: #eefaf6; color: #45af97; }
.preview-check { font-size: 11px; color: #67c23a; margin-left: 3px; }
.preview-note { display: flex; align-items: center; gap: 5px; height: 32px; margin: 0 -16px; padding: 0 16px; background: #f8fafc; border-radius: 0 0 11px 11px; color: #8b9bb0; font-size: 8px; }
.preview-note svg { width: 11px; height: 11px; }
.brand-footer { display: flex; align-items: center; gap: 6px; position: relative; margin-top: 24px; font-size: 10px; color: #e3efff; }
.footer-dot { width: 4px; height: 4px; background: #bbd9ff; border-radius: 50%; }
.form-panel { display: flex; position: relative; flex-direction: column; align-items: center; justify-content: center; padding: 54px 52px 62px; }
.login-content { width: 100%; max-width: 350px; }
.welcome-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 23px; border: 1px solid #e3efff; border-radius: 14px; color: #409eff; background: #f1f7ff; }
.welcome-icon svg { width: 28px; height: 28px; }
h2 { margin: 0 0 9px; color: #1e293b; font-size: 27px; font-weight: 600; letter-spacing: 1px; }
.form-description { margin: 0 0 31px; font-size: 13px; line-height: 1.7; color: #8995a6; }
.field { margin-bottom: 21px; }
.field label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 500; color: #475569; }
.input-wrap { position: relative; display: flex; align-items: center; }
.field-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: #a2aebc; pointer-events: none; transition: color .18s; }
.input-wrap input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid #dfe6ef; border-radius: 7px; background: white; color: #334155; font-size: 13px; outline: none; transition: border-color .18s, box-shadow .18s; }
.input-wrap input::placeholder { color: #b1bac7; }
.input-wrap input:hover { border-color: #b7c8dc; }
.input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #409eff12; }
.input-wrap:focus-within .field-icon { color: var(--primary); }
.input-wrap input[aria-invalid='true'] { border-color: #f56c6c; }
.password-field { margin-bottom: 15px; }
.password-field input { padding-right: 46px; }
.password-toggle { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #94a3b8; }
.password-toggle:hover { background: #f5f8fc; color: #409eff; }
.password-toggle svg { width: 19px; height: 19px; stroke-width: 1.4; }
.form-options { display: flex; align-items: center; justify-content: space-between; min-height: 23px; margin-bottom: 23px; }
.remember-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #64748b; cursor: pointer; user-select: none; }
.remember-label input { width: 14px; height: 14px; margin: 0; accent-color: #409eff; }
.form-error { display: flex; align-items: flex-start; gap: 7px; padding: 10px 11px; margin: -7px 0 16px; color: #d75353; background: #fef0f0; border: 1px solid #fde2e2; border-radius: 6px; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.form-error svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 46px; border: 1px solid #409eff; border-radius: 7px; background: #409eff; box-shadow: 0 5px 12px #409eff25; color: white; font-size: 14px; font-weight: 500; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.submit-button:hover:not(:disabled) { background: #66b1ff; border-color: #66b1ff; box-shadow: 0 6px 16px #409eff36; }
.submit-button:active:not(:disabled) { transform: translateY(1px); background: #338be3; }
.submit-button:disabled { opacity: .7; cursor: wait; }
.button-arrow { width: 17px; height: 17px; margin-left: 2px; }
.button-spinner { width: 15px; height: 15px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.account-help { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 22px 0 0; color: #a0acba; font-size: 11px; }
.account-help svg { width: 14px; height: 14px; stroke-width: 1.3; }
.form-footer { position: absolute; bottom: 25px; margin: 0; color: #b1bac7; font-size: 10px; letter-spacing: .3px; }
button:focus-visible, input[type='checkbox']:focus-visible { outline: 3px solid #b3d8ff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript-message { position: fixed; bottom: 0; left: 0; width: 100%; padding: 14px; margin: 0; background: #fff0d8; color: #8c5c16; text-align: center; font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 880px) { .login-shell { grid-template-columns: .94fr 1.06fr; } .brand-panel { padding: 30px 28px 25px; } .form-panel { padding-right: 34px; padding-left: 34px; } h1 { font-size: 28px; } }
@media (max-width: 680px) { body { padding: 24px 18px; } .login-shell { display: block; max-width: 440px; min-height: 0; border-radius: 16px; } .brand-panel { padding: 21px 26px 23px; } .brand { font-size: 18px; gap: 9px; } .brand-icon { width: 33px; height: 33px; border-radius: 9px; } .brand-icon svg { width: 23px; height: 23px; } .brand-content { margin-top: 19px; } .eyebrow, .mail-preview, .brand-footer { display: none; } h1 { margin: 0 0 8px; font-size: 22px; line-height: 1.45; letter-spacing: .5px; } h1 br { display: none; } .brand-description { font-size: 11px; line-height: 1.8; } .desktop-break { display: none; } .form-panel { padding: 29px 28px 65px; } .welcome-icon { display: none; } h2 { font-size: 23px; } .form-description { margin-bottom: 25px; font-size: 12px; } .field { margin-bottom: 19px; } .password-field { margin-bottom: 15px; } .form-options { margin-bottom: 21px; } .account-help { margin-top: 20px; } .form-footer { bottom: 23px; } }
@media (max-width: 370px) { body { padding: 14px 12px; } .brand-panel { padding-left: 22px; padding-right: 22px; } .form-panel { padding-left: 22px; padding-right: 22px; } h1 { font-size: 20px; } .brand-description { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .button-spinner { animation-duration: 1.5s; } }
