/* ─── 登录页面 — 企业级管理系统 ───────────────────── */
/* 主题色: #2563EB (primary blue)                          */

/* ─── 重置 ────────────────────────────────────────────── */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

/* ─── 布局 ────────────────────────────────────────────── */
.login-page {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(170deg, #F0F5FF 0%, #F5F9FF 50%, #EDF2F9 100%);
  position: relative;
}


/* ─── 左侧品牌区 ────────────────────────────────────── */
.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 64px;
  min-width: 0;
}


/* ─── Hero 区域 ──────────────────────────────────────── */
.login-hero-title-lg {
  font-size: 40px;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: 1px;
  position: relative;
  z-index: 5;
  text-align: left;
  max-width: 480px;
  width: 100%;
}

.login-hero-subtitle-lg {
  font-size: 18px;
  color: #64748B;
  font-weight: 400;
  line-height: 1.6;
  position: relative;
  z-index: 5;
  text-align: left;
  max-width: 480px;
  width: 100%;
  margin-bottom: 48px;
}

/* ─── 特性介绍卡片 ──────────────────────────────────── */
.login-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 5;
  max-width: 480px;
  width: 100%;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(37,99,235,0.06);
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

.login-feature:hover {
  background: rgba(255,255,255,0.92);
  border-color: rgba(37,99,235,0.12);
  box-shadow: 0 2px 8px rgba(37,99,235,0.04);
}

.login-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.06);
}

.login-feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #2563EB;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-feature-text {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

.login-feature-desc {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 400;
  margin-top: 2px;
}

/* ─── 右侧登录区 ────────────────────────────────────── */
.login-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 0 48px 48px;
  position: relative;
}

.login-card {
  width: 400px;
  max-width: 90vw;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 12px 48px rgba(15, 23, 42, 0.04);
  padding: 40px;
  margin-right: 64px;
}

.login-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 4px;
}

.login-card-subtitle {
  font-size: 14px;
  color: #94A3B8;
  margin-bottom: 28px;
}

/* ─── 表单 ──────────────────────────────────────────────── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: #94A3B8;
  pointer-events: none;
  transition: color 0.2s;
}

.login-input-wrap:focus-within .login-input-icon {
  color: #2563EB;
}

.login-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 14px;
  color: #1E293B;
  background: #F8FAFC;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.login-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
  background: #FFFFFF;
}

.login-input::placeholder {
  color: #94A3B8;
  font-size: 13px;
}

/* 验证码行 */
.login-captcha {
  display: flex;
  gap: 12px;
  align-items: center;
}

.login-captcha .login-input-wrap {
  flex: 1;
}

.login-captcha .login-input {
  padding-left: 14px;
}

.login-captcha-img {
  flex-shrink: 0;
  width: 160px;
  height: 56px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  transition: border-color 0.2s;
}

.login-captcha-img:hover {
  border-color: #2563EB;
}

/* ─── 选项 ──────────────────────────────────────────────── */
.login-options {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748B;
  cursor: pointer;
}

.login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563EB;
  cursor: pointer;
}

/* ─── 登录按钮 ──────────────────────────────────────────── */
.login-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.login-btn:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,0.30);
}

.login-btn:active {
  transform: scale(0.98);
}

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

/* ─── 错误提示 ──────────────────────────────────────────── */
.login-error {
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  color: #DC2626;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.login-error:empty {
  display: none;
}

/* ─── 底部版权 ──────────────────────────────────────────── */
.login-footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: #A0AEC0;
}

/* ─── 响应式 ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .login-left { padding: 48px; }
  .login-left::after { width: 240px; height: 300px; right: -20px; bottom: -40px; }
  .login-right { padding: 32px 0 32px 24px; }
  .login-hero-title-lg { font-size: 32px; }
  .login-features { gap: 14px; }
  .login-card { padding: 32px; margin-right: 40px; }
}

@media (max-width: 768px) {
  .login-page { flex-direction: column; overflow-y: auto; min-height: 100vh; height: auto; }
  .login-left { flex: 0 0 auto; padding: 24px 20px 8px; justify-content: center; min-height: auto; }
  .login-left::after { width: 180px; height: 220px; right: 0; bottom: -20px; }
  .login-right { flex: 1 0 auto; min-height: 0; padding: 0 0 32px; justify-content: center; }
  .login-hero-title-lg { font-size: 22px; max-width: 100%; text-align: center; margin-bottom: 6px; }
  .login-hero-subtitle-lg { display: none; }
  .login-features { display: none; }
  .login-card { padding: 28px 20px; margin: 0 16px; width: auto; max-width: none; }
  .login-card-title { font-size: 20px; }
  .login-card-subtitle { font-size: 13px; margin-bottom: 20px; }
  .login-footer { position: static; padding: 0 16px 20px; }
}
