/* ============================================================
   登录页样式（商务风：左侧品牌区 + 右侧登录表单）
   ============================================================ */
.login-page {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #eef2f9;
}

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

/* ---------------- 左侧品牌区 ---------------- */
.login-brand {
  position: relative;
  flex: 1 1 58%;
  display: flex;
  overflow: hidden;
  color: #fff;
  background-color: #0b1226;
  /* 第一层：深蓝渐变蒙版；第二层：可选照片（放入 static/img/login-bg.jpg 即自动生效，缺失时自动忽略） */
  background-image:
    linear-gradient(155deg, rgba(9, 17, 38, .90) 0%, rgba(30, 58, 138, .84) 55%, rgba(37, 99, 235, .78) 100%),
    url("../img/login-bg.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* 网格纹理（向下淡出） */
.login-brand::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 78%);
}

/* 光晕点缀 */
.login-brand::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 16% 20%, rgba(96, 165, 250, .40), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(45, 212, 191, .28), transparent 46%);
}

.brand-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; padding: 52px 60px;
}

.brand-head { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(6px);
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.brand-en { font-size: 12.5px; letter-spacing: .8px; color: rgba(255, 255, 255, .6); margin-top: 5px; }

.brand-body { max-width: 540px; }
.brand-body h1 {
  font-size: 42px; font-weight: 800; line-height: 1.3; letter-spacing: 1px;
  margin-bottom: 18px;
}
.brand-body p {
  font-size: 16px; line-height: 1.9; color: rgba(255, 255, 255, .78);
  margin-bottom: 32px;
}
.brand-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
.brand-list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: rgba(255, 255, 255, .92); }
.brand-list li i { font-size: 18px; color: #7dd3fc; }

.brand-foot { font-size: 12px; letter-spacing: .5px; color: rgba(255, 255, 255, .48); }

/* ---------------- 右侧登录表单 ---------------- */
.login-main {
  flex: 1 1 42%;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  background: #fff;
}
.login-form { width: 100%; max-width: 400px; }

.form-head { margin-bottom: 30px; }
.form-head h2 { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.form-head p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }

.form-field { margin-bottom: 18px; }
.form-field .form-label { font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 8px; }

.field-wrap { position: relative; }
.field-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: #94a3b8; pointer-events: none; transition: color .2s;
}
.field-wrap .form-control {
  height: 48px; border-radius: 12px; padding-left: 42px;
  border: 1px solid #e2e8f0; background: #f8fafc;
  font-size: 15px; transition: all .2s;
}
.field-wrap .form-control::placeholder { color: #a8b3c4; }
.field-wrap .form-control:focus {
  background: #fff; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}
.field-wrap:focus-within .field-icon { color: var(--primary); }

.login-submit {
  width: 100%; height: 48px; margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px;
  font-size: 16px; font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .28);
  transition: all .2s;
}
.login-submit:hover, .login-submit:focus {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .34);
}
.login-submit:disabled { opacity: .68; box-shadow: none; }
.login-submit i { transition: transform .2s; }
.login-submit:hover i { transform: translateX(3px); }

.form-tip { margin-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------------- 自适应 ---------------- */
@media (max-width: 1180px) {
  .brand-inner { padding: 44px; }
  .brand-body h1 { font-size: 34px; }
  .brand-body p { font-size: 15px; }
}

@media (max-width: 900px) {
  .login-shell { flex-direction: column; }
  .login-brand { flex: none; }
  .brand-inner { padding: 28px 24px; gap: 0; }
  .brand-body { margin-top: 22px; }
  .brand-body h1 { font-size: 24px; margin-bottom: 0; }
  .brand-body p, .brand-list, .brand-foot { display: none; }
  .brand-en { display: none; }
  .login-main { flex: none; padding: 34px 22px 48px; }
  .form-head h2 { font-size: 24px; }
}
