/**
 * 奇艺文库 - 会员登录/注册页样式
 *
 * 双栏布局：左侧营销内容 + 右侧表单卡片
 * 顶部导航条 + 暖色渐变背景
 */

/* ═══════════════════════════════════════
   1. 基础重置
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #1f2937;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, #fef3ec 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 70%, #fde8e0 0%, transparent 55%),
    linear-gradient(135deg, #fef7f2 0%, #fce8de 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ═══════════════════════════════════════
   2. 顶部导航条
   ═══════════════════════════════════════ */
.lg-header {
  height: 68px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.lg-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.lg-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px -3px rgba(59, 130, 246, .4);
}
.lg-brand-logo svg { width: 20px; height: 20px; }
.lg-brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.lg-brand-name {
  font-size: 19px;
  font-weight: 600;
  font-style: italic;
  color: #2563eb;
  letter-spacing: .5px;
}
.lg-brand-sep {
  width: 1px;
  height: 18px;
  background: #d1d5db;
  margin: 0 4px;
}
.lg-brand-tag {
  font-size: 13.5px;
  color: #6b7280;
  letter-spacing: .3px;
}

.lg-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.lg-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: color .15s;
}
.lg-nav a:hover { color: #2563eb; }
.lg-nav .badge {
  position: absolute;
  top: -10px;
  right: -22px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  border-radius: 3px;
  letter-spacing: .5px;
  line-height: 1.3;
}

/* ═══════════════════════════════════════
   3. 主体布局（双栏）
   ═══════════════════════════════════════ */
.lg-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  padding: 20px 80px 40px;
  align-items: center;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* ── 左侧：营销内容 ── */
.lg-hero {
  padding-right: 20px;
}
.lg-hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  letter-spacing: -.5px;
  margin-bottom: 24px;
}
.lg-hero h1 .accent {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lg-hero-sub {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 460px;
}

.lg-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 560px;
}
.lg-feature {
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 14px;
  padding: 20px 12px 18px;
  text-align: center;
  transition: all .25s ease;
}
.lg-feature:hover {
  background: rgba(255, 255, 255, .85);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .12);
}
.lg-feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.lg-feature-icon svg { width: 22px; height: 22px; }
.lg-feature-icon.f-1 { background: linear-gradient(135deg, #fb923c, #f97316); box-shadow: 0 6px 14px -4px rgba(249, 115, 22, .4); }
.lg-feature-icon.f-2 { background: linear-gradient(135deg, #60a5fa, #3b82f6); box-shadow: 0 6px 14px -4px rgba(59, 130, 246, .4); }
.lg-feature-icon.f-3 { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 6px 14px -4px rgba(16, 185, 129, .4); }
.lg-feature-icon.f-4 { background: linear-gradient(135deg, #a78bfa, #8b5cf6); box-shadow: 0 6px 14px -4px rgba(139, 92, 246, .4); }
.lg-feature-name {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

/* ── 右侧：表单卡片 ── */
.lg-card {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow:
    0 20px 60px -20px rgba(15, 23, 42, .15),
    0 2px 8px rgba(15, 23, 42, .04);
}
.lg-card-title {
  font-size: 26px;
  font-weight: 600;
  color: #111827;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: .5px;
}

/* 输入框带左侧图标 */
.lg-field {
  position: relative;
  margin-bottom: 16px;
}
.lg-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9ca3af;
  pointer-events: none;
}
.lg-field-input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 46px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  transition: all .2s;
}
.lg-field-input::placeholder { color: #9ca3af; }
.lg-field-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .1);
}
.lg-field-input.has-toggle { padding-right: 46px; }

/* 密码可见性切换 */
.lg-field-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all .15s;
}
.lg-field-toggle:hover { color: #4b5563; background: #f3f4f6; }
.lg-field-toggle svg { width: 18px; height: 18px; }

/* 复选框 / 链接行 */
.lg-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 24px;
  font-size: 13px;
}
.lg-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #4b5563;
  user-select: none;
}
.lg-checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  flex-shrink: 0;
}
.lg-checkbox input:checked {
  background: #3b82f6;
  border-color: #3b82f6;
}
.lg-checkbox input:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.lg-checkbox a { color: #2563eb; }
.lg-checkbox a:hover { text-decoration: underline; }
.lg-forgot {
  color: #6b7280;
  transition: color .15s;
}
.lg-forgot:hover { color: #2563eb; }

/* 提交按钮 */
.lg-submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 6px;
  text-indent: 6px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow:
    0 6px 16px -4px rgba(59, 130, 246, .5),
    inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.lg-submit:hover {
  box-shadow:
    0 10px 24px -6px rgba(59, 130, 246, .6),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}
.lg-submit:active {
  box-shadow: 0 4px 10px -3px rgba(59, 130, 246, .45);
}
.lg-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transition: left .6s ease;
}
.lg-submit:hover::before { left: 100%; }

/* 底部切换链接 */
.lg-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 13.5px;
  color: #6b7280;
}
.lg-switch a {
  color: #2563eb;
  font-weight: 500;
  margin-left: 4px;
}
.lg-switch a:hover { text-decoration: underline; }

/* 条款说明 */
.lg-terms {
  text-align: center;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #9ca3af;
}
.lg-terms a { color: #6b7280; }
.lg-terms a:hover { color: #2563eb; }

/* 消息提示 */
.lg-msg {
  margin: -8px 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}
.lg-msg.show { display: block; }
.lg-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.lg-msg.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ═══════════════════════════════════════
   4. 底部
   ═══════════════════════════════════════ */
.lg-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 12.5px;
  color: #9ca3af;
  flex-shrink: 0;
}
.lg-footer .dot { margin: 0 8px; opacity: .5; }

/* ═══════════════════════════════════════
   5. 响应式
   ═══════════════════════════════════════ */
@media (max-width: 1100px) {
  .lg-main {
    grid-template-columns: 1fr 440px;
    gap: 50px;
    padding: 20px 40px 40px;
  }
  .lg-hero h1 { font-size: 36px; }
  .lg-header { padding: 0 40px; }
  .lg-nav { gap: 24px; }
}

@media (max-width: 880px) {
  .lg-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px 24px 40px;
    max-width: 520px;
  }
  .lg-hero { padding-right: 0; text-align: center; }
  .lg-hero h1 { font-size: 30px; }
  .lg-hero-sub { margin-left: auto; margin-right: auto; }
  .lg-features { margin: 0 auto; }
  .lg-header { padding: 0 24px; }
  .lg-nav { display: none; }
  .lg-brand-sep, .lg-brand-tag { display: none; }
}

@media (max-width: 480px) {
  .lg-features { grid-template-columns: repeat(2, 1fr); }
  .lg-card { padding: 32px 24px; }
  .lg-card-title { font-size: 22px; margin-bottom: 24px; }
}
