/* 登录 / 注册页：教师个人工作台蓝白教育科技风 */
.auth {
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr);
  background: #eef5ff;
}
.auth-side {
  isolation: isolate;
  padding: 42px clamp(32px, 5.4vw, 92px) 30px;
  color: #123c78;
  background:
    linear-gradient(110deg, rgba(231,243,255,.92) 0%, rgba(225,239,255,.76) 48%, rgba(226,240,255,.25) 100%),
    url('../assets/teacher-ui/hero-scene.webp') center center / cover no-repeat,
    linear-gradient(145deg, #dcecff, #f5f9ff);
  justify-content: space-between;
}
.auth-side::before {
  width: 520px;
  height: 520px;
  right: -260px;
  top: auto;
  bottom: -330px;
  background: rgba(93,151,255,.12);
}
.auth-side::after {
  width: 260px;
  height: 260px;
  left: -150px;
  bottom: 22%;
  background: rgba(255,255,255,.32);
}
.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 17px;
  background: linear-gradient(145deg, #3988ff, #2463e9);
  box-shadow: 0 10px 24px rgba(43,111,225,.24);
}
.auth-brand-mark svg { width: 36px; height: 36px; }
.auth-brand-name {
  color: #123c78;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: .3px;
}
.auth-hero {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin: auto 0;
  padding: 44px 0 60px;
}
.auth-hero h1 {
  color: #123d78;
  font-size: clamp(32px, 3.1vw, 54px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0 0 18px;
  font-weight: 800;
}
.auth-hero p.auth-slogan {
  color: #315b91;
  max-width: none;
  margin: 0 0 34px;
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 600;
  letter-spacing: 1px;
}
.auth-feats {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 120px));
  gap: 14px;
  margin-top: 0;
}
.auth-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #17477f;
  font-size: 15px;
  font-weight: 650;
}
.auth-feat i {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #347cf1;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 22px rgba(71,126,202,.09);
}
.auth-copy {
  position: relative;
  z-index: 1;
  color: #6b8db8;
  font-size: 12px;
}
.auth-main {
  min-width: 0;
  padding: 38px clamp(22px, 4vw, 72px);
  background: linear-gradient(145deg, #f5f8ff 0%, #eaf2ff 100%);
}
.auth-card {
  width: 100%;
  max-width: 650px;
  padding: clamp(30px, 3.2vw, 54px);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 30px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 24px 70px rgba(49,96,166,.13);
  backdrop-filter: blur(18px);
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0;
  margin: 0 0 34px;
  border-bottom: 1px solid #e6edf8;
}
.auth-tabs button {
  justify-self: center;
  min-width: 112px;
  padding: 8px 12px 16px;
  color: #8292ad;
  font-size: 23px;
  font-weight: 750;
}
.auth-tabs button.on { color: #2169ed; }
.auth-tabs button.on::after {
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 3px;
  background: #2872f4;
}
.auth-input { margin-bottom: 16px; }
.auth-input input {
  height: 58px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid #dce5f3;
  background: #fff;
  color: #243b5e;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(35,76,135,.025);
}
.auth-input input::placeholder { color: #91a0b8; }
.auth-input input:focus {
  border-color: #6c9df5;
  box-shadow: 0 0 0 4px rgba(47,116,239,.10);
}
.auth-btn {
  height: 60px;
  margin-top: 8px;
  border-radius: 16px;
  background: linear-gradient(100deg, #2871f2, #2165e8);
  box-shadow: 0 12px 24px rgba(37,104,230,.20);
  font-size: 18px;
  font-weight: 750;
  transition: transform .16s, box-shadow .16s;
}
.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(37,104,230,.25);
}
.auth-btn:active { transform: translateY(0); }
.auth-legal {
  margin-top: 22px;
  color: #8a9bb5;
  font-size: 12px;
}
.auth-legal input { accent-color: #2871f2; }
#auth-hint { min-height: 0; }
@media (max-width: 980px) {
  .auth { grid-template-columns: minmax(0,1fr) minmax(390px,.95fr); }
  .auth-side { padding: 30px 28px 24px; }
  .auth-feats { grid-template-columns: repeat(2, minmax(90px,120px)); gap: 16px 10px; }
  .auth-main { padding: 24px; }
  .auth-card { padding: 32px 28px; }
}
@media (max-width: 720px) {
  .auth { display: flex; flex-direction: column; }
  .auth-side {
    min-height: 300px;
    padding: 24px 22px 26px;
    background-position: center;
  }
  .auth-brand-mark { width: 46px; height: 46px; border-radius: 14px; }
  .auth-brand-name { font-size: 18px; }
  .auth-hero { padding: 36px 0 28px; }
  .auth-hero h1 { font-size: clamp(27px, 7vw, 36px); }
  .auth-hero p.auth-slogan { font-size: 15px; margin-bottom: 20px; }
  .auth-feats { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
  .auth-feat { font-size: 11px; gap: 6px; }
  .auth-feat i { width: 46px; height: 46px; border-radius: 14px; }
  .auth-copy { font-size: 10px; }
  .auth-main { padding: 22px 16px 32px; }
  .auth-card { max-width: none; padding: 28px 22px; border-radius: 24px; }
  .auth-tabs { margin-bottom: 26px; }
  .auth-tabs button { font-size: 20px; }
  .auth-input input { height: 54px; }
}
@media (max-width: 380px) {
  .auth-feats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
