/* ==========================================================================
   绵阳市文旅大数据感知系统 · 登录页
   政务风格：左侧深蓝品牌区（Emblem / 标题 / 署名 / 特性），
            右侧白底 + 悬浮登录卡 + 底部动态渐变蓝 + 署名
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f0f4fa;
  color: #12213a;
  overflow: hidden;
}
.login-wrap { display: flex; min-height: 100vh; position: relative; }

/* ===================== 左侧：政务深蓝品牌区 ===================== */
.brand-side {
  flex: 1 1 56%;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(60, 140, 230, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(30, 90, 200, 0.4) 0%, transparent 55%),
    linear-gradient(135deg, #082c63 0%, #0d3f8e 50%, #1455b3 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
/* 细网格底纹 */
.brand-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 80%);
}
/* 浮动光晕（动态呼吸） */
.brand-glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(60px);
  opacity: 0.55;
}
.brand-glow-1 {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(120, 200, 255, 0.6) 0%, transparent 65%);
  animation: brandFloat1 14s ease-in-out infinite;
}
.brand-glow-2 {
  width: 480px; height: 480px;
  bottom: -160px; right: -100px;
  background: radial-gradient(circle, rgba(80, 160, 255, 0.5) 0%, transparent 65%);
  animation: brandFloat2 16s ease-in-out infinite;
}
@keyframes brandFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 40px) scale(1.1); }
}
@keyframes brandFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, -30px) scale(1.12); }
}

.brand-content {
  position: relative; z-index: 2;
  max-width: 560px;
  padding: 40px 50px;
  text-align: left;
}
.brand-emblem {
  width: 78px; height: 78px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(8, 44, 99, 0.35);
  animation: emblemFloat 4.2s ease-in-out infinite;
}
.brand-emblem svg { width: 46px; height: 46px; }
.em-arc { transform-origin: 32px 32px; animation: emArcSpin 9s linear infinite; }
.em-node { animation: emNodePulse 1.6s ease-in-out infinite; }
.em-node-2 { animation-delay: 0.4s; }
.em-node-3 { animation-delay: 0.8s; }
.em-node-4 { animation-delay: 1.2s; }
@keyframes emblemFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes emArcSpin   { to { transform: rotate(360deg); } }
@keyframes emNodePulse { 0%, 100% { opacity: 0.45; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }

.brand-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #c8e2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(200, 226, 255, 0.35);
  filter: drop-shadow(0 2px 8px rgba(0, 30, 80, 0.3));
  white-space: nowrap;
}
.brand-divider {
  position: relative;
  width: 88px; height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.6), rgba(255,255,255,.1));
  border-radius: 2px;
  margin-bottom: 18px;
  overflow: hidden;
}
.brand-divider i {
  position: absolute; top: 0; left: 0;
  width: 40px; height: 3px;
  background: #7dd3fc;
  box-shadow: 0 0 12px #7dd3fc, 0 0 24px rgba(125, 211, 252, 0.5);
  border-radius: 2px;
  animation: dividerSlide 3.4s ease-in-out infinite;
}
@keyframes dividerSlide { 0% { left: -40px; } 100% { left: 88px; } }

.brand-byline {
  font-size: 14px;
  letter-spacing: 6px;
  color: rgba(220, 235, 255, 0.82);
  margin-bottom: 36px;
  padding-left: 2px;
  font-weight: 300;
}

.brand-features {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 13px;
}
.brand-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px;
  color: rgba(210, 230, 255, 0.78);
  letter-spacing: 0.6px;
  line-height: 1.6;
}
.brand-features li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 8px #7dd3fc, 0 0 14px rgba(125, 211, 252, 0.6);
}

