/* =============================================================================
   iPMU Pro - 登录页专属样式
   =============================================================================
   所有选择器以 .login-page 为作用域，不影响其他页面。
   100% 复刻 mockup_login_v3.html。
   ============================================================================= */

/* ---- 本地字体 ---- */
@font-face {
  font-family: 'Orbitron';
  src: url('/assets/Orbitron-400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Orbitron';
  src: url('/assets/Orbitron-500.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Orbitron';
  src: url('/assets/Orbitron-700.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/PlayfairDisplay-Italic-500.ttf') format('truetype');
  font-weight: 500; font-style: italic; font-display: swap;
}

/* ---- 页面根容器 ---- */
.login-page {
  background-color: #050a15;
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ================================================================
   动态背景
   ================================================================ */
.login-page .lp-hero-bg {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0; overflow: hidden;
}
.login-page #phasor-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* ================================================================
   极细网格底纹
   ================================================================ */
.login-page .lp-grid-layer {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ================================================================
   顶部导航栏
   ================================================================ */
.login-page .lp-top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  display: flex; align-items: center;
  padding: 0 3vw;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.login-page .lp-top-nav::after {
  content: ''; position: absolute; bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.login-page .lp-nav-logo {
  display: flex; align-items: center; margin-right: 16px;
}
.login-page .lp-nav-logo .lp-logo-i {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-style: italic; font-weight: 500;
  font-size: 24px; color: #0ea5e9;
  margin-right: 1px; line-height: 1;
}
.login-page .lp-nav-logo .lp-logo-pmu {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700; font-size: 18px;
  color: #e2e8f0; letter-spacing: 2px;
}
.login-page .lp-nav-logo .lp-logo-dot {
  display: inline-block; width: 4px; height: 4px;
  border-radius: 50%; background: #0ea5e9;
  margin: 0 6px; vertical-align: middle;
  box-shadow: 0 0 8px #0ea5e9, 0 0 16px rgba(14,165,233,0.3);
}
.login-page .lp-nav-logo .lp-logo-pro {
  font-family: 'Orbitron', sans-serif;
  font-weight: 400; font-size: 11px;
  color: #64748b; letter-spacing: 4px;
}
.login-page .lp-nav-sep {
  color: #475569; margin: 0 16px; user-select: none;
}
.login-page .lp-nav-links a {
  color: rgba(255,255,255,0.45);
  font-size: 13.5px; text-decoration: none;
  margin-right: 24px; transition: color 0.2s;
}
.login-page .lp-nav-links a:hover { color: rgba(255,255,255,0.85); }

/* ================================================================
   主容器
   ================================================================ */
.login-page .lp-main {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 40px 3vw; padding-top: 80px;
}
.login-page .lp-inner-row {
  display: flex; align-items: stretch;
  gap: 50px; width: 100%;
}

/* ================================================================
   左侧 Hero 文案
   ================================================================ */
.login-page .lp-hero-left {
  flex: 1; z-index: 10;
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
}

.login-page .lp-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  color: #94a3b8;
  font-size: 18px; font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  width: fit-content;
}
.login-page .lp-hero-badge i { color: #0ea5e9; }

.login-page .lp-hero-title {
  font-size: 3.8rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 0;
  letter-spacing: -1.5px;
  color: #ffffff;
}
.login-page .lp-hero-title .lp-accent {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-page .lp-hero-desc {
  margin-top: 24px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.8;
  display: inline-block;
  align-self: flex-start;
  background: rgba(5, 10, 21, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 14px 18px;
}
.login-page .lp-hero-desc p {
  margin: 0 0 6px;
}

/* 独立分隔线 */
.login-page .lp-section-divider {
  margin-top: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* 特性卡片 */
.login-page .lp-features-row {
  display: flex; gap: 24px;
  margin-top: auto; padding-top: 16px;
}
.login-page .lp-feature-item {
  flex: 1;
}
.login-page .lp-feature-icon {
  font-size: 1.3rem; margin-bottom: 8px;
}
.login-page .lp-feature-title {
  color: #f1f5f9; font-size: 14px; font-weight: 600; margin-bottom: 4px;
}
.login-page .lp-feature-desc {
  color: #64748b; font-size: 12.5px; line-height: 1.6; margin: 0;
}

/* 信任数据 */
.login-page .lp-trust-line {
  margin-top: 24px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ================================================================
   右侧登录卡片（毛玻璃暗色风格）
   ================================================================ */
.login-page .lp-auth-card {
  width: 420px; flex-shrink: 0; z-index: 10;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Logo */
.login-page .lp-card-logo { text-align: center; margin-bottom: 28px; }
.login-page .lp-logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px; font-weight: 700; color: #ffffff; letter-spacing: 2px;
}
.login-page .lp-logo-text .lp-logo-i-card {
  font-family: 'Times New Roman', serif;
  font-style: italic; font-weight: 400; font-size: 28px;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-page .lp-logo-version {
  font-size: 11px; color: #475569; margin-top: 4px;
  font-family: 'Orbitron', monospace; letter-spacing: 1px;
}

/* Tabs - 覆盖 dcc.Tabs 默认样式 */
.login-page .lp-auth-card .tab-container {
  margin-bottom: 20px;
}
.login-page .lp-auth-card .tab-container .tab {
  border: none !important;
  border-bottom: 1px solid #1e293b !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 14px !important;
  padding: 13px 12px !important;
  transition: all 0.2s;
}
.login-page .lp-auth-card .tab-container .tab--selected {
  border-bottom: 2px solid #0ea5e9 !important;
  color: #f1f5f9 !important;
  font-weight: 600 !important;
  background: transparent !important;
}
.login-page .lp-auth-card .tab-container .tab:hover:not(.tab--selected) {
  color: #94a3b8 !important;
}
.login-page .lp-auth-card .tab-content {
  border: none !important;
  padding: 0 !important;
}

/* 暗色输入框 - 覆盖 dbc.Input 默认样式 */
.login-page .lp-auth-card .form-control,
.login-page .lp-auth-card input.form-control {
  width: 100% !important;
  padding: 13px 16px !important;
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  border-radius: 10px !important;
  color: #f1f5f9 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-bottom: 14px !important;
  outline: none !important;
  transition: all 0.2s !important;
  box-shadow: none !important;
}
.login-page .lp-auth-card .form-control::placeholder {
  color: #64748b !important;
}
.login-page .lp-auth-card .form-control:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15) !important;
  background: #1e293b !important;
}

/* 注册表单小输入框 */
.login-page .lp-reg-panel .form-control,
.login-page .lp-reg-panel input.form-control {
  padding: 11px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  margin-bottom: 10px !important;
}
.login-page .lp-reg-panel {
  max-height: 310px; overflow-y: auto; padding-right: 4px;
}
.login-page .lp-reg-panel::-webkit-scrollbar { width: 4px; }
.login-page .lp-reg-panel::-webkit-scrollbar-track { background: transparent; }
.login-page .lp-reg-panel::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }

.login-page .lp-section-label {
  color: #64748b; font-size: 12px; margin-bottom: 8px; font-weight: 500;
}

/* 登录按钮（次要） */
.login-page .lp-btn-login {
  width: 100%; padding: 13px;
  background: rgba(14,165,233,0.1) !important;
  border: 1px solid rgba(14,165,233,0.3) !important;
  border-radius: 10px !important;
  color: #38bdf8 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
  margin-top: 4px;
}
.login-page .lp-btn-login:hover {
  border-color: #0ea5e9 !important;
  background: rgba(14,165,233,0.15) !important;
  transform: translateY(-1px);
}

/* 分隔线 */
.login-page .lp-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0; color: #334155; font-size: 12px;
}
.login-page .lp-divider::before,
.login-page .lp-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, #1e293b, transparent);
}

/* 试用按钮（主要） */
.login-page .lp-btn-guest {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  letter-spacing: 0.5px;
}
.login-page .lp-btn-guest:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(14,165,233,0.35) !important;
}

/* 注册按钮 */
.login-page .lp-btn-register {
  width: 100%; padding: 12px;
  background: #059669 !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-top: 8px;
  transition: all 0.2s !important;
}
.login-page .lp-btn-register:hover {
  background: #10b981 !important;
  transform: translateY(-1px);
}

/* Checkbox 样式 */
.login-page .lp-auth-card .form-check {
  margin: 8px 0 4px;
  font-size: 12px;
  color: #64748b;
}
.login-page .lp-auth-card .form-check-input {
  accent-color: #0ea5e9;
}
.login-page .lp-auth-card .form-check-label a {
  color: #0ea5e9; text-decoration: none;
}

/* 底部链接 */
.login-page .lp-card-footer-links {
  text-align: center; margin-top: 20px;
  font-size: 12.5px; color: #475569;
}
.login-page .lp-card-footer-links a {
  color: #38bdf8; text-decoration: none; font-weight: 500;
}
.login-page .lp-card-footer-links a:hover { color: #7dd3fc; text-decoration: underline; }

/* ================================================================
   底部状态栏
   ================================================================ */
.login-page .lp-footer-bar {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 10;
  background: rgba(5, 10, 21, 0.85);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 10px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.login-page .lp-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1480px; margin: 0 auto; padding: 0 60px;
}
.login-page .lp-footer-left {
  display: flex; align-items: center; gap: 10px;
}
.login-page .lp-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 6px #22c55e;
  animation: lp-pulse-green 2s ease-in-out infinite;
}
@keyframes lp-pulse-green {
  0%, 100% { box-shadow: 0 0 4px rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 8px rgba(34,197,94,0.8); }
}
.login-page .lp-status-label {
  font-size: 11px; color: #475569; font-weight: 600;
  font-family: 'Orbitron', monospace; letter-spacing: 1px;
}
.login-page .lp-status-text {
  font-size: 12px; color: #64748b;
  font-family: 'Orbitron', monospace;
}
.login-page .lp-footer-right {
  font-size: 11px; color: #334155;
}

/* ── 英文 locale 标题缩小 ── */
.login-page.locale-en .lp-hero-title { font-size: 2.8rem; }
.login-page.locale-en .lp-auth-card { align-self: flex-start; }

/* ================================================================
   响应式
   ================================================================ */
@media (max-width: 1024px) {
  .login-page .lp-main {
    flex-direction: column; padding: 40px 24px; gap: 40px;
    align-items: center; padding-top: 80px;
  }
  .login-page .lp-inner-row {
    flex-direction: column; align-items: center;
  }
  .login-page .lp-hero-left { max-width: 100%; text-align: center; }
  .login-page .lp-hero-title { font-size: 2.5rem; }
  .login-page.locale-en .lp-hero-title { font-size: 2rem; }
  .login-page .lp-features-row { justify-content: center; }
  .login-page .lp-auth-card { width: 100%; max-width: 420px; }
  .login-page.locale-en .lp-auth-card { align-self: center; }
  .login-page #phasor-canvas { opacity: 0.3; }
  .login-page .lp-footer-inner { padding: 0 24px; }
}

@media (max-width: 768px) {
    /* 顶部导航 — 保留链接，缩小间距 */
    .login-page .lp-nav-sep { display: none; }
    .login-page .lp-nav-logo .lp-logo-pmu { font-size: 14px; letter-spacing: 1px; }
    .login-page .lp-nav-logo .lp-logo-pro { display: none; }
    .login-page .lp-nav-logo { margin-right: 10px; }
    .login-page .lp-nav-links a { font-size: 12.5px; margin-right: 12px; }

    /* Hero */
    .login-page .lp-hero-title { font-size: 1.8rem; }
    .login-page.locale-en .lp-hero-title { font-size: 1.5rem; }
    .login-page .lp-hero-badge { margin: 0 auto 24px; font-size: 14px; }
    .login-page .lp-hero-desc { font-size: 12px; }

    /* 特性卡片 — 纵向排列 */
    .login-page .lp-features-row { flex-direction: column; gap: 16px; }

    /* 底部状态栏 */
    .login-page .lp-footer-inner {
        flex-direction: column; align-items: center;
        gap: 6px; padding: 0 16px; text-align: center;
    }
}
