/* ===== 统一登录页 · 深蓝科技风 ===== */
.login-body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 18%, #2a6fd6 0%, #1a4b8f 42%, #0d2547 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* 背景网格 + 放射光纹理 */
.login-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 142, 240, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 142, 240, 0.10) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.login-shell {
  display: flex;
  width: 920px;
  max-width: 100%;
  min-height: 540px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 38, 90, 0.55);
  border: 1px solid rgba(62, 142, 240, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(53, 198, 244, 0.12) inset;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

/* 左侧：品牌区（真实 logo），深蓝底 */
.login-brand {
  flex: 1 1 55%;
  background: linear-gradient(160deg, rgba(7, 26, 51, 0.6) 0%, rgba(10, 46, 110, 0.5) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  border-right: 1px solid rgba(62, 142, 240, 0.22);
}

.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(53, 198, 244, 0.12), transparent 55%);
  pointer-events: none;
}

.login-brand .logo-wrap {
  width: 340px;
  max-width: 90%;
  position: relative;
  z-index: 1;
}

.login-brand .logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}

.login-brand .brand-divider {
  width: 60px;
  height: 2px;
  background: var(--accent-gradient);
  margin-top: 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 12px rgba(53, 198, 244, 0.8);
}

.login-brand .brand-tagline {
  margin-top: 20px;
  color: var(--text-sub);
  letter-spacing: 4px;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* 右侧：深蓝半透明表单区 */
.login-form-panel {
  flex: 1 1 45%;
  background: rgba(12, 46, 102, 0.35);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-panel h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: 1px;
}

.login-form-panel .sub {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14px;
}

.login-form {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.form-field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(7, 26, 51, 0.7);
  font-size: 15px;
  color: var(--text-hi);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder {
  color: var(--text-muted);
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 198, 244, 0.15), 0 0 14px rgba(53, 198, 244, 0.25);
}

.login-error {
  min-height: 20px;
  font-size: 13px;
  color: var(--warn-red);
}

.login-btn {
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent-gradient);
  color: #03122b;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 6px;
  transition: filter 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(53, 198, 244, 0.35);
}

.login-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 30px rgba(53, 198, 244, 0.5);
}

.login-btn:active {
  transform: translateY(1px);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-hint {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 760px) {
  .login-brand {
    display: none;
  }
  .login-form-panel {
    padding: 40px 28px;
  }
}
