/* 思而学教育管理系统 登录页样式（自包含，不依赖 app.css / element-plus）
   1:1 复刻设计稿：所有元素按设计稿 1764×891 的像素坐标绝对定位在 .stage 画布上，
   画布再由脚本按窗口等比缩放（transform: scale），任何分辨率下比例都与稿子一致。 */
:root {
  --accent: #2f8bff;
  --accent-deep: #1a6ff0;
  --ink: #1f2d3d;
  --ink-soft: #5a6a80;
  --ink-muted: #8a94a6;
  --line: #dfe4ec;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 16px;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: #0d3f84;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 底图 ---------- */
.login-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #0d3f84;
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
}
/* 左侧压一层深蓝，白字才读得清；右侧保留原图亮度 */
.login-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 44, 100, .58) 0%, rgba(8, 44, 100, .40) 36%, rgba(8, 44, 100, .06) 62%, rgba(8, 44, 100, 0) 100%);
}

/* ---------- 画布 ---------- */
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1764px;
  height: 891px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  color: #fff;
}
.stage > * { position: absolute; margin: 0; }

/* ---------- 左：品牌区（坐标取自设计稿） ---------- */
.brand-badge {
  left: 95px; top: 42px;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 34px rgba(3, 18, 45, .45), 0 0 0 4px rgba(255, 255, 255, .55);
}
.brand-title {
  left: 262px; top: 68px;
  font-size: 38px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.brand-slogan {
  left: 262px; top: 130px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  letter-spacing: 5px;
  white-space: nowrap;
  color: rgba(255, 255, 255, .92);
}
.brand-slogan::before, .brand-slogan::after {
  content: '';
  height: 1px;
  width: 60px;
  flex: none;
  background: rgba(255, 255, 255, .65);
}

/* 手写体口号 */
.hero-line1, .hero-line2 {
  font-family: 'STXingkai', '华文行楷', 'STKaiti', 'KaiTi', '楷体', serif;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .4);
  transform: rotate(-3deg);
  transform-origin: left bottom;
}
.hero-line1 { left: 120px; top: 236px; font-size: 78px; letter-spacing: 7px; }
.hero-line2 { left: 190px; top: 312px; font-size: 68px; letter-spacing: 5px; }
.hero-stroke {
  left: 202px; top: 378px;
  width: 285px; height: 26px;
  transform: rotate(-3deg);
  transform-origin: left center;
  filter: drop-shadow(0 3px 8px rgba(47, 139, 255, .45));
}

/* 两行块 461~521、中心 491，与底图"思考"那本书（467~512、中心 490）平齐 */
.brand-modules {
  left: 115px; top: 461px;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

/* 六个功能图标：每个 li 用行内 style 定位左上角，圆 84px，标签在下 */
.brand-features { left: 0; top: 0; width: 0; height: 0; list-style: none; padding: 0; }
/* 图标区宽度收在上方文字行「学员 · 排课 · … · 薪酬」的 115~446px 之内：圆 62px，三列起点 115/249/383 */
.brand-features li {
  position: absolute;
  width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  letter-spacing: .5px;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.feat-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .45);
  box-shadow: 0 8px 24px rgba(3, 18, 45, .35), inset 0 0 22px rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.feat-icon svg { width: 30px; height: 30px; }
.feat-icon.is-blue   { color: #2f8bff; border-color: rgba(47, 139, 255, .8);  background: rgba(47, 139, 255, .18); }
.feat-icon.is-green  { color: #26c281; border-color: rgba(38, 194, 129, .8);  background: rgba(38, 194, 129, .18); }
.feat-icon.is-orange { color: #ff9a2e; border-color: rgba(255, 154, 46, .85); background: rgba(255, 154, 46, .18); }
.feat-icon.is-purple { color: #a06bff; border-color: rgba(160, 107, 255, .8); background: rgba(160, 107, 255, .18); }
.feat-icon.is-red    { color: #ff5a6e; border-color: rgba(255, 90, 110, .8);  background: rgba(255, 90, 110, .18); }
.feat-icon.is-indigo { color: #4a7dff; border-color: rgba(74, 125, 255, .8);  background: rgba(74, 125, 255, .18); }

/* ---------- 右：登录卡片（稿子：x 1168~1675，y 135~765） ---------- */
.login-card {
  left: 1168px; top: 135px;
  width: 507px; height: 630px;
  /* 整体按 0.93 缩小，右边缘与垂直中心位置不变（内部元素坐标仍按原稿量） */
  transform: scale(.93);
  transform-origin: right center;
  padding: 0 52px;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(3, 18, 45, .35), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.login-card > *, .login-card form > * { position: absolute; margin: 0; left: 52px; }
.card-brand {
  top: 52px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-deep);
  text-decoration: none;
}
.login-card h2 {
  top: 94px;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
}
.card-title {
  top: 148px;
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  color: #24324a;
}
.card-sub {
  top: 194px;
  font-size: 14.5px;
  line-height: 1;
  color: var(--ink-muted);
}
.login-card form { position: static; }

.field-label {
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
}
.field-label[for="id_username"] { top: 248px; }
.field-label[for="id_password"] { top: 347px; }

.field-input {
  width: 403px;
  height: 52px;
  display: flex;
  align-items: center;
}
.field-input:nth-of-type(1) { top: 272px; }
.field-input.has-toggle { top: 370px; }
.field-input .lead {
  position: absolute;
  left: 16px;
  display: grid;
  place-items: center;
  color: #9aa6b8;
  pointer-events: none;
  transition: color .16s;
}
.field-input .lead svg { width: 20px; height: 20px; }
.field-input input {
  width: 100%;
  height: 100%;
  padding: 0 16px 0 50px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color .16s, box-shadow .16s;
}
.field-input input::placeholder { color: #aab4c3; }
.field-input input:hover { border-color: #c3cddc; }
.field-input input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 139, 255, .14);
}
.field-input:focus-within .lead { color: var(--accent); }
.field-input.has-toggle input { padding-right: 52px; }
.pw-toggle {
  position: absolute;
  right: 8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  color: #9aa6b8;
}
.pw-toggle:hover { color: var(--accent); background: #eef3fb; }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle .icon-off { display: none; }
.pw-toggle.is-on .icon-on { display: none; }
.pw-toggle.is-on .icon-off { display: block; }

.field-row {
  top: 442px;
  width: 403px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  line-height: 1;
}
.remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); }
.remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.forgot { color: var(--accent-deep); text-decoration: none; }
.forgot:hover { text-decoration: underline; }

.login-alert {
  top: 220px;
  width: 403px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13.5px;
  color: #b32a20;
  background: #fef0ef;
  border: 1px solid #f7d4d1;
  border-left: 3px solid #d0342c;
  border-radius: 8px;
}
.login-alert svg { width: 16px; height: 16px; flex: none; }

.login-submit {
  top: 490px;
  width: 403px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 8px;
  text-indent: 8px;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #2f8bff 0%, #1a6ff0 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(26, 111, 240, .38);
  transition: transform .14s, box-shadow .14s, filter .14s;
}
.login-submit svg {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
}
.login-submit:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 30px rgba(26, 111, 240, .45); }
.login-submit:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(26, 111, 240, .35); }
.login-submit:focus-visible { outline: 3px solid rgba(47, 139, 255, .45); outline-offset: 2px; }

.card-foot {
  top: 582px;
  width: 403px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 3px;
  color: var(--ink-soft);
}
.card-foot::before, .card-foot::after {
  content: '';
  height: 1px;
  width: 28px;
  flex: none;
  background: #b9c3d1;
}
