:root {
  --navy: #123f47; --navy-deep: #0b2f35; --ink: #15373d; --muted: #6e8283;
  --canvas: #e8f0ef; --line: rgba(61, 112, 111, .19); --accent: #c69255; --teal: #285f5d;
  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-display: "Noto Serif SC", "STSong", "SimSun", serif;
  font-family: var(--font-sans); color: var(--ink); text-rendering: optimizeLegibility; font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--canvas); }
button, input { font: inherit; } button { cursor: pointer; }
.login-background { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 12% 14%, rgba(134, 194, 188, .43), transparent 29%), radial-gradient(circle at 92% 84%, rgba(224, 186, 138, .38), transparent 31%), linear-gradient(130deg, #e5efee 0%, #f5f7f2 49%, #f4ede3 100%); }
.login-background::before { content: ""; position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(53, 103, 117, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 103, 117, .055) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 86%); }
.login-glow { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .48; animation: drift 16s ease-in-out infinite alternate; }.glow-one { width: 280px; height: 280px; left: 2%; top: 58%; background: rgba(174, 219, 231, .33); }.glow-two { width: 360px; height: 360px; right: 2%; top: 8%; background: rgba(224, 193, 159, .22); animation-delay: -6s; }.glow-three { width: 120px; height: 120px; left: 52%; top: 6%; background: rgba(255,255,255,.78); animation-delay: -11s; }
.login-star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 4px rgba(255,255,255,.9); opacity: .72; }.star-one { left: 9%; top: 24%; }.star-two { right: 14%; top: 38%; width: 3px; height: 3px; }.star-three { left: 65%; bottom: 16%; width: 3px; height: 3px; }
.login-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; width: min(1180px, calc(100% - 48px)); min-height: 700px; margin: 44px auto; overflow: hidden; border: 1px solid rgba(255,255,255,.76); border-radius: 30px; box-shadow: 0 34px 90px rgba(24,54,66,.18), 0 8px 30px rgba(24,54,66,.07); background: rgba(248,251,252,.6); backdrop-filter: blur(18px); }
.brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 700px; padding: 45px 50px 35px; overflow: hidden; color: #edf7f4; background: linear-gradient(145deg, rgba(9,42,47,.99), rgba(25,78,77,.97) 60%, rgba(47,94,91,.94)); }
.brand-panel::before { content: ""; position: absolute; width: 520px; height: 520px; right: -210px; bottom: -230px; border: 1px solid rgba(240,225,204,.22); border-radius: 50%; box-shadow: 0 0 0 34px rgba(240,225,204,.045), 0 0 0 90px rgba(240,225,204,.035), 0 0 0 160px rgba(240,225,204,.026); }
.brand-panel::after { content: ""; position: absolute; inset: 0; opacity: .13; background: linear-gradient(120deg, transparent 18%, rgba(255,255,255,.4) 48%, transparent 62%); transform: translateX(-110%); animation: sheen 10s ease-in-out infinite; }
.brand-topline, .brand-content, .brand-footer { position: relative; z-index: 1; }.brand-topline { display: flex; gap: 10px; align-items: center; color: #b9d4d7; font-size: 12px; font-weight: 750; letter-spacing: .23em; }.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(217,169,121,.17), 0 0 18px rgba(217,169,121,.55); }
.brand-content { margin-top: auto; margin-bottom: auto; padding: 74px 0 55px; }.brand-kicker, .eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 750; letter-spacing: .2em; color: var(--accent); }.brand-content h1 { margin: 0; font-family: var(--font-display); font-size: clamp(58px, 7vw, 92px); line-height: .97; letter-spacing: -.085em; font-weight: 700; }.brand-content h1 em { color: #cde5e7; font-style: normal; }.brand-lede { max-width: 350px; margin: 28px 0 50px; color: #bad0d3; font-size: 16px; line-height: 1.8; }.feature-list { display: grid; gap: 19px; max-width: 420px; }.feature-item { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }.feature-index { padding-top: 2px; color: var(--accent); font-size: 11px; letter-spacing: .12em; }.feature-item strong { display: block; margin-bottom: 4px; font-size: 14px; letter-spacing: .08em; }.feature-item p { margin: 0; color: #a7c3c7; font-size: 12px; line-height: 1.7; }.brand-footer { display: flex; align-items: center; gap: 13px; color: #8eb1b7; font-size: 11px; letter-spacing: .08em; }.footer-line { width: 34px; height: 1px; background: rgba(217,169,121,.65); }
.login-panel { display: grid; place-items: center; min-width: 0; padding: 48px 42px; background: rgba(250,252,252,.78); }.login-panel-inner { width: min(100%, 370px); min-width: 0; }.login-heading { position: relative; margin-bottom: 32px; }.login-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 30px; border: 1px solid rgba(46,101,117,.16); border-radius: 15px; color: var(--teal); font-size: 14px; font-weight: 800; letter-spacing: .08em; background: linear-gradient(145deg, #fff, #e9f2f4); box-shadow: 0 10px 20px rgba(46,101,117,.1); }.login-heading .eyebrow { color: var(--teal); margin-bottom: 10px; }.login-heading h2 { margin: 0 0 10px; color: var(--ink); font-size: 32px; letter-spacing: -.055em; }.login-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }.login-status { min-height: 0; margin: -14px 0 14px; color: #ac644a; font-size: 12px; line-height: 1.6; }.login-status:empty { display: none; }
.account-list { display: grid; gap: 12px; min-width: 0; max-height: 315px; overflow: auto; padding: 3px 4px 5px 2px; scrollbar-width: thin; scrollbar-color: rgba(46,101,117,.25) transparent; }.account-card { position: relative; display: grid; grid-template-columns: 45px minmax(0, 1fr) 18px; gap: 13px; align-items: center; width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); text-align: left; background: rgba(255,255,255,.7); box-shadow: 0 7px 20px rgba(46,101,117,.045); transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease; }.account-card:hover, .account-card:focus-visible { transform: translateY(-2px); border-color: rgba(46,101,117,.42); background: #fff; box-shadow: 0 12px 28px rgba(46,101,117,.13); outline: none; }.account-avatar { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, var(--teal), var(--navy)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 7px 15px rgba(46,101,117,.18); font-size: 15px; font-weight: 800; letter-spacing: .07em; }.account-copy { min-width: 0; }.account-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.account-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }.account-arrow { color: #91aab2; font-size: 18px; transition: transform .2s ease; }.account-card:hover .account-arrow { transform: translateX(3px); color: var(--teal); }.empty-account { padding: 25px 15px; border: 1px dashed rgba(83,128,143,.26); border-radius: 14px; color: var(--muted); text-align: center; font-size: 13px; }
.account-skeleton { display: grid; grid-template-columns: 45px 1fr; gap: 13px; align-items: center; padding: 14px 16px; border: 1px solid rgba(83,128,143,.12); border-radius: 15px; background: rgba(255,255,255,.5); }.account-skeleton span { height: 11px; border-radius: 9px; background: linear-gradient(90deg, #e4eef0, #f8fbfc, #e4eef0); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }.account-skeleton span:first-child { width: 45px; height: 45px; border-radius: 13px; grid-row: span 2; }.account-skeleton span:last-child { width: 46%; }
.new-workspace { display: flex; justify-content: center; align-items: center; gap: 7px; width: 100%; min-height: 48px; margin-top: 21px; border: 1px dashed rgba(46,101,117,.34); border-radius: 14px; color: var(--teal); font-size: 13px; font-weight: 700; background: rgba(255,255,255,.32); transition: border-color .2s ease, background .2s ease, transform .2s ease; }.new-workspace span { color: var(--accent); font-size: 20px; line-height: 0; }.new-workspace:hover, .new-workspace:focus-visible { border-color: var(--teal); background: rgba(255,255,255,.75); transform: translateY(-1px); outline: none; }.local-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 24px 0 0; color: #8ba1a8; font-size: 11px; }.lock-mark { color: var(--accent); font-size: 14px; }
.login-dialog { width: min(430px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(255,255,255,.85); border-radius: 22px; color: var(--ink); background: rgba(249,252,252,.97); box-shadow: 0 32px 80px rgba(16,40,50,.24); }.login-dialog::backdrop { background: rgba(16,40,50,.44); backdrop-filter: blur(5px); }.login-dialog form { padding: 28px; }.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.dialog-heading h3 { margin: 0; font-size: 22px; letter-spacing: -.04em; }.dialog-heading .eyebrow { margin-bottom: 8px; color: var(--teal); }.dialog-close { width: 31px; height: 31px; border: 0; border-radius: 9px; color: #6c8992; font-size: 22px; line-height: 1; background: #edf4f5; }.dialog-close:hover { background: #e0edef; }.dialog-copy { margin: 18px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }.login-dialog label { display: block; color: #466570; font-size: 12px; font-weight: 700; }.login-dialog label span { color: #be7657; }.login-dialog input { width: 100%; height: 45px; margin-top: 9px; padding: 0 13px; border: 1px solid rgba(83,128,143,.25); border-radius: 11px; color: var(--ink); outline: none; background: #fff; }.login-dialog input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(46,101,117,.1); }.dialog-error { min-height: 18px; margin: 9px 0 0; color: #b7654e; font-size: 12px; }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }.dialog-actions button { min-height: 40px; padding: 0 15px; border: 1px solid rgba(83,128,143,.2); border-radius: 10px; color: #56727a; background: #f6f9fa; }.dialog-actions .dialog-primary { border-color: var(--teal); color: #fff; background: linear-gradient(135deg, var(--teal), var(--navy)); box-shadow: 0 7px 15px rgba(46,101,117,.18); }
.compact-heading { margin-bottom: 23px; }.compact-heading .login-symbol { margin-bottom: 23px; }.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 20px; padding: 4px; border: 1px solid rgba(83,128,143,.16); border-radius: 13px; background: rgba(225,237,240,.58); }.auth-tab { min-height: 39px; border: 0; border-radius: 9px; color: #718b94; font-size: 13px; font-weight: 750; background: transparent; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }.auth-tab.active { color: var(--navy); background: rgba(255,255,255,.94); box-shadow: 0 5px 13px rgba(46,101,117,.1); }.auth-form { display: grid; gap: 14px; }.auth-form[hidden] { display: none; }.auth-form label { display: grid; gap: 7px; color: #466570; font-size: 12px; font-weight: 750; }.auth-form input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid rgba(83,128,143,.25); border-radius: 11px; color: var(--ink); outline: none; background: rgba(255,255,255,.9); transition: border-color .2s ease, box-shadow .2s ease; }.auth-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(46,101,117,.1); }.auth-row { display: flex; justify-content: flex-end; margin-top: -5px; }.text-button { padding: 0; border: 0; color: var(--teal); font-size: 12px; background: transparent; }.text-button:hover { text-decoration: underline; }.auth-primary { min-height: 48px; margin-top: 2px; border: 1px solid var(--teal); border-radius: 12px; color: #fff; font-weight: 780; letter-spacing: .04em; background: linear-gradient(135deg, var(--teal), var(--navy)); box-shadow: 0 10px 20px rgba(46,101,117,.18); transition: transform .2s ease, box-shadow .2s ease; }.auth-primary:hover { transform: translateY(-1px); box-shadow: 0 13px 24px rgba(46,101,117,.23); }.auth-primary:disabled { cursor: wait; opacity: .7; transform: none; }.login-dialog label + label { margin-top: 15px; }.recovery-content { padding: 30px; }.recovery-content h3 { margin: 0; font-size: 24px; }.recovery-dialog code { display: block; overflow-wrap: anywhere; margin: 8px 0 4px; padding: 16px; border: 1px solid rgba(217,169,121,.42); border-radius: 12px; color: var(--navy); text-align: center; font-size: 17px; font-weight: 800; letter-spacing: .08em; background: #fffaf4; user-select: all; }.recovery-dialog .dialog-error { color: var(--teal); }
.remember-row { justify-content: space-between; align-items: center; gap: 16px; }
.remember-choice { display: inline-flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; margin: 0 !important; color: #56727a !important; font-weight: 650 !important; cursor: pointer; }
.remember-choice input { width: 17px !important; height: 17px !important; margin: 0; accent-color: var(--teal); }
.mode-entry { display: block; margin-top: 16px; color: var(--teal); text-align: center; font-size: 12px; font-weight: 750; text-decoration: none; }
.mode-entry:hover { text-decoration: underline; }
.login-status:not(:empty) { padding: 10px 12px; border: 1px solid rgba(217,169,121,.34); border-radius: 10px; background: #fff8ee; }
.login-status[data-kind="error"] { color: #a34444; border-color: #efc5c1; background: #fff0ef; }
.login-status[data-kind="info"] { color: #735a24; border-color: #ead8ad; background: #fff8e9; }
.auth-form[aria-busy="true"] { opacity: .78; }
@keyframes drift { from { transform: translate3d(-12px, 0, 0) scale(1); } to { transform: translate3d(20px, -18px, 0) scale(1.08); } } @keyframes sheen { 0%, 58% { transform: translateX(-110%); } 80%, 100% { transform: translateX(110%); } } @keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 850px) { .login-shell { grid-template-columns: 1fr; width: min(620px, calc(100% - 28px)); min-height: 0; margin: 20px auto; }.brand-panel { min-height: 380px; padding: 30px 31px 25px; }.brand-content { padding: 45px 0 30px; }.brand-content h1 { font-size: clamp(54px, 15vw, 78px); }.brand-lede { margin: 20px 0 28px; }.feature-list { gap: 12px; }.feature-item p { display: none; }.login-panel { min-height: 480px; padding: 42px 27px; } }
@media (max-width: 480px) { .login-shell { width: calc(100% - 20px); margin: 10px auto; border-radius: 22px; }.brand-panel { min-height: 242px; padding: 23px 23px 18px; }.brand-content { padding: 27px 0 14px; }.brand-content h1 { font-size: 46px; line-height: .92; }.brand-lede { max-width: 300px; margin: 15px 0 0; font-size: 13px; line-height: 1.65; }.feature-list { display: none; }.brand-footer { gap: 9px; font-size: 9px; }.footer-line { width: 22px; }.login-panel { min-height: auto; padding: 30px 19px 36px; }.compact-heading { margin-bottom: 20px; }.compact-heading .login-symbol { margin-bottom: 18px; }.login-heading h2 { font-size: 29px; }.account-list { max-height: 260px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
