:root {
  --page-bg: #02050d;
  --panel-bg: linear-gradient(
    180deg,
    rgba(18, 45, 74, 0.94) 0%,
    rgba(13, 63, 128, 0.9) 100%
  );
  --panel-border: rgba(39, 196, 255, 0.8);
  --field-bg: rgba(89, 121, 160, 0.32);
  --field-border: rgba(139, 177, 214, 0.2);
  --text-main: rgba(255, 255, 255, 0.95);
  --text-soft: rgba(233, 241, 255, 0.82);
  --text-faint: rgba(218, 232, 255, 0.6);
  --tab-line: #11bfff;
  --button-start: #a8ee7c;
  --button-mid: #24cde0;
  --button-end: #347fea;
  --shadow-glow:
    0 0 0 1px rgba(30, 185, 255, 0.18), 0 18px 40px rgba(0, 52, 115, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family:
    "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--page-bg);
  overflow: hidden;
  height: 100vh;
  position: relative;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.living-video {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  overflow: hidden;
  object-fit: cover;
  pointer-events: none;
}

.page-shell {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 196px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.35);
}

.brand-school {
  width: 360px;
  height: auto;
}

.top-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.top-links a {
  position: relative;
}

.top-links a + a::before {
  content: "|";
  position: absolute;
  left: -11px;
  color: rgba(255, 255, 255, 0.45);
}

.content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 88px);
  padding: 74px 8.5vw 56px;
}

.mobile-copy {
  display: none;
}

.login-stage {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 72vh;
}

.robot-wrap {
  position: absolute;
  top: 0px;
  transform: translateY(-67%);
  right: 15px;
  z-index: 4;
  width: clamp(126px, 11vw, 158px);
}

.robot-wrap img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 70, 150, 0.35));
}

.login-panel {
  position: relative;
  width: min(31vw, 420px);
  min-width: 390px;
  padding: 28px 28px 34px;
  border: 3px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(4px);
}

