/* ========== 登录页完整样式 - 极简沉浸式冷调设计 ========== */

/* ---------- 全局重置与基础 ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  background: #0f1815;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
  contain: paint style;
}

/* ---------- 视频背景 ---------- */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease-out;
  will-change: opacity, transform;
}

.bg-video.loaded {
  opacity: 1;
}



/* ---------- 水雾层 ---------- */
.mist-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 20% 10%, rgba(60, 90, 80, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 70%, rgba(40, 70, 65, 0.10) 0%, transparent 45%),
    radial-gradient(ellipse 80% 50% at 50% 90%, rgba(55, 85, 78, 0.08) 0%, transparent 40%);
  animation: mist-drift 25s ease-in-out infinite alternate;
}

@keyframes mist-drift {
  0% { transform: translateX(-1%) translateY(0); opacity: 0.8; }
  100% { transform: translateX(1%) translateY(-0.5%); opacity: 1; }
}

/* ---------- LOGO ---------- */
.logo-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.logo {
  width: 120px;
  height: auto;
  border-radius: 8px;
}

/* ---------- 主布局：左右分栏 ---------- */
.login-layout {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  height: 100vh;
}

/* ---------- 左侧主视觉区 ---------- */
.left-visual {
  position: relative;
  flex: 0 0 65%;
  overflow: hidden;
  user-select: none;
}

.hero-title-container {
  position: absolute;
  top: 32vh;
  left: 8vw;
  display: block;
  opacity: 1;
}

.hero-title-line1,
.hero-title-line2 {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 6.5vw;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-subtext-container {
  margin-top: 48px;
  width: 96%;
}

.hero-subtext-left {
  width: 100%;
}

.hero-subtext-left p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05625vw;
  line-height: 1.6;
  color: #ffffff;
  text-align: left;
}



/* ---------- 右侧功能区面板 ---------- */
.right-panel {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.panel-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 0 36px;
  background: rgba(10, 12, 14, 0.45);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  animation: panel-entrance 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panel-entrance {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 搜索按钮 ---------- */
.search-btn {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: rgba(130, 185, 165, 0.32);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.search-btn:hover {
  background: rgba(130, 185, 165, 0.45);
}

.search-btn:active {
  background: rgba(130, 185, 165, 0.24);
}

/* ---------- 输入框组 ---------- */
.input-group {
  position: relative;
}

.glass-input {
  width: 100%;
  padding: 14px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  transition: border-color 0.35s ease;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 200;
  letter-spacing: 0.5px;
}

.glass-input:focus {
  border-bottom-color: rgba(140, 195, 175, 0.4);
}

/* ---------- 操作按钮区 ---------- */
.action-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

@keyframes btnShake {
  0%, 100% { transform: translateX(0) scaleX(1); }
  10% { transform: translateX(0) scaleX(1.02) scaleY(0.98); }
  20% { transform: translateX(0) scaleX(0.98) scaleY(1.02); }
  30% { transform: translateX(0) scaleX(1.01) scaleY(0.99); }
  40% { transform: translateX(0) scaleX(0.99) scaleY(1.01); }
  50% { transform: translateX(0) scaleX(1.01) scaleY(0.99); }
  60% { transform: translateX(0) scaleX(0.99) scaleY(1.01); }
  70% { transform: translateX(0) scaleX(1.01) scaleY(0.99); }
  80% { transform: translateX(0) scaleX(0.99) scaleY(1.01); }
  90% { transform: translateX(0) scaleX(1.01) scaleY(0.99); }
  100% { transform: translateX(0) scaleX(1) scaleY(1); }
}

.action-btn {
  position: relative;
  width: 100%;
  padding: 14px 0;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  border: none;
  border-radius: 6px;
  background: rgba(130, 185, 165, 0.32);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.15s ease;
  overflow: hidden;
}

.action-btn span {
  position: relative;
  z-index: 2;
}

.action-btn:hover {
  background: rgba(130, 185, 165, 0.38);
  animation: btnShake 0.4s ease-in-out;
  transform: translateY(-1px);
}

.action-btn:active {
  background: rgba(130, 185, 165, 0.2);
  transform: translateY(2px) scale(0.97);
}

/* ---------- 分割线 ---------- */
.divider-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- 信息行 ---------- */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.info-label {
  font-size: 13px;
  font-weight: 200;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.22);
}

.info-value {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- 错误提示 ---------- */
.error-message {
  font-size: 12.5px;
  font-weight: 200;
  letter-spacing: 0.3px;
  color: rgba(255, 120, 120, 0.8);
  text-align: left;
  animation: fadeIn 0.35s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 掉落文字动画画布 ---------- */
.falling-text-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}

.falling-text-canvas:active {
  cursor: grabbing;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 1024px) {
  .left-visual {
    flex: 0 0 55%;
  }
  .right-panel {
    flex: 0 0 45%;
  }
  .panel-inner {
    padding: 0 28px;
    gap: 26px;
  }
}

@media (max-width: 768px) {
  .login-layout {
    flex-direction: column;
  }
  .left-visual {
    flex: 0 0 auto;
    min-height: 30vh;
  }
  .hero-title-container {
    position: relative;
    top: auto;
    left: auto;
    padding: 24px 20px;
  }
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 8vw;
  }
  .hero-subtext-container {
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
    width: 100%;
  }
  .hero-subtext-left p {
    font-size: 2.5vw;
  }
  .right-panel {
    flex: 1;
  }
  .panel-inner {
    padding: 0 24px;
    gap: 24px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 480px) {
  .left-visual {
    min-height: 24vh;
  }
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 10vw;
  }
  .panel-inner {
    padding: 0 20px;
    gap: 20px;
  }
  .glass-input {
    padding: 12px 0;
    font-size: 14px;
  }
  .action-btn {
    padding: 12px 0;
    font-size: 13.5px;
  }
}