/* ============================================================
   竞赛通 · 选手端 / 实施端共用样式
   流程条、独立登录页、角色标识
   ============================================================ */

/* ---------- 流程条 ---------- */
.split-flow {
  display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; overflow-x: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 10px; margin-bottom: 14px; box-shadow: var(--sh-1);
  scrollbar-width: thin;
}
.split-flow::-webkit-scrollbar { height: 4px; }
.split-flow::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.sf-step {
  display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px;
  white-space: nowrap; cursor: pointer; border: 1px solid transparent; min-width: 0;
}
.sf-step:hover { background: var(--surface-2); }
.sf-step i {
  width: 19px; height: 19px; flex: 0 0 19px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-style: normal; font-weight: 650; background: var(--surface-3); color: var(--muted);
}
.sf-step b { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.sf-step span { font-size: 10px; color: var(--muted); }
.sf-step.done i { background: var(--teal-600); color: #fff; }
.sf-step.done b { color: var(--text); }
.sf-step.on { background: var(--brand-50); border-color: #c7ddff; }
.sf-step.on i { background: var(--brand-600); color: #fff; }
.sf-step.on b { color: var(--brand-800); }
.sf-sep { align-self: center; width: 14px; height: 1px; background: var(--border-strong); flex: 0 0 14px; }
.sf-step.done + .sf-sep { background: #5eead4; }

/* ---------- 独立登录页 ---------- */
.sp-login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface-2); }
.sp-brand {
  position: relative; overflow: hidden; color: #fff; padding: 46px 52px;
  background: radial-gradient(900px 500px at 15% 10%, #1e3a8a 0%, #0b1836 55%, #071024 100%);
  display: flex; flex-direction: column;
}
.sp-brand::before {
  content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.55), rgba(37,99,235,0) 70%);
}
.sp-brand::after {
  content: ""; position: absolute; left: -80px; bottom: -120px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.35), rgba(13,148,136,0) 70%);
}
.sp-brand > * { position: relative; z-index: 1; }
.sp-brand-top { display: flex; align-items: center; gap: 11px; }
.sp-logo {
  width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(150deg, #3b82f6, #1d4ed8);
  display: grid; place-items: center; font-size: 18px; font-weight: 700; box-shadow: 0 6px 18px rgba(37,99,235,.4);
}
.sp-brand-name { font-size: 17px; font-weight: 650; letter-spacing: .3px; }
.sp-brand-name small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: 2px; color: #93c5fd; margin-top: 2px; }
.sp-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #bfdbfe; border: 1px solid rgba(147,197,253,.35); border-radius: 20px; padding: 3px 10px; margin-top: 18px; width: max-content; }
.sp-brand h1 { font-size: 30px; line-height: 1.42; font-weight: 300; margin: 30px 0 0; letter-spacing: .5px; }
.sp-brand h1 em { font-style: normal; font-weight: 700; color: #7dd3fc; }
.sp-brand p { font-size: 12.5px; line-height: 1.95; color: #bfdbfe; margin-top: 16px; max-width: 460px; }
.sp-brand-steps { margin-top: 28px; display: grid; gap: 10px; max-width: 440px; }
.sp-bs { display: flex; gap: 10px; align-items: flex-start; font-size: 11.5px; color: #dbeafe; }
.sp-bs i { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; background: rgba(59,130,246,.25); border: 1px solid rgba(147,197,253,.35); display: grid; place-items: center; font-style: normal; font-size: 9.5px; color: #93c5fd; }
.sp-bs b { display: block; font-weight: 600; color: #fff; font-size: 11.5px; margin-bottom: 1px; }
.sp-bs span { color: #bfdbfe; }
.sp-brand-foot { margin-top: auto; padding-top: 30px; font-size: 10.5px; color: #93c5fd; line-height: 1.8; }

.sp-panel { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.sp-card { width: 100%; max-width: 392px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 18px 50px rgba(15,23,42,.08); }
.sp-card h2 { font-size: 19px; font-weight: 650; letter-spacing: .2px; }
.sp-card .sp-sub { font-size: 11.5px; color: var(--muted); line-height: 1.8; margin: 6px 0 18px; }
.sp-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 9px; padding: 3px; margin-bottom: 16px; }
.sp-tabs button { border: 0; background: transparent; border-radius: 7px; padding: 7px 0; font-size: 12px; color: var(--muted); font-weight: 600; cursor: pointer; }
.sp-tabs button.on { background: #fff; color: var(--brand-700); box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.sp-field { margin-bottom: 12px; }
.sp-field label { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.sp-field input, .sp-field select {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 9px; padding: 9px 11px;
  font-size: 12.5px; outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.sp-field input:focus, .sp-field select:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.sp-field .sp-hint { font-size: 10px; color: var(--muted); margin-top: 4px; }
.sp-code { display: flex; gap: 8px; }
.sp-code input { flex: 1; }
.sp-code button { flex: 0 0 auto; border: 1px solid var(--border-strong); background: #fff; border-radius: 9px; padding: 0 12px; font-size: 11.5px; color: var(--brand-700); cursor: pointer; }
.sp-code button:disabled { color: var(--muted-2); cursor: default; }
.sp-error { font-size: 10.5px; color: var(--red-600); min-height: 15px; margin: 2px 0 8px; }
.sp-submit { width: 100%; border: 0; border-radius: 9px; padding: 11px 0; font-size: 13px; font-weight: 650; color: #fff; background: linear-gradient(180deg, #3b82f6, #2563eb); cursor: pointer; box-shadow: 0 6px 16px rgba(37,99,235,.3); }
.sp-submit:hover { filter: brightness(1.04); }
.sp-quick { margin-top: 11px; width: 100%; border: 1px dashed #9dc2fb; background: var(--brand-50); color: var(--brand-800); border-radius: 9px; padding: 9px 0; font-size: 11.5px; cursor: pointer; }
.sp-foot { margin-top: 13px; font-size: 10px; color: var(--muted); text-align: center; line-height: 1.8; }
.sp-note { margin-top: 12px; padding: 9px 11px; border-radius: 8px; background: #fffbeb; border: 1px solid #fde3ae; color: #92400e; font-size: 10.5px; line-height: 1.75; }
.sp-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.sp-role { border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 9px; font-size: 11px; cursor: pointer; color: var(--text-2); text-align: center; }
.sp-role.on { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
.sp-login-foot { margin-top: 18px; padding-top: 13px; border-top: 1px dashed var(--border); font-size: 10px; color: var(--muted); line-height: 1.8; }

/* ---------- 角色标识 ---------- */
.sp-role-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #1d4ed8; background: var(--brand-50); border: 1px solid #c7ddff; border-radius: 20px; padding: 2px 8px; }
.sp-role-tag.purple { color: #6d28d9; background: #f5f3ff; border-color: #ddd6fe; }
.sp-role-tag.teal { color: #0f766e; background: #f0fdfa; border-color: #99f6e4; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .sp-login { grid-template-columns: 1fr; }
  .sp-brand { padding: 26px 22px 24px; }
  .sp-brand h1 { font-size: 22px; margin-top: 18px; }
  .sp-brand p { font-size: 11.5px; margin-top: 10px; }
  .sp-brand-steps { display: none; }
  .sp-brand-foot { display: none; }
  .sp-panel { padding: 18px 14px 32px; align-items: flex-start; }
  .sp-card { max-width: none; padding: 20px 16px 18px; }
  .split-flow { margin-bottom: 11px; padding: 7px 8px; }
  .sf-step { padding: 4px 7px; }
  .sf-step span { display: none; }
  .sf-sep { width: 8px; flex: 0 0 8px; }
}
