:root {
  --ink: #14252c;
  --muted: #708087;
  --line: #d8e0e3;
  --paper: #fbfcfc;
  --deep: #132a33;
  --deep-2: #1b3942;
  --mint: #78dec2;
  --mint-dim: #2b736a;
  --blue: #6ca7e8;
  --coral: #f06e5e;
  --focus: #167d85;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; letter-spacing: 0; }
button, input { font: inherit; }
button { cursor: pointer; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 43%) 1fr; }
.login-story { position: relative; overflow: hidden; min-height: 100vh; padding: 34px clamp(34px, 5.2vw, 84px) 30px; display: flex; flex-direction: column; color: #eef9f8; background: var(--deep); }
.login-story::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000 0%, transparent 90%); }
.login-story::after { content: ""; position: absolute; width: min(40vw, 520px); height: min(40vw, 520px); right: -18%; bottom: -29%; border: 1px solid #78dec24d; transform: rotate(25deg); pointer-events: none; }
.story-brand, .story-copy, .workflow, .story-foot { position: relative; z-index: 1; }
.story-brand { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 700; }
.story-brand img { display: block; width: 34px; height: 34px; border-radius: 7px; }
.story-copy { margin: clamp(74px, 15vh, 170px) 0 0; max-width: 500px; }
.story-kicker { margin: 0 0 18px; color: var(--mint); font-family: Consolas, "SFMono-Regular", monospace; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.story-copy h1 { margin: 0; font-size: clamp(34px, 3.5vw, 58px); line-height: 1.21; font-weight: 750; }
.story-copy > p:last-child { max-width: 370px; margin: 21px 0 0; color: #bbcfce; font-size: 15px; line-height: 1.8; }
.workflow { max-width: 470px; margin-top: auto; padding-top: 68px; }
.workflow-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #ffffff2b; color: #b9ccce; font-size: 11px; }
.workflow-heading span:last-child { color: var(--mint); font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; letter-spacing: .12em; }
.workflow ol { margin: 0; padding: 0; list-style: none; }
.workflow li { position: relative; display: grid; grid-template-columns: 38px 1fr 9px; align-items: center; gap: 11px; min-height: 62px; border-bottom: 1px solid #ffffff17; }
.workflow-index { color: #7a9699; font-family: Consolas, "SFMono-Regular", monospace; font-size: 11px; }
.workflow strong, .workflow small { display: block; }
.workflow strong { font-size: 13px; font-weight: 700; }
.workflow small { margin-top: 4px; color: #9bb2b5; font-size: 11px; }
.workflow-dot { width: 8px; height: 8px; border-radius: 50%; }
.workflow-dot.mint { background: var(--mint); box-shadow: 0 0 0 4px #78dec21a; }
.workflow-dot.blue { background: var(--blue); }
.workflow-dot.coral { background: var(--coral); }
.story-foot { display: flex; align-items: center; gap: 8px; margin-top: 25px; color: #8ea6a9; font-size: 11px; }
.story-foot span { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

.login-main { display: grid; place-items: center; min-width: 0; padding: 42px 26px; background: var(--paper); }
.signin-panel { width: min(100%, 420px); }
.mobile-brand { display: none; }
.signin-status { display: flex; align-items: center; gap: 8px; color: var(--mint-dim); font-size: 12px; font-weight: 700; }
.signin-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px #dff6ee; }
.signin-panel h2 { margin: 18px 0 8px; font-size: 30px; line-height: 1.25; font-weight: 750; }
.signin-lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 26px; padding: 4px; border: 1px solid #dce5e5; border-radius: 6px; background: #f2f6f6; }
.auth-tab { height: 34px; border: 0; border-radius: 4px; background: transparent; color: #6b7c81; font-size: 13px; font-weight: 700; }
.auth-tab.active { background: #fff; color: var(--deep); box-shadow: 0 1px 4px #152d3214; }
.auth-tab:focus-visible { outline: 3px solid #78dec299; outline-offset: 2px; }
.signin-panel form { margin-top: 22px; display: grid; gap: 18px; }
.signin-panel form[hidden] { display: none; }
.signin-panel label { display: grid; gap: 8px; color: #43545b; font-size: 12px; font-weight: 700; }
.signin-panel input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 6px; outline: 0; background: #fff; color: var(--ink); padding: 0 13px; font-size: 14px; transition: border-color .16s ease, box-shadow .16s ease; }
.signin-panel input::placeholder { color: #a2afb4; }
.signin-panel input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px #168a9420; }
.login-message { min-height: 17px; margin: -7px 0 -2px; color: #c04840; font-size: 12px; line-height: 1.45; }
.login-message.pending { color: var(--mint-dim); }
.login-submit { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 6px; background: var(--deep); color: #fff; font-size: 14px; font-weight: 700; transition: background .16s ease, transform .16s ease; }
.login-submit:hover { background: var(--deep-2); }
.login-submit:active { transform: translateY(1px); }
.login-submit:focus-visible { outline: 3px solid #78dec299; outline-offset: 3px; }
.login-submit:disabled { cursor: wait; background: #587078; }
.login-submit b { font-size: 19px; font-weight: 400; line-height: 1; }
.signin-note { margin: 24px 0 0; color: #8d9ba0; font-size: 11px; text-align: center; }
.login-download { display:flex; align-items:center; gap:11px; margin-top:19px; padding:12px 13px; border:1px solid #cfe4e1; border-radius:7px; background:#f3faf8; color:var(--deep); text-decoration:none; }.login-download:hover { border-color:var(--focus); background:#eaf7f4; }.login-download-icon { width:29px; height:29px; display:grid; place-items:center; border-radius:6px; background:var(--deep); color:var(--mint); font-size:19px; line-height:1; }.login-download strong,.login-download small { display:block; }.login-download strong { font-size:12px; }.login-download small { margin-top:3px; color:var(--muted); font-size:11px; }

@media (max-width: 800px) {
  .login-shell { display: block; }
  .login-story { display: none; }
  .login-main { min-height: 100vh; padding: 32px 22px; align-items: start; }
  .signin-panel { margin-top: 10vh; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 54px; color: var(--deep); font-size: 14px; font-weight: 700; }
  .mobile-brand img { width: 30px; height: 30px; border-radius: 6px; }
  .signin-panel h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .signin-panel input, .login-submit { transition: none; }
}
