/* ===== 海外属地人才评估系统 · 登录门户设计系统 ===== */

/* — Tokens — */
:root {
  --color-primary: #0b2b4a;
  --color-accent: #2d7aff;
  --color-accent-600: #1a66e0;
  --color-text: #1f2a3a;
  --color-text-muted: #6b7b8f;
  --color-border: #d0d7e2;
  --color-bg: #f4f6fa;
  --color-error: #ef4444;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 16px rgba(11, 43, 74, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

/* — Topbar — */
.portal-topbar {
  background: var(--color-primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
}
.portal-brand > div:first-child {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-text-en {
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.55;
  display: block;
  margin-top: 1px;
}

.portal-lang {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
  color: #fff;
  cursor: pointer;
  outline: none;
}
.portal-lang option { color: #1f2a3a; }
.portal-lang:focus { border-color: rgba(255,255,255,0.55); }

/* — Stage — */
.portal-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 62px);
  padding: 40px 24px;
}

/* — Hero Card (首页) — */
.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 48px 44px 42px;
  max-width: 500px;
  width: 100%;
  text-align: center;
}
.hero-card h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.hero-card .line {
  width: 48px; height: 3px;
  background: var(--color-accent);
  margin: 24px auto;
  border-radius: 4px;
}

/* — Portal Card (身份选择/登录表单) — */
.portal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 38px 36px;
  max-width: 500px;
  width: 100%;
}
.portal-card .card-head h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.portal-card .card-head p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.portal-card .card-head .line {
  width: 40px; height: 3px;
  background: var(--color-accent);
  border-radius: 4px;
  margin-bottom: 24px;
}

