:root { color-scheme:light; --ink:#183e42; --muted:#597579; --teal:#137e83; }
* { box-sizing:border-box; letter-spacing:0; }
body { margin:0; min-width:280px; background:#edf7f8; color:var(--ink); font:15px/1.6 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif; }
button,input { font:inherit; }
[hidden] { display:none!important; }
.wash-scene { position:fixed; inset:0; overflow:hidden; background:#a4dfe5; z-index:-1; }
.wash-scene img { width:100%; height:100%; object-fit:cover; object-position:75% 55%; animation:scene-drift 24s ease-in-out infinite alternate; }
.wash-scene::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#f4fafb 0%,rgba(244,250,251,.98) 29%,rgba(244,250,251,.86) 41%,rgba(244,250,251,.1) 63%,rgba(244,250,251,0) 100%); }
.scene-light { position:absolute; inset:-50% -35%; background:linear-gradient(110deg,transparent 45%,rgba(255,255,255,.2) 50%,transparent 55%); animation:light-pass 14s ease-in-out infinite; }
.page-shell { display:flex; flex-direction:column; min-height:100vh; min-height:100svh; padding:36px 64px 24px; }
.brand-header { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.brand { display:inline-flex; align-items:center; gap:12px; text-decoration:none; color:var(--ink); }
.brand img { flex:none; border-radius:8px; }
.brand strong { display:block; font-size:21px; line-height:1.4; font-weight:750; }
.header-caption { font-size:12px; padding:7px 14px; border:1px solid rgba(24,62,66,.2); border-radius:4px; color:#244d51; background:rgba(255,255,255,.65); }
main { flex:1; display:flex; align-items:center; justify-content:space-between; gap:40px; padding:64px 0 72px; }
.login-panel { width:384px; max-width:100%; margin-left:40px; }
.login-heading { animation:rise-in .7s .08s both; }
.section-index { display:flex; align-items:center; gap:16px; font-size:12px; font-weight:600; color:var(--teal); }
.section-index::before { content:""; width:24px; height:2px; background:var(--teal); transition:width .35s ease; }
.login-panel:focus-within .section-index::before { width:48px; }
h1 { margin:17px 0 6px; font-size:42px; line-height:1.35; font-weight:750; }
.heading-dot { color:#e88765; margin-left:5px; }
.login-heading p { margin:0 0 36px; color:var(--muted); font-size:15px; }
.field-group { position:relative; margin-bottom:23px; animation:rise-in .7s .18s both; }
.field-group:nth-child(2) { animation-delay:.27s; }
label { display:block; margin-bottom:9px; color:#36595c; font-size:13px; font-weight:600; }
input { width:100%; min-width:0; height:54px; border:1px solid #c3d5d7; border-radius:6px; padding:0 16px; background:rgba(255,255,255,.88); color:var(--ink); outline:none; box-shadow:0 2px 2px rgba(17,75,80,.015); transition:border-color .2s,box-shadow .2s,background .2s; }
input::placeholder { color:#657d80; font-size:14px; }
input:hover { border-color:#80aaae; }
input:focus { border-color:var(--teal); background:white; box-shadow:0 0 0 3px rgba(19,126,131,.11); }
input[aria-invalid="true"] { border-color:#b84444; }
.caps-hint { position:absolute; top:0; right:0; color:#9b6527; font-size:12px; }
.feedback-slot { min-height:27px; margin-top:-6px; margin-bottom:12px; }
#loginError { margin:0; color:#ad3939; font-size:13px; overflow-wrap:anywhere; }
#loginButton { display:flex; align-items:center; justify-content:center; gap:10px; position:relative; width:100%; min-height:54px; padding:12px 48px; border:1px solid var(--teal); border-radius:6px; color:white; background:var(--teal); cursor:pointer; font-size:15px; font-weight:600; box-shadow:0 6px 16px rgba(19,126,131,.13); transition:background .2s,box-shadow .2s,transform .2s; animation:rise-in .7s .34s both; }
#loginButton:hover:not(:disabled) { background:#10696e; box-shadow:0 8px 22px rgba(19,126,131,.22); transform:translateY(-1px); }
#loginButton:active:not(:disabled) { transform:translateY(0); }
#loginButton:focus-visible,.brand:focus-visible { outline:3px solid #e88765; outline-offset:4px; }
#loginButton:disabled { cursor:wait; background:#468e91; border-color:#468e91; }
.button-arrow { position:absolute; right:20px; font-size:22px; font-weight:400; line-height:1; transition:transform .2s; }
#loginButton:hover .button-arrow { transform:translateX(3px); }
.button-spinner { display:none; width:17px; height:17px; border:2px solid rgba(255,255,255,.35); border-top-color:white; border-radius:50%; animation:spin .8s linear infinite; }
#loginButton[aria-busy="true"] .button-spinner { display:block; }
#loginButton[aria-busy="true"] .button-arrow { opacity:0; }
.account-help { margin:23px 0 0; text-align:center; color:#5d777a; font-size:12px; animation:rise-in .7s .42s both; }
.scene-caption { align-self:flex-end; text-align:right; color:white; text-shadow:0 1px 8px rgba(5,81,94,.3); margin:0 0 2px; animation:rise-in .9s .35s both; }
.scene-caption { font-size:17px; }
footer { display:flex; align-items:center; flex-wrap:wrap; gap:12px; color:#547276; font-size:11px; }
body[data-background="paused"] .wash-scene * { animation-play-state:paused; }
@keyframes rise-in { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
@keyframes scene-drift { from { transform:translate(var(--scene-x,0px),var(--scene-y,0px)) scale(1.04); } to { transform:translate(var(--scene-x,0px),var(--scene-y,0px)) scale(1.08); } }
@keyframes light-pass { 0%,20% { transform:translateX(-35%); opacity:0; } 35% { opacity:1; } 65%,100% { transform:translateX(35%); opacity:0; } }
@keyframes spin { to { transform:rotate(360deg); } }
@media(min-width:1600px) { .page-shell { padding-left:96px; padding-right:96px; } .login-panel { margin-left:64px; } }
@media(max-width:1000px) { .page-shell { padding:28px 36px 22px; } .login-panel { margin-left:0; width:360px; } .wash-scene::after { background:linear-gradient(90deg,#f4fafb 0%,rgba(244,250,251,.96) 32%,rgba(244,250,251,.65) 52%,rgba(244,250,251,.05) 100%); } .scene-caption { max-width:180px; } }
@media(max-width:700px) { .page-shell { padding:24px 24px 20px; } .brand strong { font-size:19px; } .brand img { width:38px; height:38px; } .header-caption { padding:5px 8px; font-size:10px; } .wash-scene img { object-position:70% 10%; } .wash-scene::after { background:linear-gradient(180deg,rgba(244,250,251,.85),#f4fafb 42%,#f4fafb 100%); } main { padding:68px 0 64px; justify-content:center; } .login-panel { width:384px; } h1 { font-size:36px; } .scene-caption { display:none; } footer { justify-content:center; font-size:10px; } }
@media(max-width:360px) { .page-shell { padding:20px 18px; } .header-caption { display:none; } h1 { font-size:32px; } }
@media(max-width:700px) { input { font-size:16px; } }
@media(max-height:650px) and (min-width:701px) { .page-shell { padding-top:22px; } main { padding:32px 0; } .login-heading p { margin-bottom:23px; } }
@media(min-width:1001px) and (hover:hover) and (pointer:fine) { .wash-scene img { animation-duration:16s; } .scene-light { animation-duration:8s; } }
@media(max-width:1000px), (hover:none), (pointer:coarse) { .wash-scene img,.scene-light { animation:none; } .login-heading,.field-group,#loginButton,.account-help,.scene-caption { animation:none; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
/* 拼图使用固定比例；缩小后的滑块位移仍按服务端原图坐标提交。 */
.captcha-box { margin-top:16px; min-width:0; }
.captcha-heading { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:#465d68; }
#captchaRefresh { width:32px; height:32px; padding:0; margin:0; background:transparent; color:#176e86; border:0; font-size:23px; box-shadow:none; }
.captcha-picture { position:relative; width:100%; aspect-ratio:320/140; overflow:hidden; border-radius:6px; background:#e2f2f8; }
#captchaBackground { display:block; width:100%; height:100%; }
#captchaPiece { position:absolute; width:13.125%; height:30%; left:0; top:0; box-shadow:0 1px 5px #0005; }
#captchaSlider { display:block; width:100%; height:36px; padding:0; margin:8px 0 0; accent-color:#127f91; cursor:grab; }
/* 根据可用高度收紧留白，保留完整验证码及错误提示，不裁切登录控件。 */
main { padding:24px 0; }
@media(max-height:900px) {
    .page-shell { padding-top:20px; padding-bottom:16px; }
    main { padding:12px 0; }
    h1 { margin-top:10px; font-size:36px; }
    .login-heading p { margin-bottom:18px; }
    .field-group { margin-bottom:14px; }
    input { height:46px; }
    .captcha-box { margin-top:10px; max-width:320px; }
    .account-help { margin-top:14px; }
}
@media(max-height:800px) {
    .page-shell { padding-top:12px; padding-bottom:12px; }
    .brand img { width:36px; height:36px; }
    main { padding:8px 0; }
    h1 { font-size:28px; margin:6px 0 2px; }
    .login-heading p { margin-bottom:10px; font-size:13px; }
    .field-group { margin-bottom:10px; }
    label { margin-bottom:4px; }
    input { height:40px; }
    .captcha-box { margin-top:6px; max-width:256px; }
    #captchaRefresh { height:28px; }
    #captchaSlider { height:32px; margin-top:4px; }
    .feedback-slot { margin-top:0; margin-bottom:6px; min-height:24px; }
    #loginButton { min-height:44px; padding-top:8px; padding-bottom:8px; }
    .account-help { margin-top:10px; }
}
@media(max-height:650px) {
    main { padding:4px 0; }
    .captcha-box { max-width:224px; }
    .account-help { margin-top:6px; }
}
