/* ============================================================
 * 互动中枢 · 教师端登录页
 * ------------------------------------------------------------
 * 复用 teacher.css 的深空 mesh 背景与设计 token，
 * 只写「两栏 + 登录卡」这一层版式，避免和教师端样式打架。
 * ============================================================ */

.login-page { overflow: auto; }

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
}

/* ---------- 左侧品牌栏 ---------- */
.login-hero {
  padding: 0 64px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 100vh;
  justify-content: center;
}
.lh-logo {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.62) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lh-en {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.lh-title {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 6px 34px rgba(10, 132, 255, 0.45);
}
.lh-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.08em;
  margin-bottom: 26px;
}
.lh-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
.lh-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.lh-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.85);
  flex: 0 0 auto;
}
.lh-foot {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.26);
  letter-spacing: 0.1em;
}

/* ---------- 右侧登录面板 ---------- */
.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 48px 40px;
  min-height: 100vh;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 394px;
  padding: 38px 34px 30px;
  border-radius: var(--radius-lg);
  background: rgba(20, 20, 28, 0.72);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid var(--glass-border-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 26px 70px rgba(0, 0, 0, 0.62);
  animation: lc-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes lc-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lc-badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 16px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: #cfe4ff;
  background: rgba(10, 132, 255, 0.16);
  border: 1px solid rgba(10, 132, 255, 0.4);
  border-radius: var(--radius-pill);
}
.lc-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}
.lc-sub {
  margin: 8px 0 26px;
  font-size: 13px;
  color: var(--text-dim);
}

.lc-field { display: block; margin-bottom: 16px; }
.lc-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.lc-field input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.lc-field input::placeholder { color: rgba(255, 255, 255, 0.28); }
.lc-field input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.22);
}
.lc-pw { position: relative; }
.lc-pw input { padding-right: 46px; }
.lc-eye {
  position: absolute;
  top: 50%; right: 8px;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  font-size: 15px;
  line-height: 1;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.lc-eye:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.lc-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
  font-size: 12.5px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.lc-remember input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

.lc-error {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--red);
  line-height: 1.4;
}

.lc-submit {
  width: 100%;
  margin-top: 16px;
  padding: 13px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.4);
  transition: filter 0.2s, transform 0.12s;
}
.lc-submit:hover { filter: brightness(1.1); }
.lc-submit:active { transform: scale(0.98); }
.lc-submit:disabled { opacity: 0.6; cursor: default; filter: none; }

.lc-hint {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-mute);
  text-align: center;
  letter-spacing: 0.08em;
}
.login-brand-foot {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.24);
  letter-spacing: 0.12em;
}

/* 抖动：账号或密码错误时给一次明确反馈 */
.login-card.shake { animation: lc-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes lc-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

/* ---------- 窄屏：收起品牌栏，居中单卡 ---------- */
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-panel { min-height: 100vh; padding: 32px 20px; }
}
