/* 登录页：复用 styles.css 的色板与按钮语言，只补充本页专有布局。 */
.auth-page { background: radial-gradient(1200px 600px at 12% -10%, #eaf3ff 0%, #f4f7fb 45%, #f4f7fb 100%); }
.hidden { display: none !important; }
.auth-shell {
  width: min(1000px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 40px 0;
}
.auth-card {
  padding: 30px 30px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 43, 77, .1);
}
.auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.5px; }
.auth-brand > span:last-child > span { color: var(--blue-dark); }
.auth-card h1 { margin: 0; color: var(--ink); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.auth-subtitle { margin: 6px 0 20px; color: #4a607a; font-size: 14px; line-height: 1.55; }
.auth-panel { margin-top: 16px; }
.auth-label { display: block; margin-bottom: 6px; color: #1d3555; font-size: 13px; font-weight: 650; }
.auth-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c9d7e8;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
}
.auth-input::placeholder { color: #93a4b8; }
.auth-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 119, 248, .13); outline: none; }
.auth-hint { margin: 7px 0 0; color: #5d7088; font-size: 13px; line-height: 1.5; }
.auth-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 16px; }
.auth-code-field { min-width: 0; }
.auth-code-input { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.auth-secondary {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--blue);
  border-radius: 9px;
  color: var(--blue-dark);
  background: #fff;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.auth-secondary:hover:not(:disabled) { color: #fff; background: var(--blue); }
.auth-secondary:disabled { border-color: #cddbeb; color: #8296ac; background: #f4f7fb; cursor: not-allowed; }
.auth-primary {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(22, 119, 248, .22);
}
.auth-primary:hover:not(:disabled) { background: var(--blue-dark); }
.auth-primary:disabled { background: #a9c4e6; box-shadow: none; cursor: not-allowed; }
.auth-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #e6bcb5;
  border-radius: 9px;
  color: #8a3a2f;
  background: #fff7f5;
  font-size: 13px;
  line-height: 1.5;
}
.auth-message.ok { border-color: #cfe4da; color: #2f644f; background: #f1f8f4; }
.auth-devmode {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #eccf9d;
  border-radius: 9px;
  color: #6d4a15;
  background: #fff8e9;
  font-size: 13px;
  line-height: 1.5;
}
.auth-devmode b { font-variant-numeric: tabular-nums; letter-spacing: .18em; }
.auth-foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: #5d7088; font-size: 13px; line-height: 1.55; }
.auth-aside { padding: 8px 0; }
.auth-aside-kicker { margin: 0 0 22px; color: var(--blue-dark); font-size: 13px; font-weight: 700; }
.auth-aside h2 { margin: 0 0 18px; color: var(--ink); font-size: 34px; font-weight: 700; line-height: 1.28; letter-spacing: -.03em; }
.auth-aside-list { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.auth-aside-list li { position: relative; padding-left: 20px; color: #47607d; font-size: 14px; line-height: 1.55; }
.auth-aside-list li::before { position: absolute; top: 8px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); content: ""; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 26px 0; }
  .auth-aside { order: -1; }
  .auth-aside h2 { font-size: 26px; }
  .auth-aside-list { display: none; }
}
@media (max-width: 520px) {
  .auth-shell { width: calc(100% - 24px); padding: 18px 0; }
  .auth-card { padding: 22px 18px 18px; border-radius: 14px; }
  .auth-card h1 { font-size: 21px; }
  .auth-code-row { grid-template-columns: minmax(0, 1fr); }
  .auth-secondary { width: 100%; }
}

/* 下载前登录弹窗：与登录页共用表单类名，这里只补弹窗容器与层级（要盖住向导的 z-index 60）。 */
body.auth-modal-open { overflow: hidden; }
.login-modal { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; }
.login-modal-backdrop { position: absolute; inset: 0; background: rgba(16, 35, 58, .5); }
.login-modal-panel {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 35, 58, .28);
  animation: auth-modal-arrive .18s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes auth-modal-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.login-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.auth-kicker { margin: 0 0 4px; color: var(--blue-dark); font-size: 13px; font-weight: 700; }
.login-modal-head h2 { margin: 0; color: var(--ink); font-size: 20px; font-weight: 700; }
.login-modal-close { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid #dbe5f1; border-radius: 9px; color: #526983; background: #fff; font-size: 18px; line-height: 1; }
.login-modal-close:hover { border-color: #87b5f3; color: var(--blue-dark); background: #f2f7ff; }
.login-modal-reason { margin: 8px 0 16px; padding: 9px 11px; border: 1px solid #d8e8fc; border-radius: 9px; color: #385879; background: #f2f7ff; font-size: 13px; line-height: 1.5; }
.login-modal-foot { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: #5d7088; font-size: 13px; line-height: 1.5; }
@media (max-width: 520px) {
  .login-modal { padding: 0; place-items: stretch; }
  .login-modal-panel { width: 100%; max-height: 100dvh; border: 0; border-radius: 0; padding: 18px 16px; }
}
