/* ===========================================================
 * 星蜘综合管理和业务平台 —— 登录页样式
 * 遵循原型 UI 风格：左右两栏卡片 + 渐变背景
 * =========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1e3c72;
  --primary-light: #2a5298;
  --accent: #06b6d4;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --radius: 8px;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== 登录页布局 ===== */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0f172a 0%, #1e3c72 50%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-overlay.hidden { display: none; }

.login-bg-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.login-bg-deco::before,
.login-bg-deco::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: .15;
  filter: blur(60px);
}
.login-bg-deco::before { width: 520px; height: 520px; background: #06b6d4; top: -120px; left: -120px; }
.login-bg-deco::after  { width: 480px; height: 480px; background: #f59e0b; bottom: -100px; right: -100px; }

.login-card {
  position: relative;
  width: 920px;
  max-width: 95vw;
  height: 560px;
  max-height: 92vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* ===== 左侧品牌区 ===== */
.login-left {
  background: linear-gradient(135deg, rgba(30, 60, 114, .90) 0%, rgba(42, 82, 152, .75) 55%, rgba(6, 182, 212, .55) 100%);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.login-left::after {
  content: "";
  position: absolute;
  left: -60px; bottom: -60px;
  width: 220px; height: 220px;
  background: rgba(255, 255, 255, .06);
  border-radius: 50%;
}

.login-brand {
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 2;
}
.login-brand-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .95);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  overflow: hidden;
  flex: 0 0 48px;
}
.login-brand-logo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
}
.login-brand-name { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.login-brand-sub  { font-size: 12px; opacity: .8; margin-top: 2px; }

.login-slogan { position: relative; z-index: 2; }
.login-slogan h1 { font-size: 28px; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.login-slogan p  { font-size: 14px; opacity: .85; line-height: 1.7; }

.login-feature-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 20px;
  position: relative; z-index: 2;
}
.login-feature-list .item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; opacity: .9;
}
.login-feature-list .item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
}
.login-foot { font-size: 12px; opacity: .6; position: relative; z-index: 2; }

/* ===== 右侧表单区 ===== */
.login-right {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #f3f4f6;
  margin-bottom: 28px;
}
.login-tabs .lt {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.login-tabs .lt.active {
  color: #1e3c72;
  font-weight: 600;
  border-color: #06b6d4;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .lf-row { display: flex; flex-direction: column; gap: 6px; }
.login-form .lf-label { font-size: 13px; color: #374151; font-weight: 500; }

.login-form .lf-input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all .2s;
  width: 100%;
  background: #fff;
}
.login-form .lf-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .12);
}

.login-form .lf-input-wrap { position: relative; }
.login-form .lf-input-wrap .lf-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
}
.login-form .lf-input-wrap .lf-input { padding-left: 42px; }

.login-captcha { display: flex; gap: 8px; align-items: center; }
.login-captcha .lf-input { flex: 1; }
.login-captcha .lf-captcha-img {
  height: 44px;
  width: 120px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: repeating-linear-gradient(45deg, #f9fafb, #f9fafb 6px, #fef3c7 6px, #fef3c7 12px);
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #1e3c72;
  letter-spacing: 6px;
  user-select: none;
  transform: skewX(-8deg);
  position: relative;
}

.login-form .lf-row-inline {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.login-form .lf-row-inline label {
  display: flex; align-items: center; gap: 6px;
  color: #6b7280;
  cursor: pointer;
}
.login-form .lf-row-inline a {
  color: #06b6d4;
  text-decoration: none;
  cursor: pointer;
}

.login-form .lf-submit {
  height: 46px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #1e3c72, #06b6d4);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all .2s;
}
.login-form .lf-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, .3);
}
.login-form .lf-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-form .lf-error {
  font-size: 13px;
  color: #dc2626;
  min-height: 18px;
  line-height: 1.4;
}

/* 响应式：小屏时把卡片改成单列 */
@media (max-width: 760px) {
  .login-card {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    grid-template-columns: 1fr;
    border-radius: 0;
  }
  .login-left { display: none; }
}
