/* ============ 登录页 login.css · 白龙马AIGC学堂 ============ */
.login-wrap { display: grid; grid-template-columns: minmax(400px, 58fr) minmax(400px, 42fr); min-height: 100vh; }

/* ---- 左侧展示（墨棕底 · 瑞金点缀） ---- */
.showcase {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 750px at -8% -18%, #5C4735 0%, #46352A 52%, #2E2318 100%);
  color: #F5EDDC;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 52px 60px;
}
.showcase::before {
  content: ''; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, #F5EDDC 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, #F5EDDC 79px 80px);
  mask-image: radial-gradient(720px 520px at 30% 20%, #000 0%, transparent 75%);
}
.showcase::after {
  content: ''; position: absolute; right: -140px; bottom: -140px; width: 430px; height: 430px;
  border-radius: 50%; border: 1px solid rgba(201, 162, 75, .22);
  box-shadow: 0 0 0 60px rgba(201, 162, 75, .05), 0 0 0 130px rgba(201, 162, 75, .035);
}
.brand-row { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.brand-row .t1 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .14em; }
.brand-row .t2 { font-size: 11px; letter-spacing: .34em; color: rgba(245, 237, 220, .55); margin-top: 2px; }

.hero { position: relative; z-index: 2; max-width: 560px; }
.hero-kicker { font-family: var(--font-kai); font-size: 15px; letter-spacing: .28em; color: #E3C878; margin-bottom: 16px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.32; letter-spacing: .05em;
}
.hero h1 em { font-style: normal; color: #E9C876; }
.hero-sub { margin-top: 18px; font-size: 15px; line-height: 1.9; color: rgba(245, 237, 220, .78); max-width: 460px; }
.feat { list-style: none; margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.feat li {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(201, 162, 75, .4); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; color: rgba(245, 237, 220, .88);
}
.feat li::before { content: ''; width: 6px; height: 6px; background: #C9A24B; transform: rotate(45deg); }

.vquote {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--font-kai);
  font-size: 19px; letter-spacing: .52em; color: rgba(245, 237, 220, .34);
  border-right: 1px solid rgba(201, 162, 75, .3); padding-right: 14px; z-index: 2;
}
.showcase-foot { position: relative; z-index: 2; font-size: 12px; letter-spacing: .1em; color: rgba(245, 237, 220, .5); }

/* ---- 右侧登录 ---- */
.login-side { display: flex; align-items: center; justify-content: center; padding: 44px 34px; }
.login-card { width: 100%; max-width: 408px; }

.ltabs { display: flex; border-bottom: 2px solid var(--line-2); margin-bottom: 26px; }
.ltab {
  appearance: none; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 16.5px; font-weight: 700;
  color: var(--ink-soft); padding: 8px 4px 12px; margin-right: 28px;
  border-bottom: 3px solid transparent; margin-bottom: -2px; letter-spacing: .08em;
  transition: color .15s;
}
.ltab:hover { color: var(--ink); }
.ltab.on { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }

.tabpane { display: none; }
.tabpane.on { display: block; animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.login-form .field { margin-bottom: 16px; }
.login-form .input { padding: 11px 13px; font-size: 14px; }
.form-err { color: var(--cinnabar); font-size: 13px; min-height: 20px; margin: 2px 0 8px; }

/* ---- 公开课程卡片 ---- */
.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; max-height: 56vh; overflow: auto; padding: 2px 4px 6px; }
.pcard { border: 1px solid var(--line); border-radius: 10px; background: #FFFEFA; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcover {
  height: 74px; position: relative; display: flex; align-items: flex-end; padding: 0 13px 9px;
  color: #F7F1E2;
}
.pcover::after {
  content: attr(data-cat); position: absolute; top: 9px; left: 12px;
  font-size: 10.5px; letter-spacing: .16em; border: 1px solid rgba(247, 241, 226, .5);
  border-radius: 3px; padding: 1px 7px;
}
.pcover .glyph { position: absolute; right: 12px; top: 50%; transform: translateY(-58%); font-family: var(--font-display); font-size: 42px; opacity: .3; }
.pcover .pname { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.4; text-shadow: 0 1px 3px rgba(0,0,0,.3); position: relative; }
.pbody { padding: 10px 13px 12px; }
.pmeta { display: flex; gap: 12px; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 8px; }
.pmeta b { color: var(--ink-2); font-weight: 600; }
.prow { display: flex; align-items: baseline; justify-content: space-between; }
.pprice { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--cinnabar); }
.pprice small { font-size: 11px; font-weight: 400; color: var(--ink-soft); margin-right: 1px; }
.pdesc { font-size: 12px; color: var(--ink-soft); line-height: 1.6; margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- 学生自助查询结果 ---- */
.stu-result { margin-top: 20px; border-top: 1px dashed var(--line-2); padding-top: 16px; }
.stu-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sh-ava { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(150deg, #E9D9AE, var(--gold)); color: #35271C; font-family: var(--font-display); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.sh-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.sh-sub { font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-left: 6px; }
.sh-head .grow { flex: 1; }
.stu-result .grow { flex: 1; min-width: 0; }
.stu-sec { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .1em; margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; }
.stu-sec::before { content: ''; width: 7px; height: 7px; background: var(--cinnabar); border-radius: 2px; transform: rotate(45deg); }
.stu-card { display: flex; align-items: center; gap: 12px; background: #FFFEFA; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-bottom: 8px; }
.stu-card.off { opacity: .6; }
.stu-card .sc-main { flex: 1; min-width: 0; }
.sc-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-meta { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }
.sc-nums { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--ink-soft); text-align: right; flex: none; }
.sc-nums b { font-family: var(--font-display); font-size: 13px; }
.sc-cert-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--brown); color: #E9C876; font-family: var(--font-kai); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; transform: rotate(-3deg); }
.stu-card.cert { border-color: #DEC98C; background: linear-gradient(150deg, #FDFBF4, #F6EDD6); }
.stu-card.cert .sc-name { font-family: var(--font-display); }

@media (max-width: 1020px) {
  .login-wrap { grid-template-columns: 1fr; }
  .showcase { min-height: 380px; padding: 40px 36px; }
  .vquote { display: none; }
}
