/* 登录页 / 申请页 / 初始化页 / 协议页的样式。
   配色沿用组卷网主页面（app.css 里的 CSS 变量），不做手机端适配。 */

.account-body {
  background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ===================== 登录页：左右两栏 ===================== */

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 44%) 1fr;
}

.login-aside {
  background: linear-gradient(150deg, #1e3a8a 0%, #4c1d95 55%, #9d174d 100%);
  color: #fff;
  padding: 58px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.login-logo {
  width: 54px; height: 54px; border-radius: 15px;
  background: rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; margin-bottom: 20px;
}

.login-brand h1 {
  margin: 0 0 8px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.5px;
}

.login-tagline { margin: 0; font-size: 14.5px; opacity: 0.82; line-height: 1.7; }

.login-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }

.login-points li { display: flex; gap: 14px; align-items: flex-start; }

.lp-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}

.login-points strong { display: block; font-size: 14.5px; font-weight: 700; }
.login-points span { display: block; font-size: 12.5px; opacity: 0.74; margin-top: 3px; }

.login-foot-note { margin: 0; font-size: 12.5px; opacity: 0.6; }

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 32px;
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(30, 41, 59, 0.10);
  padding: 30px 40px 34px;
  box-sizing: border-box;
}

.form-title { margin: 0 0 4px; font-size: 21px; font-weight: 800; color: #1e293b; }
.form-sub { margin: 0 0 22px; font-size: 13px; color: #94a3b8; }

/* 屏幕窄的时候左边那栏收起来（不是手机端适配，只是别把表单挤坏） */
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-aside { display: none; }
}

.account-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.account-card {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(30, 41, 59, 0.12);
  padding: 34px 40px 30px;
  box-sizing: border-box;
}

.account-card.wide { max-width: 860px; }

.account-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.5px;
}

.account-sub {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 14px;
}

.account-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.account-switch-btn {
  border: none;
  background: none;
  padding: 9px 4px;
  margin-right: 18px;
  font-size: 15px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
}

.account-switch-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.account-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.account-form input[type="text"],
.account-form input[type="password"],
.account-form select,
.account-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid #d5dbe4;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 400;
  color: #1e293b;
  box-sizing: border-box;
  background: #fff;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

/* 阶段 16：一次性口令那一格占整行（说明文字比较长，挤在半行里读不清） */
.account-wide { grid-column: 1 / -1; }

.field-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
}

.req { color: #e11d48; }

.account-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #475569;
  margin: 6px 0 18px;
}

.account-check input { margin-top: 2px; }

.account-check a { color: #2563eb; text-decoration: none; }
.account-check a:hover { text-decoration: underline; }

.account-primary {
  width: 100%;
  padding: 13px;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #6d28d9 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.08s ease;
}

.account-primary:active { transform: translateY(1px); }

.account-primary:hover { filter: brightness(1.08); }
.account-primary:disabled { background: #94a3b8; filter: none; cursor: default; }

.account-hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.8;
}

.account-hint a { color: #2563eb; text-decoration: none; }
.account-hint a:hover { text-decoration: underline; }

.account-msg {
  margin-top: 16px;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  background: #f1f5f9;
  color: #334155;
  white-space: pre-wrap;
}

.account-msg.bad { background: #fef2f2; color: #b91c1c; }
.account-msg.good { background: #f0fdf4; color: #15803d; }
.account-msg.warn { background: #fffbeb; color: #b45309; }

.account-foot {
  margin-top: 22px;
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  gap: 8px;
  align-items: center;
}

.account-foot a { color: #475569; text-decoration: none; }
.account-foot a:hover { color: #2563eb; text-decoration: underline; }

/* ---- 协议页 ---- */

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  background: #fff;
  min-height: 100vh;
  box-sizing: border-box;
}

.legal-draft-flag {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.legal-body {
  font-size: 14.5px;
  line-height: 1.85;
  color: #1e293b;
}

.legal-body h1 { font-size: 22px; margin: 0 0 16px; }
.legal-body h2 { font-size: 17px; margin: 26px 0 10px; color: #334155; }
.legal-body h3 { font-size: 15px; margin: 18px 0 8px; color: #475569; }
.legal-body ul, .legal-body ol { padding-left: 24px; }
.legal-body li { margin: 4px 0; }
.legal-body p { margin: 10px 0; }
.legal-body code {
  background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 13px;
}

.legal-nav {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 14px;
}

.legal-nav a {
  color: #64748b; text-decoration: none; padding: 5px 12px;
  border-radius: 7px; font-weight: 700;
}
.legal-nav a.active { background: #eff6ff; color: #2563eb; }
.legal-nav a:hover { background: #f1f5f9; }
