/* ============================================
   登录页 v16 — 双栏布局 + 动效背景
   ============================================ */

.login-page-v2 {
  margin: 0;
  min-height: 100vh;
  background: #0f1729;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* ============ 背景动效 ============ */
.login-bg {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  overflow: hidden;
  background: #0a0f1f;
}

.bg-gradient-1, .bg-gradient-2 {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.35), transparent 50%),
              radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.30), transparent 50%);
  animation: gradient-shift 18s ease-in-out infinite alternate;
}
.bg-gradient-2 {
  background: radial-gradient(ellipse at 60% 20%, rgba(59, 130, 246, 0.25), transparent 60%),
              radial-gradient(ellipse at 30% 80%, rgba(236, 72, 153, 0.20), transparent 60%);
  animation: gradient-shift 24s ease-in-out infinite alternate-reverse;
  opacity: 0.7;
}

@keyframes gradient-shift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-3%, 2%) scale(1.05); }
  100% { transform: translate(3%, -2%) scale(0.97); }
}

/* 网格 */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, transparent 90%);
  animation: grid-pan 60s linear infinite;
}
@keyframes grid-pan {
  0%   { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

/* 浮动粒子 */
.bg-particles { position: absolute; inset: 0; }
.bg-particles span {
  position: absolute;
  left: var(--dx);
  top: var(--dy);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.95), rgba(167, 139, 250, 0.2) 60%, transparent);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.7);
  animation: float var(--d) ease-in-out infinite;
  animation-delay: calc(var(--i) * -2s);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  25%      { transform: translate(20px, -30px) scale(1.2); opacity: 1; }
  50%      { transform: translate(-15px, -50px) scale(0.85); opacity: 0.4; }
  75%      { transform: translate(-25px, -20px) scale(1.1); opacity: 0.8; }
}

/* 大型光晕 blob */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blob-drift 20s ease-in-out infinite alternate;
}
.blob-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -100px; left: -100px;
  animation-duration: 18s;
}
.blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #a855f7, transparent);
  bottom: -80px; right: 5%;
  animation-duration: 22s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ec4899, transparent);
  top: 40%; right: -80px;
  animation-duration: 26s;
}
@keyframes blob-drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.15); }
}

/* ============ 双栏外壳 ============ */
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px;
  gap: 48px;
  align-items: center;
}

/* 移动端 → 单列 */
@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 24px;
  }
  .login-intro { padding: 24px; }
  .intro-headline { font-size: 32px !important; }
  .login-panel-inner { max-width: 100% !important; }
}

/* ============ 左侧介绍 ============ */
.login-intro {
  padding: 40px 32px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: slide-in-l 0.6s ease-out;
}
@keyframes slide-in-l {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.intro-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 48px; height: 48px;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.5));
}
.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.brand-en {
  font-size: 10.5px;
  color: #94a3b8;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.intro-headline {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}
.hl-line {
  display: block;
  color: #f1f5f9;
}
.hl-gradient {
  display: block;
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-pulse 4s ease-in-out infinite;
}
@keyframes gradient-pulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.3); }
}

.intro-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #cbd5e1;
  margin: 0;
  max-width: 540px;
}

.intro-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.intro-features li {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all .2s;
  backdrop-filter: blur(8px);
}
.intro-features li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}
.feat-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.intro-features li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.intro-features strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
}
.intro-features span {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.intro-foot {
  font-size: 11px;
  color: #64748b;
  margin-top: auto;
}

/* ============ 右侧表单 ============ */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slide-in-r 0.6s ease-out;
}
@keyframes slide-in-r {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.login-panel-inner {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  padding: 36px 36px 28px;
  box-shadow:
    0 20px 60px -10px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(99, 102, 241, 0.1);
}

.login-title-v2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.login-subtitle-v2 {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 28px;
}

.login-form-v2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group-v2 { display: flex; flex-direction: column; gap: 6px; }
.form-label-v2 {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.02em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
  transition: color .15s;
}
.input-wrap:focus-within .input-icon { color: #6366f1; }

.form-input-v2 {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: all .15s;
  font-family: inherit;
  box-sizing: border-box;
}
.form-input-v2::placeholder { color: #cbd5e1; }
.form-input-v2:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-login-v2 {
  margin-top: 8px;
  padding: 13px 18px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
  animation: btn-gradient 6s ease infinite;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
@keyframes btn-gradient {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.btn-login-v2:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}
.btn-login-v2:active:not(:disabled) { transform: translateY(0); }
.btn-login-v2:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-arrow {
  display: inline-block;
  transition: transform .2s;
}
.btn-login-v2:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

.hint-v2 {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #e2e8f0;
}
.hint-title {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
}
.hint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.hint-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: inherit;
}
.hint-chip:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: translateY(-1px);
}
.hint-chip strong {
  font-size: 11.5px;
  color: #1e293b;
  font-weight: 600;
}
.hint-chip code {
  font-size: 10.5px;
  color: #6366f1;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.hint-tip {
  font-size: 10.5px;
  color: #94a3b8;
  text-align: center;
  margin-top: 8px;
}
