/* Login-only presentation. Shared authentication behavior remains in login.php. */
:root{--primary:#6556db;--primary-2:#5545ca;--primary-rgb:101,86,219;--text:#2b2939;--regular:#5c596b;--muted:#797585;--border:#dfdde9;--soft:#f1f0f6;--card:rgba(255,255,255,.95);--hover:#edeafa;--danger:#b9384f;--success:#248054;--shadow:0 18px 70px #19132925}
html[data-win9-theme="dark"]{--text:#f0eef8;--regular:#d1ccdf;--muted:#b3abc4;--border:#4b445a;--soft:#373040;--card:rgba(36,30,46,.96);--hover:#433651;--primary:#9a89ff;--primary-2:#aa9cff;--danger:#ff9caf;--success:#93d6ae;--shadow:0 18px 70px #09060f50}
*{box-sizing:border-box}
html{min-height:100%;background:#3c394b}
body{margin:0;min-height:100vh;min-height:100svh;color:var(--text);font-family:"Microsoft YaHei UI","PingFang SC","Segoe UI",sans-serif;overflow-x:hidden}
body:before{content:"";position:fixed;inset:0;z-index:-2;background:#3c394b url('/assets/brand/login-wallpaper-20260910.webp') center center/cover no-repeat}
body:after{content:"";position:fixed;inset:0;z-index:-1;background:rgba(31,25,48,.08);pointer-events:none}
html[data-win9-theme="dark"] body:after{background:rgba(14,10,26,.35)}
button,input{font:inherit}
button,a,input{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
.scene{min-height:100vh;min-height:100svh;display:flex;align-items:center;justify-content:center;padding:68px 20px 28px}
.toolbar{position:fixed;right:max(20px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));z-index:5;display:flex;padding:3px;border:1px solid rgba(255,255,255,.36);border-radius:24px;background:var(--card);box-shadow:0 5px 20px #21183715}
.tool-btn{width:42px;height:38px;border:0;border-radius:20px;display:grid;place-items:center;background:transparent;color:var(--text);cursor:pointer}
.tool-btn:hover{background:var(--hover)}
.tool-btn svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-sun{display:none}html[data-win9-theme="dark"] .theme-moon{display:none}html[data-win9-theme="dark"] .theme-sun{display:block}
.login-card{width:400px;max-width:100%;padding:28px 28px 22px;border:1px solid rgba(255,255,255,.6);border-radius:18px;background:var(--card);box-shadow:var(--shadow);position:relative;animation:card-in .24s ease both}
.login-card{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html[data-win9-theme="dark"] .login-card{border-color:#574c684f}
.brand{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;margin-bottom:20px}
.mark{width:48px;height:48px;border-radius:14px;overflow:hidden;background:#fff;padding:2px;box-shadow:0 5px 15px #33225214;flex-shrink:0}
.mark img{width:100%;height:100%;display:block;object-fit:cover;border-radius:12px}
h1{font-size:23px;line-height:1.3;margin:0;font-weight:700;letter-spacing:.2px;overflow-wrap:anywhere}
.seg{display:flex;width:148px;padding:4px;gap:4px;border-radius:10px;background:var(--soft);margin:0 auto 22px}
.seg button{flex:1;min-height:32px;padding:4px 10px;border:0;border-radius:7px;color:var(--muted);background:transparent;font-size:14px;cursor:pointer}
.seg button.active{background:var(--card);color:var(--text);box-shadow:0 2px 5px #21162e0c}
.form{display:none}.form.active{display:block}
.field{margin-bottom:14px}
.field>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.input-wrap{height:44px;display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:7px;background:rgba(255,255,255,.7);padding:0 13px;transition:border-color .15s,box-shadow .15s}
html[data-win9-theme="dark"] .input-wrap{background:#24202e}
.input-wrap:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px rgba(var(--primary-rgb),.1)}
.icon{width:18px;height:18px;flex:0 0 auto;color:var(--muted);stroke-width:1.5}
input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-size:14px;line-height:1.5}
input::placeholder{color:var(--muted)}
.login-options{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 14px;margin:-2px 0 14px}
.check{min-height:30px;display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--regular);user-select:none;cursor:pointer}
.check input{width:14px;height:14px;margin:0;accent-color:var(--primary)}
.primary{width:100%;min-height:44px;border:0;border-radius:8px;background:var(--primary);color:#fff;font-size:15px;font-weight:600;box-shadow:0 4px 12px rgba(var(--primary-rgb),.16);cursor:pointer;transition:background .15s}
.primary:hover{background:var(--primary-2)}
html[data-win9-theme="dark"] .primary{color:#20162f}
.primary:disabled,.quick-login:disabled{opacity:.65;cursor:wait}
.login-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;color:var(--muted);font-size:12px;min-height:24px}
.link{border:0;background:transparent;color:var(--primary);cursor:pointer;font-size:inherit;font-weight:500;padding:4px 0;min-height:28px;text-decoration:none}
.remember-actions{display:grid;gap:8px}.remember-actions:has(.quick-login:not([style*="display: none"]):not([style*="display:none"])){margin-top:10px}
.quick-login,.ghost{width:100%;min-height:40px;border:1px solid var(--border);border-radius:8px;color:var(--primary);background:var(--soft);cursor:pointer;font-size:13px}
.ghost{margin-top:10px;color:var(--regular)}
.remember-profile{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;margin:0 0 20px;border:1px solid var(--border);border-radius:12px;background:var(--soft)}
.remember-profile img{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#fff}
.remember-profile h3{margin:0;font-size:17px;line-height:1.5;overflow-wrap:anywhere}
.remember-profile p{margin:2px 0 0;color:var(--muted);font-size:12px}
.remember-confirm-actions .ghost{background:transparent;border:0}
.helper{text-align:center;font-size:12px;color:var(--muted);margin:12px 0 0}
.step-hint{font-size:13px;line-height:1.75;padding:12px;margin-bottom:16px;background:var(--soft);border-radius:8px;color:var(--regular)}
.toast{position:fixed;left:50%;top:22px;z-index:10000;width:max-content;max-width:calc(100vw - 32px);transform:translate(-50%,-10px);opacity:0;pointer-events:none;border:1px solid var(--border);border-radius:10px;background:var(--card);padding:12px 16px;box-shadow:var(--shadow);color:var(--text);font-size:13px;line-height:1.6;transition:opacity .15s,transform .15s}
.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{color:var(--danger)}.toast.success{color:var(--success)}
.loading-box{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:#eeeaf1;transition:opacity .2s,visibility .2s}
html[data-win9-theme="dark"] .loading-box{background:#272130}
.loading-box.is-hide{opacity:0;visibility:hidden;pointer-events:none}
.loading-container{display:flex;align-items:center;gap:12px;color:var(--regular);font-size:14px}
.loading-element{width:20px;height:20px;border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes card-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:600px){
  body:before{background-position:75% center}
  .scene{padding:64px 18px 24px}
  .toolbar{top:max(12px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right))}
  .login-card{width:360px;padding:24px 24px 18px;border-radius:16px}
  .brand{gap:10px;margin-bottom:16px}.mark{width:42px;height:42px;border-radius:12px}h1{font-size:21px}
  .seg{margin-bottom:18px}.input-wrap{height:44px}.field{margin-bottom:12px}input{font-size:16px}
  .login-options{margin-bottom:12px}.login-footer{margin-top:10px}
}
@media(max-height:600px){.scene{padding-top:58px;padding-bottom:16px}.login-card{padding-top:20px;padding-bottom:18px}.brand{flex-direction:row;justify-content:center;gap:12px;margin-bottom:16px}.mark{width:36px;height:36px}.seg{margin-bottom:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
