/* ============================================================
   智领AI商机辅助决策系统 - 登录页（企业 AI 数字化转型风格）
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #0b1226 0%, #132044 50%, #0e2a4a 100%);
  color: #e2e8f0;
  overflow-x: hidden;
}

/* ---------- 背景光晕与网格 ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.o1 { width: 480px; height: 480px; background: radial-gradient(circle, #2563eb, transparent 70%); top: -120px; left: -80px; animation: drift1 14s ease-in-out infinite; }
.o2 { width: 420px; height: 420px; background: radial-gradient(circle, #7c3aed, transparent 70%); bottom: -100px; right: -60px; animation: drift2 18s ease-in-out infinite; }
.o3 { width: 300px; height: 300px; background: radial-gradient(circle, #06b6d4, transparent 70%); top: 40%; left: 55%; opacity: .3; animation: drift3 22s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,-40px) scale(1.05); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px,20px); } }
.grid-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.6), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.6), transparent 75%);
}

/* ---------- 布局 ---------- */
.login-wrap {
  position: relative; z-index: 1;
  display: flex; min-height: 100vh; max-width: 1200px; margin: 0 auto;
  align-items: stretch;
}

/* 左侧品牌区 */
.brand-panel {
  flex: 1.1; padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.brand-logo-area { margin-bottom: 28px; }
.brand-logo { width: 84px; height: 84px; border-radius: 20px; object-fit: contain; background: #fff; padding: 6px; box-shadow: 0 10px 40px rgba(37,99,235,.35); }
.brand-title { font-size: 34px; font-weight: 800; margin-bottom: 14px; background: linear-gradient(90deg, #93c5fd, #c4b5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.3; }
.brand-slogan { font-size: 16px; color: #94a3b8; line-height: 1.8; margin-bottom: 40px; }
.brand-features { display: flex; flex-direction: column; gap: 18px; }
.feat { display: flex; align-items: center; gap: 14px; }
.feat-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(59,130,246,.15); border: 1px solid rgba(59,130,246,.3); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.feat b { display: block; font-size: 15px; color: #e2e8f0; margin-bottom: 2px; }
.feat span:last-child { font-size: 13px; color: #64748b; }

/* 右侧登录区 */
.login-panel {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 32px;
  position: relative; z-index: 5;
}
.login-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 36px 34px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0,0,0,.4);
  position: relative; z-index: 6;
}
.mobile-brand { display: none; text-align: center; margin-bottom: 18px; }
.mobile-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: #fff; padding: 4px; }
.mobile-brand h2 { font-size: 17px; margin-top: 10px; }

.tabs { display: flex; gap: 8px; background: rgba(255,255,255,.08); padding: 5px; border-radius: 12px; margin-bottom: 26px; }
.tab {
  flex: 1; padding: 11px 8px; border: none; border-radius: 9px; cursor: pointer;
  background: transparent; color: #94a3b8; font-size: 14px; font-weight: 600;
  transition: all .25s;
}
.tab.active { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.4); }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: #94a3b8; margin-bottom: 7px; font-weight: 600; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  color: #f1f5f9; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.field input::placeholder { color: #64748b; }
.code-row { display: flex; gap: 10px; align-items: flex-end; }
.code-input { flex: 1; }

/* 人机验证（图形验证码）— 上下布局，输入框大尺寸 */
.captcha-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; z-index: 20; isolation: isolate;
  pointer-events: auto;
}
.captcha-box * { pointer-events: auto; }
.captcha-input { margin: 0; position: relative; z-index: 10; }
.captcha-input input {
  width: 100%; padding: 14px 16px; font-size: 17px; letter-spacing: 8px;
  text-transform: uppercase; text-align: center; font-weight: 700;
  pointer-events: auto; cursor: text;
  caret-color: #60a5fa; /* 光标蓝色可见 */
}
.captcha-img-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; z-index: 10; }
.captcha-img {
  width: 130px; height: 46px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25);
  display: block;
}
.btn-sm { padding: 10px 14px; font-size: 13px; }
.captcha-tip { display: block; width: 100%; font-size: 12px; color: #94a3b8; text-align: center; }

.btn { cursor: pointer; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; transition: all .25s; }
.btn-lg { width: 100%; padding: 13px; margin-top: 6px; font-size: 15px; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(37,99,235,.5); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-outline { padding: 12px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #e2e8f0; white-space: nowrap; }
.btn-outline:hover { background: rgba(255,255,255,.18); }
.btn-ic { margin-right: 4px; }

.wechat-illustration { text-align: center; margin-bottom: 22px; }
.wx-circle { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(135deg, #22c55e, #16a34a); display: flex; align-items: center; justify-content: center; font-size: 34px; box-shadow: 0 10px 30px rgba(34,197,94,.4); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.wechat-illustration p { color: #94a3b8; font-size: 14px; }

.hint { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.7; }
.dev-hint { color: #fbbf24; }

.msg { margin-top: 16px; min-height: 20px; font-size: 13px; text-align: center; }
.msg.ok { color: #4ade80; }
.msg.err { color: #f87171; }
.footer-note { margin-top: 22px; text-align: center; font-size: 12px; color: #475569; }

/* 忘记密码 */
.forgot-row { margin-top: 14px; text-align: right; }
.forgot-row a { color: #93c5fd; font-size: 13px; text-decoration: none; }
.forgot-row a:hover { text-decoration: underline; }
.forgot-title { font-size: 17px; color: #f1f5f9; text-align: center; margin-bottom: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .brand-panel { display: none; }
  .mobile-brand { display: block; }
  .login-panel { padding: 24px 16px; }
  .login-card { max-width: 400px; padding: 28px 22px; }
  .brand-title { font-size: 22px; }
}
