/* ===== 根布局 ===== */
.ux-login-root {
  display: flex;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ===== 左侧品牌区 ===== */
.ux-brand {
  flex: 0 0 48%;
  background: linear-gradient(145deg, #3730d4 0%, #4f46e5 30%, #6d28d9 70%, #5b21b6 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

/* 背景波浪装饰 */
.ux-brand::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.ux-brand::after {
  content: '';
  position: absolute;
  bottom: 80px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.ux-brand-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* Logo */
.ux-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ux-logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 标语 */
.ux-brand-headline h1 {
  font-size: 42px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.ux-brand-headline p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.5;
}

/* 状态卡片网格 */
.ux-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ux-stat-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
}

.ux-stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.ux-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ux-stat-tag {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}

/* 节点状态卡片 */
.ux-node-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(8px);
}

.ux-node-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.ux-node-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* 底部文字 */
.ux-brand-footer {
  font-size: 36px;
  font-weight: 900;
  color: rgba(255,255,255,0.1);
  letter-spacing: 6px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ===== 右侧表单区 ===== */
.ux-form-panel {
  flex: 1;
  background: #f8f9fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.ux-form-box {
  width: 100%;
  max-width: 400px;
}

.ux-form-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.ux-form-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 32px;
  line-height: 1.5;
}

/* Ant Design 表单覆盖 — 浅色主题 */
.ux-form-box .ant-form-item-label > label {
  color: #374151 !important;
  font-size: 13px;
  font-weight: 600;
}

.ux-form-box .ant-input-affix-wrapper,
.ux-form-box .ant-input-password {
  background: #ffffff !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 8px !important;
  height: 46px !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;
  box-shadow: none !important;
}

.ux-form-box .ant-input-affix-wrapper:hover,
.ux-form-box .ant-input-affix-wrapper:focus-within {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

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

.ux-form-box .ant-input::placeholder,
.ux-form-box input::placeholder {
  color: #9ca3af !important;
}

.ux-form-box .ant-checkbox-wrapper {
  color: #6b7280;
  font-size: 13px;
}

/* 忘记密码标签行 */
.ux-form-box .ant-form-item-label {
  width: 100%;
}
.ux-form-box .ant-form-item-label > label {
  width: 100%;
  display: flex !important;
  justify-content: space-between;
}

/* 链接 */
.ux-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  color: #4f46e5;
  font-weight: 500;
  transition: color 0.2s;
}
.ux-link:hover { color: #4338ca; }

.ux-link-blue {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  color: #4f46e5;
  font-weight: 600;
  transition: color 0.2s;
}
.ux-link-blue:hover { color: #4338ca; }

/* 提交按钮 */
.ux-submit-btn.ant-btn-primary {
  background: #4f46e5 !important;
  border: none !important;
  border-radius: 8px !important;
  height: 46px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
  transition: background 0.2s, transform 0.15s !important;
}
.ux-submit-btn.ant-btn-primary:hover {
  background: #4338ca !important;
  transform: translateY(-1px);
}

/* 分割线 */
.ux-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #9ca3af;
  font-size: 13px;
}
.ux-divider::before,
.ux-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* 切换文字 */
.ux-switch-text {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin: 16px 0 0;
}

/* 底部链接 */
.ux-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  font-size: 12px;
  color: #9ca3af;
}

/* 响应式 */
@media (max-width: 768px) {
  .ux-brand { display: none; }
  .ux-form-panel { padding: 32px 24px; }
}
