:root {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
  --deep: #153a34; --deep2: #1d4a40; --lime: #d7ed9c; --mint: #eef4e8;
  --ink: #173c36; --body: #4a615a; --muted: #8194; --line: #dfe8e1;
  color: #213d38; background: #f2f5f2;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.login-shell { display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(380px, 0.95fr); min-height: 100vh; }

.login-brand { position: relative; padding: 56px clamp(32px, 5vw, 76px); color: #e6f0e7; background: #153a34; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.login-brand::before, .login-brand::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.login-brand::before { width: 560px; height: 560px; right: -220px; top: -180px; border: 1px solid #c9e3a326; }
.login-brand::after { width: 360px; height: 360px; right: -80px; bottom: -120px; border: 1px solid #c9e3a31c; }
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--lime); color: #173c36; }
.brand-mark svg { width: 33px; height: 33px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sail-main, .sail-small { fill: currentColor; stroke: none; }
.sail-small { opacity: .8; }
.brand-type strong { display: block; font-size: 25px; letter-spacing: 5px; color: #fff; font-weight: 600; }
.brand-type small { display: block; margin-top: 2px; font-size: 8px; letter-spacing: 2.2px; color: #9bb8aa; }
.brand-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; font-size: 10px; letter-spacing: 2px; color: #9dbdab; }
.brand-kicker i { width: 20px; height: 1px; background: #7ea08d; }
h1 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.42; letter-spacing: 1px; color: #fff; font-weight: 600; }
h1 em { font-style: normal; color: var(--lime); }
.brand-desc { margin: 0 0 34px; max-width: 420px; font-size: 14px; line-height: 1.85; color: #b9cdbf; }
.brand-points { list-style: none; margin: 0 0 42px; padding: 0; display: grid; gap: 13px; }
.brand-points li { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #cfdfd2; }
.brand-points span { font-size: 9px; letter-spacing: 1px; color: #153a34; background: #c9dfa1; border-radius: 4px; padding: 3px 6px; font-weight: 700; }
.brand-foot { margin: 0; font-size: 10.5px; color: #7f9c8b; }

.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 24px; background: #f6f8f5; }
.login-card { width: min(400px, 100%); padding: 34px 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px #173c360f; }
.login-card h2 { margin: 0 0 8px; font-size: 21px; color: var(--ink); letter-spacing: .5px; }
.login-sub { margin: 0 0 26px; font-size: 12px; color: #8a9a93; }
label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #59716a; }
.field { position: relative; margin-bottom: 18px; }
.field svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: #96a89f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.field input { width: 100%; height: 46px; padding: 0 68px 0 40px; border: 1px solid #dde6de; border-radius: 9px; background: #fbfcfa; font: inherit; font-size: 13.5px; color: var(--ink); transition: border-color .18s, box-shadow .18s, background .18s; }
.field input::placeholder { color: #a9b6ae; }
.field input:hover { border-color: #bdcdc0; }
.field input:focus { outline: none; border-color: #6f9a7f; background: #fff; box-shadow: 0 0 0 3px #dfeadea8; }
.reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: #7c948a; font: inherit; font-size: 11px; cursor: pointer; }
.reveal:hover { background: var(--mint); color: #3f6b55; }
.error { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #fdf1ee; border: 1px solid #f0d5cd; color: #9e4a32; font-size: 12px; line-height: 1.6; }
.submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; margin-top: 4px; border: 0; border-radius: 9px; background: #2b5e4d; color: #f0f7e1; font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: .5px; cursor: pointer; transition: background .18s, transform .18s; }
.submit:hover:not(:disabled) { background: #204e3f; transform: translateY(-1px); }
.submit:disabled { opacity: .6; cursor: progress; }
.submit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-hint { margin: 18px 0 0; font-size: 11px; line-height: 1.7; color: #9aa8a1; }
.login-meta { margin: 0; font-size: 10.5px; letter-spacing: .6px; color: #a3b0a9; }

@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { padding: 34px 26px 30px; justify-content: flex-start; }
  .brand-row { margin-bottom: 26px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-type strong { font-size: 21px; }
  h1 { font-size: 27px; margin-bottom: 10px; }
  .brand-desc { margin-bottom: 20px; font-size: 13px; }
  .brand-points { display: none; }
  .brand-foot { margin-top: 12px; }
  .login-panel { padding: 26px 18px 34px; }
  .login-card { padding: 26px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* —— 登录 / 注册切换 —— */
.auth-tabs { display: flex; gap: 6px; margin: 0 0 22px; padding: 4px; border-radius: 10px; background: #f2f6f0; }
.auth-tab { flex: 1; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #7c948a; font: inherit; font-size: 12.5px; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s; }
.auth-tab:hover { color: #2b5e4d; }
.auth-tab.is-active { background: #fff; color: #23533f; font-weight: 600; box-shadow: 0 1px 4px #173c3612; }
.optional { color: #a9b6ae; font-weight: 400; font-size: 11px; }
.rule { margin: -4px 0 14px; padding: 9px 11px; border-radius: 8px; background: #f5f8f2; border: 1px solid #e3ebe0; color: #6d8377; font-size: 11.5px; line-height: 1.65; }
.rule code { font-family: inherit; color: #3f6b55; }
.register-only[hidden] { display: none; }/* 找回密码（一次性重置码） */
.reset-only[hidden]{display:none}
.reset-tip{margin:0 0 10px;font-size:11px;line-height:1.7;color:#6b7a66}
.reset-step{display:flex;flex-direction:column;gap:2px}
.ghost{width:100%;padding:9px 12px;border:1px dashed rgba(27,113,98,.45);border-radius:8px;background:#f6faf4;color:#1b7162;font-size:11px;cursor:pointer}
.ghost:hover{background:#eef6ea}
.ghost:disabled{opacity:.6;cursor:default}
.login-foot{margin:10px 0 0;display:flex;gap:14px;justify-content:center}
.link-btn{padding:0;border:0;background:none;color:#1b7162;font-size:11px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.link-btn[hidden]{display:none}
form[data-mode="reset"] label[for="password"],
form[data-mode="reset"] #password{display:none}