:root{
  --ink:#1f2e38;
  --muted:#687782;
  --line:#d8e0e5;
  --paper:#ffffff;
  --canvas:#edf1f3;
  --charcoal:#20272d;
  --charcoal-2:#2a343c;
  --blue:#245f80;
  --blue-dark:#174963;
  --blue-soft:#eaf3f7;
  --green:#2f7c67;
  --red:#b33a31;
  --shadow:0 22px 70px rgba(17,29,38,.18);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--canvas)}
body{min-height:100vh}
button,input{font:inherit}
button{cursor:pointer}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(430px,1.06fr) minmax(440px,.94fr)}
.brand-panel{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:46px 56px;color:#fff;background:
  radial-gradient(circle at 83% 18%,rgba(72,137,166,.35),transparent 25%),
  linear-gradient(145deg,var(--charcoal),var(--charcoal-2) 64%,#1d303b)}
.brand-panel:before{content:"";position:absolute;inset:0;opacity:.17;background-image:
  linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px);
  background-size:44px 44px;mask-image:linear-gradient(135deg,#000,transparent 75%)}
.brand-panel:after{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(255,255,255,.09);border-radius:50%;right:-190px;bottom:-180px;box-shadow:0 0 0 62px rgba(255,255,255,.025),0 0 0 124px rgba(255,255,255,.02)}
.brand-top,.brand-copy,.signal-grid,.brand-foot{position:relative;z-index:1}
.brand-top{display:flex;align-items:center;gap:13px}
.brand-top strong{display:block;font-size:17px;letter-spacing:.025em}
.brand-top small{display:block;margin-top:3px;color:#b9c7cf;font-size:11px}
.brand-symbol,.splash-mark{display:flex;align-items:flex-end;gap:3px;width:34px;height:34px;padding:7px;border:1px solid rgba(255,255,255,.24);border-radius:7px;background:rgba(255,255,255,.07)}
.brand-symbol span,.splash-mark span{display:block;flex:1;background:#77afc4;border-radius:1px}
.brand-symbol span:nth-child(1),.splash-mark span:nth-child(1){height:42%}
.brand-symbol span:nth-child(2),.splash-mark span:nth-child(2){height:72%}
.brand-symbol span:nth-child(3),.splash-mark span:nth-child(3){height:100%;background:#fff}
.brand-copy{max-width:670px;margin:auto 0}
.demo-badge{display:inline-block;margin-bottom:20px;padding:5px 10px;border-radius:4px;background:var(--red);font-size:11px;font-weight:700;letter-spacing:.08em}
.brand-copy h1{margin:0;font-size:clamp(34px,4vw,54px);line-height:1.18;letter-spacing:-.035em}
.brand-copy p{max-width:590px;margin:22px 0 0;color:#c7d1d7;font-size:15px;line-height:1.85}
.signal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:36px 0 34px;max-width:620px}
.signal-grid div{padding:12px;border:1px solid rgba(255,255,255,.12);border-radius:5px;background:rgba(255,255,255,.045)}
.signal-grid span{display:block;margin-bottom:8px;color:#cbd5db;font-size:10px}
.signal-grid div:after{content:"";display:block;width:100%;height:3px;background:rgba(255,255,255,.1);border-radius:4px}
.signal-grid i{position:relative;z-index:1;display:block;width:var(--value);height:3px;margin-bottom:-3px;background:#69a6be;border-radius:4px}
.brand-foot{margin:0;color:#91a2ad;font-size:10px;letter-spacing:.03em}
.login-panel{display:flex;flex-direction:column;justify-content:center;padding:52px clamp(38px,7vw,105px) 28px;background:
  linear-gradient(135deg,rgba(255,255,255,.84),rgba(255,255,255,.98)),
  repeating-linear-gradient(135deg,#eef2f4 0,#eef2f4 2px,#f8fafb 2px,#f8fafb 10px)}
.login-card{width:100%;max-width:470px;margin:auto;padding:38px 40px 34px;border:1px solid rgba(207,216,222,.92);border-radius:9px;background:rgba(255,255,255,.96);box-shadow:var(--shadow)}
.login-heading{display:flex;align-items:center;gap:13px}
.login-heading p{margin:0 0 4px;color:var(--blue);font-size:10px;font-weight:700;letter-spacing:.11em}
.login-heading h2{margin:0;font-size:28px;letter-spacing:-.025em}
.secure-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--blue-soft);color:var(--green);font-size:18px;font-weight:800}
.login-intro{margin:16px 0 25px;color:var(--muted);font-size:12px;line-height:1.65}
.field{margin-top:18px}
.field label{display:block;margin-bottom:7px;color:#334650;font-size:11px;font-weight:700}
.field input{width:100%;height:46px;border:1px solid #cbd5db;border-radius:5px;background:#fff;padding:0 13px;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s}
.field input::placeholder{color:#a2acb3}
.field input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,95,128,.12)}
.field.has-error input{border-color:var(--red);box-shadow:0 0 0 3px rgba(179,58,49,.08)}
.field-hint{display:block;margin-top:6px;color:#84919a;font-size:9px}
.field-error{display:block;min-height:14px;margin-top:5px;color:var(--red);font-size:10px}
.password-wrap{position:relative}
.password-wrap input{padding-right:62px}
.password-toggle{position:absolute;right:7px;top:7px;height:32px;border:0;background:transparent;color:var(--blue);font-size:10px;font-weight:700}
.submit-button{display:flex;align-items:center;justify-content:space-between;width:100%;height:48px;margin-top:23px;border:0;border-radius:5px;background:var(--blue);padding:0 17px;color:#fff;font-size:12px;font-weight:700;letter-spacing:.03em;box-shadow:0 7px 18px rgba(36,95,128,.22);transition:background .15s,transform .15s}
.submit-button:hover{background:var(--blue-dark);transform:translateY(-1px)}
.submit-button:focus-visible,.password-toggle:focus-visible{outline:3px solid rgba(36,95,128,.22);outline-offset:2px}
.submit-button:disabled{cursor:wait;opacity:.72;transform:none}
.submit-button i{font-style:normal;font-size:17px}
.login-help{display:flex;justify-content:space-between;gap:18px;margin-top:23px;padding-top:18px;border-top:1px solid #e7ebee;color:#7a8891;font-size:9px;line-height:1.5}
.security-note{white-space:nowrap;color:var(--green)}
.security-note i{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px rgba(47,124,103,.1)}
.messages,.validation-summary{margin:0 0 18px}
.message,.validation-summary{border-left:3px solid var(--red);border-radius:3px;background:#fbefee;padding:10px 12px;color:#7e312c;font-size:11px;line-height:1.55}
.message.success{border-color:var(--green);background:#eaf4f0;color:#245e4f}
.validation-summary strong{display:block;margin-bottom:3px}
.validation-summary ul{margin:3px 0 0;padding-left:18px}
.login-panel footer{display:flex;justify-content:space-between;gap:16px;width:100%;max-width:470px;margin:22px auto 0;color:#8b979f;font-size:9px}
.splash{display:none}
.splash-active body{overflow:hidden}
.splash-active .auth-shell{visibility:hidden}
.splash-active .splash{position:fixed;z-index:100;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--charcoal);color:#fff}
.splash .splash-mark{width:48px;height:48px;padding:9px;margin-bottom:18px}
.splash strong{font-size:20px;letter-spacing:.035em}
.splash p{margin:7px 0 25px;color:#9fb0ba;font-size:11px;letter-spacing:.12em}
.splash-progress{width:170px;height:2px;overflow:hidden;background:rgba(255,255,255,.1)}
.splash-progress i{display:block;width:100%;height:100%;background:#78adc2;transform:translateX(-100%);animation:splash-progress .7s ease-out forwards}
.splash-leaving .splash{opacity:0;transition:opacity .24s ease}
@keyframes splash-progress{to{transform:translateX(0)}}
@media(max-width:900px){
  .auth-shell{grid-template-columns:1fr}
  .brand-panel{min-height:260px;padding:28px 30px}
  .brand-copy{margin:55px 0 15px}.brand-copy h1{font-size:31px}.brand-copy p{display:none}
  .signal-grid,.brand-foot{display:none}
  .login-panel{padding:30px 20px}
}
@media(max-width:520px){
  .brand-panel{min-height:220px}.brand-copy{margin:38px 0 5px}.brand-copy h1{font-size:26px}
  .login-card{padding:29px 23px}.login-panel footer{flex-direction:column;align-items:center;gap:5px}
  .login-help{flex-direction:column;gap:8px}.security-note{white-space:normal}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
