/* ===== 登录页根布局 ===== */
.lx-login-root {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #0a0b14;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* 内层卡片容器 */
.lx-login-root > .lx-brand,
.lx-login-root > .lx-form-panel {
  min-height: 620px;
}

.lx-login-root::before {
  display: none;
}

/* ===== 左侧品牌区 ===== */
.lx-brand {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background: linear-gradient(135deg, #0d0e1f 0%, #111228 60%, #0f1020 100%);
  border-right: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px 0 0 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* 背景装饰光晕 */
.lx-brand::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.lx-brand::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.lx-brand-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  z-index: 1;
}

/* Logo */
.lx-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lx-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.5px;
}

/* 品牌标语 */
.lx-brand-headline h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.lx-brand-headline p {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}

/* 系统状态卡片 */
.lx-status-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  backdrop-filter: blur(8px);
}

.lx-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c7d2fe;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.lx-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #cbd5e1;
}

.lx-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.lx-status-label {
  flex: 1;
  color: #94a3b8;
  font-size: 13px;
}

.lx-status-pct {
  font-size: 13px;
  font-weight: 600;
  color: #818cf8;
}

.lx-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.lx-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 99px;
  animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

/* 版权 */
.lx-copyright {
  font-size: 12px;
  color: #475569;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ===== 右侧表单区 ===== */
.lx-form-panel {
  flex: 0 0 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0e1a;
  padding: 48px 40px;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lx-form-box {
  width: 100%;
  max-width: 340px;
}

.lx-form-title {
  font-size: 26px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 8px;
}

.lx-form-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 32px;
}

/* Ant Design 表单覆盖 — 深色主题 */
.lx-form-box .ant-form-item-label > label {
  color: #94a3b8 !important;
  font-size: 13px;
  font-weight: 500;
}

.lx-form-box .ant-form-item {
  width: 100%;
}

.lx-form-box .ant-form-item .ant-form-item-control-input {
  width: 100%;
}

.lx-form-box .ant-input-affix-wrapper,
.lx-form-box .ant-input-password {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  height: 44px !important;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

.lx-form-box .ant-input-affix-wrapper .ant-input,
.lx-form-box .ant-input-password .ant-input {
  background: transparent !important;
  border: none !important;
  height: auto !important;
  padding: 0 !important;
  color: #e2e8f0 !important;
  font-size: 14px;
  box-shadow: none !important;
}

.lx-form-box .ant-input-affix-wrapper:hover,
.lx-form-box .ant-input-affix-wrapper:focus-within {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.lx-form-box .ant-input::placeholder {
  color: #475569 !important;
}

.lx-form-box .ant-input-password input {
  background: transparent !important;
  color: #e2e8f0 !important;
}

.lx-form-box .ant-input-password .ant-input-suffix svg {
  color: #64748b;
}

/* 记住我行 */
.lx-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.lx-form-box .ant-checkbox-wrapper {
  color: #94a3b8;
  font-size: 13px;
}

.lx-form-box .ant-checkbox-inner {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

/* 链接按钮 */
.lx-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  color: #818cf8;
  transition: color 0.2s;
}

.lx-link:hover {
  color: #a5b4fc;
}

/* 提交按钮 */
.lx-submit-btn.ant-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  border: none !important;
  border-radius: 8px !important;
  height: 44px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35) !important;
  transition: opacity 0.2s, transform 0.15s !important;
}

.lx-submit-btn.ant-btn-primary:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px);
}

.lx-submit-btn.ant-btn-primary:active {
  transform: translateY(0);
}

/* 切换文字 */
.lx-switch-text {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin: 16px 0 0;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .lx-brand {
    display: none;
  }

  .lx-form-panel {
    flex: none;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    padding: 40px 24px;
  }
}
