/* 登录页 · 巨量百应 Buyin 风格（左右分栏 + 白底面板） */
.buyin-login-page {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #161823;
}

.buyin-login-shell {
  min-height: 100vh;
  display: flex;
}

.buyin-login-brand {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: linear-gradient(145deg, #f0f4ff 0%, #faf5ff 35%, #fff5f8 70%, #f5fbff 100%);
  overflow: hidden;
}

.buyin-login-brand::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -80px;
  right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.buyin-login-brand::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  bottom: -60px;
  left: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 44, 85, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.buyin-login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
}

.buyin-login-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  font-size: 18px;
  font-weight: 700;
  color: #161823;
  letter-spacing: -0.02em;
}

.buyin-login-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #fe2c55 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.buyin-login-brand h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.buyin-login-brand-highlight {
  font-size: 22px;
  font-weight: 600;
  color: #6366f1;
  margin: 0 0 16px;
  line-height: 1.4;
}

.buyin-login-brand-desc {
  font-size: 15px;
  color: #86909c;
  margin: 0;
  line-height: 1.6;
}

.buyin-login-art {
  position: relative;
  height: 220px;
  margin-top: 40px;
}

.buyin-login-art-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(22, 24, 35, 0.08);
  padding: 16px 18px;
}

.buyin-login-art-card--1 {
  top: 20px;
  left: 0;
  width: 200px;
}

.buyin-login-art-card--2 {
  top: 80px;
  right: 0;
  width: 180px;
}

.buyin-login-art-card--3 {
  bottom: 0;
  left: 60px;
  width: 160px;
}

.buyin-login-art-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.buyin-login-art-card span {
  font-size: 12px;
  color: #86909c;
}

.buyin-login-main {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #fff;
}

.buyin-login-panel {
  width: 100%;
  max-width: 400px;
}

.buyin-login-form-page .buyin-login-panel {
  max-width: 380px;
}

.buyin-login-panel-head {
  margin-bottom: 28px;
}

.buyin-login-panel-head h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.buyin-login-panel-head p {
  margin: 0;
  font-size: 14px;
  color: #86909c;
}

.buyin-role-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.buyin-role-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #e5e6eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.buyin-role-item:hover {
  border-color: var(--role-color, #6366f1);
  box-shadow: 0 8px 24px rgba(22, 24, 35, 0.06);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}

.buyin-role-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--role-color, #6366f1);
}

.buyin-role-body {
  flex: 1;
  min-width: 0;
}

.buyin-role-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.buyin-role-desc {
  display: block;
  font-size: 13px;
  color: #86909c;
}

.buyin-role-arrow {
  flex-shrink: 0;
  color: #c9cdd4;
  font-size: 18px;
  line-height: 1;
}

.buyin-login-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.buyin-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 18px;
}

.buyin-field-label {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: #4e5969;
  margin-bottom: 8px;
  line-height: 1.4;
}

.buyin-field-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  font-size: 14px;
  padding: 10px 14px;
  color: #161823;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.buyin-field-input::placeholder {
  color: #c9cdd4;
}

.buyin-field-input:focus {
  border-color: var(--buyin-accent, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.buyin-login-submit {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin-top: 6px;
  border: none;
  border-radius: 8px;
  background: #161823;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.buyin-login-submit:hover {
  background: #000;
}

.buyin-login-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.buyin-login-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: #86909c;
}

.buyin-login-panel-foot {
  margin-top: 24px;
  text-align: center;
}

.buyin-login-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #86909c;
  text-decoration: none;
  transition: color 0.15s;
}

.buyin-login-back:hover {
  color: var(--buyin-accent, #6366f1);
  text-decoration: none;
}

@media (max-width: 900px) {
  .buyin-login-shell {
    flex-direction: column;
  }

  .buyin-login-brand {
    flex: none;
    padding: 32px 24px 24px;
  }

  .buyin-login-brand h1 {
    font-size: 28px;
  }

  .buyin-login-art {
    display: none;
  }

  .buyin-login-main {
    flex: 1;
    padding: 24px 20px 40px;
  }
}