/* — Role Grid — */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.role-card {
  background: #fff;
  border: 2px solid #e4ecf5;
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.role-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 24px rgba(45,122,255,0.12);
  transform: translateY(-2px);
}
.role-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}
.role-card .icon.blue { background: var(--color-accent); }
.role-card .icon.green { background: #10b981; }
.role-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.role-card .desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

/* — Forms — */
.form-group { margin-bottom: 20px; }
.form-group > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-group .required { color: var(--color-error); margin-left: 2px; }
.form-group input,
.form-group select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit;
  background: #fafcff; color: var(--color-text);
  height: 44px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45,122,255,0.10); background: #fff;
}
.form-group input::placeholder { color: #b5c5d8; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* — Buttons — */
.btn-primary {
  width: 100%;
  padding: 12px 20px;
  border: none; border-radius: var(--radius-md);
  background: var(--color-accent);
  color: #fff;
  font-size: 16px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary.small {
  width: auto; padding: 10px 22px; font-size: 14px;
}

.btn-outline {
  padding: 10px 22px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  font-size: 14px; font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: #f7faff; border-color: var(--color-accent); }

/* — Error — */
.error-msg {
  color: var(--color-error);
  font-size: 13px;
  margin: 10px 0 4px;
  display: none;
  line-height: 1.5;
}
.error-msg.show { display: block; }

/* — Back link — */
.back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--color-text-muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.back-link:hover { color: var(--color-accent); }

/* — Invite row (index) — */
.invite-row {
  display: flex; gap: 10px; align-items: stretch;
}
.invite-row input {
  flex: 1; height: 46px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 16px; font-family: inherit;
  text-align: center; letter-spacing: 2px;
  text-transform: uppercase;
  background: #fafcff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.invite-row input:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45,122,255,0.10); background: #fff;
}
.invite-row input::placeholder { color: #b5c5d8; letter-spacing: 1px; font-size: 13px; }
.invite-row .btn-primary { width: auto; padding: 0 28px; height: 46px; }

/* — Batch info — */
.batch-info {
  text-align: center; font-size: 13px;
  color: var(--color-text-muted); margin-bottom: 12px;
}
.batch-info strong { color: var(--color-primary); font-weight: 600; }

/* — Responsive — */
@media (max-width: 640px) {
  .portal-topbar { padding: 12px 18px; }
  .portal-stage { padding: 24px 16px; }
  .hero-card { padding: 36px 24px 32px; }
  .portal-card { padding: 28px 22px 26px; }
  .hero-card h1 { font-size: 22px; }
  .role-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .invite-row { flex-direction: column; }
  .invite-row .btn-primary { width: 100%; }
}

/* ===== index.html 新登录页（桌面 1440） ===== */
.page-index { background: #eef4ff; }
.page-index .portal-stage {
  min-height: 100vh;
  padding: 80px 24px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(11, 43, 74, 0.08);
  padding: 44px;
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.login-form-panel {
  flex: 0 0 400px;
  border: 1px solid #e6ecf5;
  border-radius: 14px;
  padding: 32px 28px 28px;
  background: #ffffff;
}
.login-title {
  font-size: 22px;
  font-weight: 700;
  color: #0b2b4a;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.login-desc {
  font-size: 13px;
  color: #6b7b8f;
  margin-bottom: 22px;
  line-height: 1.6;
}
.login-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1f2a3a;
  margin-bottom: 6px;
}
.login-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1.5px solid #d0d7e2;
  border-radius: 10px;
  background: #fafcff;
  font-size: 15px;
  font-family: inherit;
  color: #1f2a3a;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.login-input:focus {
  outline: none;
  border-color: #2d7aff;
  box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.10);
  background: #ffffff;
}
.login-input::placeholder { color: #b5c5d8; letter-spacing: 1px; font-size: 13px; }

.btn-dark {
  width: 100%;
  margin-top: 14px;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  background: #1a1f2e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-dark:hover { background: #2d3548; }
.btn-dark:active { transform: scale(0.99); }
.btn-dark:disabled { opacity: 0.55; cursor: not-allowed; }

.admin-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: #1f2a3a;
  font-size: 13px;
  text-decoration: none;
}
.admin-link:hover { color: #2d7aff; }

.login-illustration {
  flex: 0 0 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.login-illustration img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

.lang-pills {
  position: fixed;
  top: 22px;
  right: 32px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #ffffff;
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 2px 14px rgba(11, 43, 74, 0.08);
}
.lang-pill {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #6b7b8f;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.lang-pill:hover { color: #1f2a3a; }
.lang-pill.active {
  background: #f0f6ff;
  color: #0b2b4a;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(45, 122, 255, 0.18);
}
.lang-pill .globe { font-size: 13px; }

/* ===== admin.html 总部HR登录页（桌面 1440） ===== */
.page-admin { background: #eef4ff; min-height: 100vh; }
.page-admin-illust {
  position: fixed;
  left: -60px;
  bottom: -40px;
  width: 760px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.page-admin .page-admin-stage {
  min-height: 100vh;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.page-admin-card {
  max-width: 460px;
  width: 100%;
  padding: 36px 32px 28px;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
  align-items: stretch;
  text-align: center;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 28px rgba(11, 43, 74, 0.06);
  transform: translateY(-80px);
}
.page-admin-card .login-form-panel {
  flex: 0 0 auto;
  border: none;
  padding: 0;
  background: transparent;
  text-align: center;
}
.page-admin-card .login-title {
  font-size: 26px;
  font-weight: 700;
  color: #0b2b4a;
  margin: 0 0 18px;
  text-align: center;
}
.page-admin-card .login-desc {
  font-size: 14px;
  color: #9aa7b8;
  margin: 0 0 22px;
  text-align: center;
}
.page-admin-card .login-label { display: block; margin: 0 0 8px; font-size: 13px; color: #5a6b80; }
.page-admin-card .login-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #dde6f0;
  border-radius: 8px;
  background: #f7f9fc;
  color: #0b2b4a;
  font-size: 14px;
  text-align: center;
  margin: 0 0 16px;
}
.page-admin-card .login-input:focus {
  outline: none;
  border-color: #2d7aff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.12);
}
.page-admin-card .login-input::placeholder { color: #9aa7b8; text-align: center; }
.page-admin-card .error-msg { display: none; margin: 0 0 8px; font-size: 13px; color: #ef4444; }
.page-admin-card .error-msg.show { display: block; }
.page-admin-card .btn-primary { width: 100%; height: 46px; font-size: 15px; }
.page-admin-card .admin-link { display: block; text-align: center; margin-top: 18px; color: #5a6b80; font-size: 13px; cursor: pointer; }
.page-admin .lang-pills { z-index: 5; }
.page-admin .lang-pill { color: #0b2b4a; }

/* ===== leader_login.html 评估人身份验证（桌面 1440） ===== */
.page-leader { background: #eef4ff; min-height: 100vh; }
.page-leader-illust {
  position: fixed;
  right: -40px;
  top: -10px;
  width: 520px;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 0;
  opacity: 0.95;
}
.page-leader-lang {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 5;
  display: inline-flex;
  background: #ffffff;
  border: 1px solid #e5ecf5;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(11, 43, 74, 0.04);
}
.page-leader-stage {
  min-height: 100vh;
  padding: 0 24px 0 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}
.page-leader-card {
  max-width: 460px;
  width: 100%;
  padding: 36px 32px 28px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(11, 43, 74, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateY(-80px);
}
.page-leader-card .card-head h1 {
  font-size: 26px;
  font-weight: 700;
  color: #0b2b4a;
  margin: 0 0 12px 0;
}
.page-leader-card .card-head p {
  font-size: 14px;
  color: #5a6b80;
  margin: 0 0 8px 0;
}
.leader-underline {
  width: 36px;
  height: 3px;
  background: #2d7aff;
  border-radius: 2px;
  margin: 12px 0 24px 0;
}
.page-leader-card .form-group {
  margin-bottom: 18px;
}
.page-leader-card .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0b2b4a;
  margin-bottom: 6px;
}
.page-leader-card .form-group input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: #f1f5fb;
  border: 1px solid #e5ecf5;
  border-radius: 10px;
  font-size: 14px;
  color: #0b2b4a;
  outline: none;
  transition: border-color .15s, background .15s;
  box-sizing: border-box;
}
.page-leader-card .form-group input:focus {
  border-color: #2d7aff;
  background: #ffffff;
}
.page-leader-card .form-group input::placeholder {
  color: #a3b2c4;
}
.page-leader-card .error-msg {
  display: none;
  color: #ef4444;
  font-size: 13px;
  margin: 8px 0 12px 0;
}
.page-leader-card .error-msg.show { display: block; }
.page-leader-card .btn-dark {
  width: 100%;
  height: 48px;
  background: #0b2b4a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s;
}
.page-leader-card .btn-dark:hover { background: #14365a; }
.page-leader-card .back-link {
  text-align: center;
  margin-top: 18px;
  color: #5a6b80;
  font-size: 13px;
  cursor: pointer;
}

/* ===== identity_select.html 选择身份（桌面 1440） ===== */
.page-identity { background: #eef4ff; }
.page-identity-illust {
  position: fixed;
  left: -80px;
  bottom: -20px;
  width: 880px;
  max-width: none;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.page-identity-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-identity-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 28px rgba(11, 43, 74, 0.08);
  padding: 38px 40px 32px;
  max-width: 640px;
  width: 100%;
}
.identity-title {
  font-size: 22px;
  font-weight: 700;
  color: #0b2b4a;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.identity-subtitle {
  font-size: 13px;
  color: #6b7b8f;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}
.identity-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.identity-role-card {
  background: #f5f8fc;
  border: 1.5px solid #e6ecf5;
  border-radius: 12px;
  padding: 22px 20px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.identity-role-card:hover {
  border-color: #2d7aff;
  box-shadow: 0 4px 18px rgba(45,122,255,0.10);
  transform: translateY(-2px);
}
.identity-role-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.identity-role-icon svg {
  width: 56px;
  height: 56px;
  display: block;
}
.identity-role-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: #0b2b4a;
  margin-bottom: 6px;
}
.identity-role-desc {
  font-size: 12.5px;
  color: #6b7b8f;
  margin-bottom: 14px;
  line-height: 1.5;
  min-height: 38px;
}
.identity-role-btn {
  width: 100%;
  max-width: 180px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: #1a1f2e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.identity-role-btn:hover { background: #2d3548; }
.identity-role-btn:active { transform: scale(0.99); }
.identity-back {
  font-size: 12.5px;
  color: #6b7b8f;
  cursor: pointer;
  display: inline-block;
  padding: 4px 0;
}
.identity-back:hover { color: #2d7aff; }
@media (max-width: 720px) {
  .identity-role-grid { grid-template-columns: 1fr; }
  .page-identity-illust { width: 600px; }
}

/* ===== company_register.html 单位信息登记（桌面 1440） ===== */
.page-company-register { background: #eef4ff; }
.page-company-illust {
  position: fixed;
  left: 150px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  max-width: none;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.page-company-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 0 130px 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.page-company-card {
  background: #ffffff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 28px rgba(11, 43, 74, 0.06);
  padding: 32px 36px 28px;
  max-width: 560px;
  width: 100%;
}
.page-company-card .card-head {
  text-align: left;
  margin-bottom: 18px;
}
.page-company-card .card-head h1 {
  font-size: 22px;
  font-weight: 700;
  color: #0b2b4a;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.page-company-card .card-head p {
  font-size: 13px;
  color: #6b7b8f;
  line-height: 1.5;
  margin-bottom: 10px;
}
.page-company-card .card-head .underline {
  width: 50px;
  height: 3px;
  background: #2d7aff;
  border-radius: 2px;
}
.page-company-card .form-group { margin-bottom: 16px; }
.page-company-card .form-group > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1f2a3a;
  margin-bottom: 6px;
}
.page-company-card .form-group .required { color: #ef4444; margin-left: 2px; }
.page-company-card .form-group input {
  width: 100%;
  height: 42px;
  padding: 10px 14px;
  border: 1.5px solid #e3eaf3;
  border-radius: 8px;
  background: #f5f8fc;
  font-size: 14px;
  font-family: inherit;
  color: #1f2a3a;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.page-company-card .form-group input:focus {
  outline: none;
  border-color: #2d7aff;
  box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.10);
  background: #ffffff;
}
.page-company-card .form-group input::placeholder { color: #9aa7b8; font-size: 13px; }
.page-company-card .error-msg {
  display: none;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-top: 8px;
}
.page-company-card .error-msg.show { display: block; }
.page-company-card .btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.page-company-card .btn-outline-blue {
  flex: 1;
  height: 44px;
  padding: 0 18px;
  border: 1.5px solid #2d7aff;
  background: transparent;
  color: #2d7aff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.page-company-card .btn-outline-blue:hover {
  background: rgba(45, 122, 255, 0.08);
}
.page-company-card .btn-row .btn-dark {
  flex: 2;
  margin-top: 0;
}
