/* 登录页样式（仿 wang.jcgcw.com/#/signin） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background: #f4f6fa;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.sg-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }

/* 语言切换（中 / EN）：右上角悬浮，点击设 lang cookie 并整页刷新 */
.sg-lang {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 50;
  height: 34px;
  line-height: 32px;
  padding: 0 14px;
  font-size: 14px;
  color: #333;
  border: 1px solid #d9dde3;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  transition: all .2s ease;
}
.sg-lang:hover { color: #1F6DFF; border-color: #1F6DFF; }
.sg-wrap {
  width: 100%;
  max-width: 1000px;
  min-height: 560px;
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(31, 109, 255, .12);
}

/* ===== 左侧品牌区 ===== */
.sg-brand {
  flex: 1;
  position: relative;
  padding: 48px 44px;
  color: #fff;
  background: linear-gradient(135deg, #1F6DFF 0%, #0a2a8a 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sg-brand::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.sg-brand-inner { position: relative; z-index: 1; }
.sg-logo { display: inline-block; font-size: 22px; font-weight: 700; letter-spacing: 1px; margin-bottom: 36px; }
.sg-brand h2 { font-size: 26px; font-weight: 600; line-height: 1.5; margin-bottom: 14px; }
.sg-brand > .sg-brand-inner > p { font-size: 14px; color: rgba(255, 255, 255, .78); margin-bottom: 40px; }
.sg-brand-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
  line-height: 2.2;
  padding-left: 18px;
  position: relative;
}
.sg-brand-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
}
.sg-brand-foot { position: relative; z-index: 1; font-size: 12px; color: rgba(255, 255, 255, .5); }

/* ===== 右侧登录面板 ===== */
.sg-panel {
  width: 420px;
  flex-shrink: 0;
  padding: 48px 44px 28px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.sg-card { flex: 1; }
.sg-title { font-size: 24px; font-weight: 600; color: #222; margin-bottom: 26px; }

.sg-tabs { display: flex; gap: 28px; margin-bottom: 22px; border-bottom: 1px solid #eef0f5; }
.sg-tab {
  padding: 0 0 12px;
  font-size: 15px;
  color: #888;
  position: relative;
  transition: .2s;
}
.sg-tab:hover { color: #1F6DFF; }
.sg-tab.active { color: #1F6DFF; font-weight: 600; }
.sg-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #1F6DFF;
}

.sg-alert {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.sg-form { display: none; }
.sg-form.active { display: block; }

.sg-field { margin-bottom: 16px; }
.sg-field input {
  width: 100%;
  height: 44px;
  line-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: #333;
  background: #f7f8fb;
  border: 1px solid #e8eaf0;
  border-radius: 4px;
  outline: none;
  transition: .2s;
}
.sg-field input::placeholder { color: #b6bcc9; }
.sg-field input:focus { background: #fff; border-color: #1F6DFF; }

.sg-field-code { position: relative; }
.sg-field-code input { padding-right: 108px; }
.sg-code-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 44px;
  padding: 0 14px;
  font-size: 13px;
  color: #1F6DFF;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: .2s;
}
.sg-code-btn:hover { color: #0a4fd0; }
.sg-code-btn:disabled { color: #b6bcc9; cursor: not-allowed; }

.sg-submit {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: 4px;
  color: #fff;
  background: #1F6DFF;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: .2s;
}
.sg-submit:hover { background: #0a53e0; }
.sg-submit:disabled { background: #a8c4ff; cursor: not-allowed; }

.sg-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: #888;
}
.sg-links a:hover { color: #1F6DFF; }

/* 扫码登录 */
.sg-qr { margin-top: 30px; padding-top: 22px; border-top: 1px solid #eef0f5; text-align: center; }
.sg-qr-title { font-size: 14px; color: #555; margin-bottom: 12px; }
.sg-qr-box {
  width: 128px;
  height: 128px;
  margin: 0 auto;
  border: 1px solid #e8eaf0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfd;
}
.sg-qr-tip { font-size: 12px; color: #999; line-height: 1.8; }
.sg-qr-box img { width: 100%; height: 100%; object-fit: contain; }
.sg-qr-foot { font-size: 12px; color: #b6bcc9; margin-top: 10px; }

.sg-foot-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 20px;
  font-size: 12px;
  color: #b6bcc9;
}
.sg-foot-links a:hover { color: #1F6DFF; }

/* 响应式 */
@media screen and (max-width: 900px) {
  .sg-page { padding: 0; align-items: stretch; }
  .sg-wrap { max-width: none; min-height: 100vh; border-radius: 0; flex-direction: column; box-shadow: none; }
  .sg-brand { flex: none; padding: 40px 28px; }
  .sg-brand h2 { font-size: 20px; }
  .sg-brand-list { display: none; }
  .sg-brand-foot { display: none; }
  .sg-panel { width: 100%; padding: 32px 28px; border-radius: 20px 20px 0 0; margin-top: -20px; }
}