.panel-title {
  margin: 0 0 26px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.tab {
  position: relative;
  padding: 0 0 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.tab.is-active {
  color: var(--text-main);
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  height: 3px;
  border-radius: 999px;
  background: var(--tab-line);
  box-shadow: 0 0 14px rgba(17, 191, 255, 0.45);
}

.panel-body {
  position: relative;
}

.auth-form {
  display: none;
  position: relative;
}

.auth-form.is-active {
  display: block;
}
.auth-form .check-tips{ width:100%; position: absolute; bottom:-25px;color:red; text-align: center;font-size:13px;}

.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  margin-bottom: 12px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  background: linear-gradient(
    180deg,
    rgba(121, 151, 187, 0.18),
    rgba(83, 114, 151, 0.26)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.field:focus-within {
  border-color: rgba(61, 206, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(61, 206, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.field-icon {
  flex: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
}

.field-icon svg,
.field-action svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--text-main);
  background: transparent;
  font-size: 16px;
}

.field input::placeholder {
  color: rgba(234, 242, 255, 0.72);
}

.field-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.field-action:hover {
  color: rgba(255, 255, 255, 0.98);
}

.toggle-btn .eye-closed {
  display: none;
}

.toggle-btn.is-visible .eye-open {
  display: none;
}

.toggle-btn.is-visible .eye-closed {
  display: block;
}

.captcha-field {
  padding-right: 10px;
  background:
    linear-gradient(180deg, rgba(27, 161, 224, 0.22), rgba(61, 133, 176, 0.18)),
    linear-gradient(180deg, rgba(121, 151, 187, 0.12), rgba(83, 114, 151, 0.21));
}

.captcha-box {
  width: 94px;
  height: 38px;
  border: 1px solid rgba(220, 244, 255, 0.72);
  background: linear-gradient(
    180deg,
    rgba(245, 251, 255, 0.96),
    rgba(221, 236, 247, 0.94)
  );
  color: #9f4f7d;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 8px;
  text-indent: 8px;
  cursor: pointer;
  user-select: none;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 28px 8px;
  cursor: pointer;
  color: rgba(235, 244, 255, 0.9);
  font-size: 16px;
}

.remember-row input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid rgba(161, 204, 255, 0.78);
  border-radius: 2px;
  background: rgba(46, 113, 192, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.remember-row input:checked {
  background: linear-gradient(
    180deg,
    rgba(70, 160, 255, 0.95),
    rgba(50, 121, 255, 0.88)
  );
  border-color: rgba(151, 215, 255, 0.95);
}

.remember-row input:checked::before {
  content: "✓";
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 20px;
  text-align: center;
}

.submit-btn {
  width: 100%;
  height: 58px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--button-start) 0%,
    var(--button-mid) 30%,
    var(--button-end) 100%
  );
  color: rgba(255, 255, 255, 0.96);
  font-size: 20px;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(0, 76, 168, 0.28);
}

.submit-btn:hover {
  filter: brightness(1.05);
}
.submit-btn .in { display: none;  }
.submit-btn .in .icon-loading { display: inline-block; margin-right: 5px; width: 16px; height: 16px; vertical-align:middle; background: url(loading_icon.gif) no-repeat 0 0;  }
.submit-btn.log-in .in { display: inline-block; }
.submit-btn.log-in .on { display: none;  }

.qr-form {
  min-height: 306px;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 306px;
  gap: 14px;
  color: rgba(240, 247, 255, 0.85);
  text-align: center;
}

.qr-box {
  width: 148px;
  height: 148px;
  border: 1px solid rgba(146, 218, 255, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 10px, transparent 10px) 0
      0 / 22px 22px,
    linear-gradient(rgba(255, 255, 255, 0.9) 10px, transparent 10px) 0 0 / 22px
      22px,
    linear-gradient(
      180deg,
      rgba(206, 238, 255, 0.85),
      rgba(134, 192, 255, 0.85)
    );
  box-shadow: inset 0 0 0 10px rgba(16, 39, 70, 0.36);
}

.qr-placeholder p {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.qr-placeholder span {
  display: block;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(235, 244, 255, 0.66);
}

@media (min-width: 861px) {
  body {
    overflow: hidden;
  }

  .page-shell {
    height: 100vh;
  }

  .content {
    min-height: 0;
    height: calc(100vh - 88px);
  }
}

@media (max-width: 1100px) {
  .topbar {
    padding-inline: 20px;
  }

  .brand-logo {
    width: 170px;
  }

  .brand-school {
    width: 300px;
  }

  .content {
    padding-inline: 5vw;
  }

  .login-panel {
    min-width: 360px;
  }
}

@media (max-width: 860px) {
  .tabs{
    padding-top: 10px;
  }
  .topbar {
    align-items: flex-start;
    gap: 12px;
  }

  .brand {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-divider {
    display: none;
  }

  .brand-logo {
    width: 148px;
  }

  .brand-school {
    width: min(66vw, 260px);
  }

  .top-links {
    display: none;
  }

  .content {
    padding: 34px 16px 42px;
  }

  .mobile-copy {
    display: block;
    margin: 0 0 28px 12px;
  }

  .mobile-copy .hello {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
  }

  .mobile-copy h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
  }

  .login-stage {
    justify-content: center;
    min-height: auto;
    padding-top: 8px;
    width: 100%;
  }

  .robot-wrap {
    width: 110px;
  }

  .login-panel {
    width: min(100%, 348px);
    min-width: 0;
    margin: 0 auto;
    padding: 18px 18px 22px;
    border-width: 2px;
    border-radius: 18px 18px 22px 22px;
  }

  .panel-title {
    display: none;
  }

  .tabs {
    gap: 22px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .tab {
    font-size: 17px;
  }

  .tab.is-active::after {
    bottom: -17px;
  }

  .field {
    height: 48px;
    padding-left: 14px;
    gap: 10px;
  }

  .field-icon {
    flex-basis: 18px;
  }

  .field-icon svg,
  .field-action svg {
    width: 18px;
    height: 18px;
  }

  .field input {
    font-size: 15px;
  }

  .captcha-box {
    width: 92px;
    height: 32px;
    font-size: 18px;
  }

  .remember-row {
    margin: 8px 0 20px 2px;
    gap: 10px;
    font-size: 15px;
  }

  .remember-row input {
    width: 18px;
    height: 18px;
    border-radius: 50%;
  }

  .remember-row input:checked::before {
    line-height: 16px;
    font-size: 12px;
  }

  .submit-btn {
    height: 52px;
    font-size: 18px;
  }

  .qr-form,
  .qr-placeholder {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 18px 14px 0;
  }

  .brand {
    display: none;
  }

  .content {
    padding: 62px 14px 32px;
  }

  .mobile-copy {
    margin-left: 14px;
    margin-bottom: 30px;
  }

  .mobile-copy .hello {
    font-size: 26px;
  }

  .mobile-copy h1 {
    font-size: 20px;
    line-height: 1.35;
  }

  .login-panel {
    padding-top: 12px;
  }
}
