/* 登录页 · 与工作台/能力中心同一「纸与朱红」视觉（2026-11-06） */
:root {
  --paper: #faf9f4;
  --ink: #1b1d19;
  --ink-2: #4b4e45;
  --muted: #5f635a; /* avoid-ai-design-ignore: C9 (muted 用在纸白卡片，不落在深色 body) */
  --line: #d7d6cc;
  --accent: #9b2f2f;
  --accent-d: #7c2323;
  --danger: #a33131;
  --font: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei",
          "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Source Han Serif SC",
           "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: #1b1d19;
}
.login {
  display: flex; justify-content: center; align-items: center;
  height: 100%;
  background-image: url('/assets/login-bg.jpg');
  background-size: cover; background-position: center;
  position: relative;
}
.login::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 22, 17, .38) 0%, rgba(26, 22, 17, .58) 100%),
    radial-gradient(ellipse at 50% 42%, rgba(20, 17, 13, 0) 30%, rgba(20, 17, 13, .38) 100%);
  pointer-events: none;
}
.login-form {
  position: relative; z-index: 1;
  width: 404px; max-width: calc(100vw - 30px);
  padding: 34px 32px 10px;
  background: rgba(250, 249, 244, .97);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 4px;
  box-shadow: 0 26px 70px rgba(12, 10, 7, .38);
}
.login-logo { display: flex; justify-content: center; margin-bottom: 8px; }
.login-logo img { height: 44px; width: auto; filter: none; }
.title {
  margin: 10px auto 22px; text-align: center;
  color: var(--ink); font: 600 21px/1.4 var(--serif); letter-spacing: .1em;
}
.el-form-item { margin-bottom: 18px; }
.el-input { position: relative; width: 100%; display: inline-flex; }
.el-input--large { font-size: 14px; }
.el-input__inner {
  height: 42px; line-height: 42px; width: 100%;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line); border-radius: 4px;
  color: var(--ink); background-color: #fff;
  outline: none; transition: border-color .16s, box-shadow .16s;
  font-size: inherit; font-family: inherit;
}
.el-input__inner:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155, 47, 47, .10);
}
.el-input__inner::placeholder { color: #9a9d93; opacity: 1; }
.el-input__prefix {
  position: absolute; left: 10px; top: 0; height: 42px;
  display: inline-flex; align-items: center; color: var(--muted);
}
.input-icon { height: 22px; width: 15px; fill: #8f9389; }
.code-row .el-input { width: calc(100% - 140px); }
.login-code { width: 33%; height: 42px; float: right; display: flex; justify-content: flex-end; }
.login-code img { cursor: pointer; vertical-align: middle; height: 42px; padding-left: 0; border-radius: 3px; }
.remember {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 20px; color: var(--ink-2); font-size: 13.5px;
  cursor: pointer; user-select: none;
}
.remember input { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }
.el-button {
  display: inline-flex; justify-content: center; align-items: center;
  border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
  font-family: inherit; transition: background-color .14s, border-color .14s;
}
.el-button--primary {
  background-color: var(--accent); border-color: var(--accent); color: #fff;
}
.el-button--primary:hover { background-color: var(--accent-d); border-color: var(--accent-d); }
.el-button--large { height: 42px; padding: 12px 19px; font-size: 14px; }
.login-btn {
  width: 100%; margin-bottom: 20px;
  border-radius: 4px; font-weight: 600; letter-spacing: .16em;
  box-shadow: none; background: var(--accent);
}
.login-btn:hover { transform: none; background: var(--accent-d); }
.login-btn:active { transform: translateY(1px); }
.login-btn.is-loading { opacity: .7; pointer-events: none; }
.el-login-footer {
  height: 40px; line-height: 40px; position: fixed; bottom: 0; width: 100%;
  text-align: center; color: rgba(255, 255, 255, .72);
  font-family: var(--font); font-size: 11.5px; letter-spacing: .14em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.err-msg {
  color: var(--danger); font-size: 13px; font-weight: 600;
  min-height: 20px; margin: -8px 0 12px; text-align: center;
}
.err-msg.shake { animation: errShake .4s ease; }
@keyframes errShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}
@media (max-height: 560px) { .el-login-footer { display: none; } }

/* 认证面板 tab */
.auth-tabs {
  display: flex; gap: 4px; margin: 0 auto 18px; width: 100%;
  background: #f0efe8; border-radius: 6px; padding: 3px;
}
.auth-tabs[hidden] { display: none; }
.auth-tab {
  flex: 1; background: transparent; color: var(--muted); border: none;
  border-radius: 4px; padding: 8px 0; font-size: 13px; cursor: pointer;
  transition: background-color .15s, color .15s; font-family: inherit;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.active { background: var(--accent); color: #fff; font-weight: 600; box-shadow: none; }
.auth-panel[hidden] { display: none; }
#captchaRow[hidden] { display: none; }
.field-tip {
  font-size: 11.5px; color: var(--muted); line-height: 1.7;
  background: #f0efe8; border-left: 2px solid var(--line);
  padding: 8px 10px; border-radius: 0 4px 4px 0; margin-bottom: 14px;
}
/* hidden 属性兜底(防类选择器 display 覆盖) */
[hidden] { display: none !important; }