/* ===================== 右侧：白底 + 底部动态渐变蓝 ===================== */
.form-side {
  flex: 0 0 44%;
  display: flex; align-items: stretch; justify-content: center;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
/* 底部两束动态渐变蓝 */
.form-bg-wave {
  position: absolute; left: -20%; right: -10%;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform, opacity;
}
.form-bg-wave-1 {
  bottom: -30%;
  height: 60%;
  background: linear-gradient(135deg, #c8def8 0%, #88aeea 35%, #4a7ed1 70%, #1f5ab3 100%);
  opacity: 0.6;
  animation: formWaveMove 11s ease-in-out infinite alternate;
}
.form-bg-wave-2 {
  bottom: -42%;
  height: 70%;
  background: radial-gradient(ellipse at 65% 100%, rgba(28, 80, 195, 0.45) 0%, transparent 60%);
  animation: formWavePulse 13s ease-in-out infinite alternate;
}
@keyframes formWaveMove {
  0%   { transform: translateX(0)     scale(1);    opacity: 0.55; }
  100% { transform: translateX(-6%)  scale(1.08); opacity: 0.72; }
}
@keyframes formWavePulse {
  0%   { opacity: 0.3; }
  100% { opacity: 0.55; }
}

.form-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 440px;
  padding: 0 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh;
}

/* 悬浮登录卡 */
.login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 42px 38px 34px;
  box-shadow:
    0 30px 60px -22px rgba(15, 50, 120, 0.18),
    0 12px 28px -10px rgba(22, 93, 255, 0.10),
    0 0 0 1px rgba(22, 93, 255, 0.04);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.login-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 44px 80px -22px rgba(15, 50, 120, 0.26),
    0 18px 40px -10px rgba(22, 93, 255, 0.18),
    0 0 0 1px rgba(22, 93, 255, 0.10);
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, #165dff, transparent);
  border-radius: 0 0 2px 2px;
}

.login-card h2 {
  font-size: 24px;
  color: #12213a;
  font-weight: 700;
  letter-spacing: 1px;
}
.form-sub {
  font-size: 12.5px;
  color: #8a94a6;
  margin-top: 6px;
  margin-bottom: 26px;
  letter-spacing: 0.5px;
}

.form-error {
  background: #fff1f0;
  color: #c62f27;
  border: 1px solid #ffccc7;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #24334d;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.form-field input {
  width: 100%; height: 44px;
  border: 1px solid #dbe3f0;
  border-radius: 9px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background: #fbfcfe;
  color: #12213a;
}
.form-field input:focus {
  border-color: #165dff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}

.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-img {
  flex: 0 0 120px; height: 44px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #dbe3f0;
  display: block;
  background: #fbfcfe;
  transition: border-color 0.2s;
}
.captcha-img:hover { border-color: #165dff; }
.captcha-img img { width: 100%; height: 100%; display: block; object-fit: cover; }

.btn-login {
  width: 100%; height: 46px;
  border: none; border-radius: 9px;
  font-size: 14px; letter-spacing: 8px;
  color: #fff; cursor: pointer;
  font-weight: 600;
  background: linear-gradient(120deg, #0e4a9e 0%, #165dff 50%, #2e6dcc 100%);
  box-shadow: 0 10px 22px rgba(22, 93, 255, 0.32);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  margin-top: 6px;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22, 93, 255, 0.42);
  background: linear-gradient(120deg, #0a3a7a 0%, #165dff 50%, #4080ff 100%);
}
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.login-tip {
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(22, 93, 255, 0.06);
  border: 1px dashed rgba(22, 93, 255, 0.3);
  font-size: 11.5px;
  color: #6b7a90;
  text-align: center;
  line-height: 1.6;
}

/* 底部署名 */
.form-bottom {
  position: relative; z-index: 2;
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: rgba(15, 50, 120, 0.6);
  letter-spacing: 4px;
  padding-bottom: 8px;
  font-weight: 300;
}

/* ===================== 响应式 ===================== */
@media (max-width: 980px) {
  body { overflow: auto; }
  .login-wrap { flex-direction: column; min-height: auto; }
  .brand-side { flex: 0 0 auto; min-height: 260px; padding: 24px 0 6px; }
  .brand-content { padding: 16px 30px 0; }
  .brand-emblem { width: 60px; height: 60px; margin-bottom: 18px; }
  .brand-emblem svg { width: 34px; height: 34px; }
  .brand-title { font-size: 24px; letter-spacing: 2px; margin-bottom: 12px; }
  .brand-divider { margin-bottom: 12px; }
  .brand-byline { font-size: 12px; letter-spacing: 4px; margin-bottom: 16px; }
  .brand-features { display: none; }
  .form-side { flex: 1 1 auto; }
  .form-content { padding: 28px 20px 36px; min-height: auto; }
  .login-card { padding: 30px 24px 24px; }
  .form-bottom { padding-bottom: 4px; }
}
