/* ===========================================================
   ZERO LOGIN PAGE - LEFT INFO + RIGHT LOGIN + SYSTEM HUD
   背景使用主站统一的深色青紫渐变（不在此文件处理）
   =========================================================== */

/* 登录页面主容器 */
.login-page {
  position: relative;
  min-height: 100vh;
  margin-left: 240px; /* 左侧导航宽度 */
  padding: 60px 7vw 60px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent !important; /* 背景由 body 负责 */
  z-index: 1;
}

/* 左右布局容器 */
.login-layout {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* ================== 左侧说明区 ================== */

.login-info-panel {
  flex: 1 1 0;
  color: #e6f0ff;
}

.login-hero-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 600;
  color: #f2f6ff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.55);
}

.login-hero-sub {
  margin: 8px 0 14px;
  font-size: 14px;
  color: #bbc9e4;
  max-width: 520px;
}

.login-hero-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  color: #c7d6ff;
}

.login-hero-list li {
  margin-bottom: 4px;
}

.login-hero-note {
  margin-top: 12px;
  font-size: 12px;
  color: #93a5c4;
}

/* ================== 右侧登录卡片 ================== */

.login-card {
  flex: 0 0 auto;
  width: 380px;
  max-width: 100%;

  background: rgba(12, 18, 35, 0.78);
  border: 1px solid rgba(0, 180, 255, 0.32);
  border-radius: 16px;

  padding: 28px 30px 26px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);

  transform: translateY(14px);
  opacity: 0;
  animation: loginCardFadeIn 0.55s ease forwards;
}

@keyframes loginCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 标题 */
.login-title {
  margin: 0;
  color: #00d4ff;
  font-size: 20px;
  font-weight: 600;
}

.login-desc {
  margin: 4px 0 18px;
  color: #dde8ff;
  font-size: 13px;
  opacity: 0.85;
}

/* 表单字段 */

.login-field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}

.login-field label {
  color: #cbe6ff;
  font-size: 13px;
  margin-bottom: 5px;
}

.login-field input {
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0, 180, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  padding: 0 10px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field input::placeholder {
  color: rgba(180, 198, 224, 0.7);
}

.login-field input:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.5);
  background: rgba(7, 18, 36, 0.96);
}

/* 登录按钮 + 提示 */

.login-footer-row {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.login-hint {
  font-size: 11px;
  color: #9ab0c8;
  line-height: 1.5;
  flex: 1 1 auto;
}

.login-submit-btn {
  flex: 0 0 auto;
  padding: 9px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00d4ff, #0078ff);
  border: none;
  color: #00111c;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(0, 212, 255, 0.6);
}

.login-meta {
  margin-top: 16px;
  color: #90a4c0;
  font-size: 11px;
  text-align: center;
}

/* 登录过程中卡片变暗 */
.login-page.login-busy .login-card {
  opacity: 0.4;
  filter: blur(1px);
  pointer-events: none;
}

/* ================== 系统载入 HUD ================== */

.login-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, 0.92);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 3;
}

.login-loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-inner {
  width: 520px;
  max-width: 90vw;
  padding: 32px 36px 30px;
  border-radius: 16px;
  background: rgba(12, 18, 28, 0.92);
  box-shadow: 0 0 32px rgba(0, 200, 255, 0.35);
  border: 1px solid rgba(0, 200, 255, 0.4);

  animation: hudIn 0.55s ease forwards;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

@keyframes hudIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loading-title {
  font-size: 20px;
  color: #00d4ff;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.loading-sub {
  font-size: 13px;
  color: #cbe6ff;
  opacity: 0.8;
  margin-bottom: 18px;
}

.loading-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #00d4ff, #0099ff);
  border-radius: 999px;
  animation: progressAnim 2.4s ease forwards;
}

@keyframes progressAnim {
  to {
    width: 100%;
  }
}

.loading-log {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", Consolas, monospace;
  color: #a0c7ff;
  font-size: 13px;
}

.loading-log li {
  margin-bottom: 6px;
  opacity: 0;
  animation: logFadeIn 0.6s ease forwards;
}

.loading-log li:nth-child(1) { animation-delay: 0.35s; }
.loading-log li:nth-child(2) { animation-delay: 0.55s; }
.loading-log li:nth-child(3) { animation-delay: 0.75s; }
.loading-log li:nth-child(4) { animation-delay: 0.95s; }

@keyframes logFadeIn {
  to {
    opacity: 1;
  }
}

/* ================== 响应式 ================== */

@media (max-width: 1024px) {
  .login-page {
    margin-left: 0;
    padding: 80px 6vw 50px;
  }

  .login-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .login-card {
    width: 100%;
    max-width: 460px;
  }
}

@media (max-width: 720px) {
  .login-page {
    padding: 76px 16px 40px;
  }

  .login-layout {
    gap: 20px;
  }

  .login-hero-title {
    font-size: 24px;
  }
}
