/* ==========================================================================
   数字教材 · 登录页（login.css）
   独立于阅读壳：登录时还没有身份，页面不能依赖任何组织数据。
   ========================================================================== */

.lg-body {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  align-items: stretch;
}

.lg-wrap {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 520px);
  width: 100%;
  min-height: 100vh;
}

/* ---------------------------------------------------------------- 左：书脊 */
.lg-art {
  position: relative;
  overflow: hidden;
  padding: 64px 60px;
  background:
    radial-gradient(1200px 600px at 15% 110%, rgba(168, 129, 63, .22), transparent 60%),
    linear-gradient(155deg, #24513c 0%, #1c3d2e 58%, #162f24 100%);
  color: #f3efe4;
  display: flex;
  flex-direction: column;
}

.lg-art::after {
  /* 纸边纹理：很淡，只提供质感，不抢字 */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 7px);
  pointer-events: none;
}

.lg-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .18em;
  position: relative;
  z-index: 1;
}
.lg-brand i {
  width: 20px; height: 20px;
  border-radius: 3px;
  background: #c9a15c;
  display: inline-block;
  box-shadow: inset -4px 0 0 rgba(0,0,0,.16);
}

.lg-art h1 {
  margin-top: auto;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: .02em;
  position: relative;
  z-index: 1;
}

.lg-lead {
  margin-top: 22px;
  font-size: 14px;
  line-height: 2;
  color: rgba(243, 239, 228, .68);
  position: relative;
  z-index: 1;
}

.lg-meta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(243, 239, 228, .46);
  position: relative;
  z-index: 1;
}
.lg-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(243,239,228,.4); }

/* ---------------------------------------------------------------- 右：表单 */
.lg-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  position: relative;   /* 备案号挂在面板底部，不参与表单的垂直居中 */
}

/* 备案号：11.5px、低对比，但必须可见可点。点开去工信部备案系统。 */
.lg-icp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  z-index: 2;
}
.lg-icp a { color: inherit; text-decoration: none; }
.lg-icp a:hover { color: var(--brand); text-decoration: underline; }

.lg-form { width: 100%; max-width: 340px; }

.lg-form h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .04em;
}

.lg-sub {
  margin: 10px 0 30px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}

.lg-field { display: block; margin-bottom: 18px; }
.lg-field span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.lg-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.lg-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 111, 79, .1);
}
.lg-field input:disabled { background: var(--paper-2); color: var(--ink-3); }

.lg-btn {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  letter-spacing: .16em;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .16s, transform .06s;
}
.lg-btn:hover { background: #2a6045; }
.lg-btn:active { transform: translateY(1px); }
.lg-btn:disabled { background: #9aa8a0; cursor: default; }

.lg-msg {
  min-height: 20px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #a33b2f;
}
.lg-msg.ok { color: var(--brand); }

.lg-foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .lg-wrap { grid-template-columns: 1fr; }
  .lg-art { min-height: 220px; padding: 32px 28px; }
  .lg-art h1 { font-size: 24px; margin-top: 34px; }
  .lg-lead, .lg-meta { display: none; }
  .lg-panel { padding: 36px 24px 56px; border-left: 0; }
}
