:root {
  color-scheme: light;
  --win-blue: #0078d4;
  --win-blue-light: #38a7f4;
  --deep-blue: #16456b;
  --panel: rgba(247, 252, 255, 0.94);
  --panel-line: rgba(112, 171, 207, 0.42);
  --ink: #113047;
  --muted: #5d7188;
  --danger: #c42b1c;
  --bar-height: 64px;
  --bottom-bar-height: 48px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

.oem-login-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(224, 245, 255, 0.34) 52%, rgba(255, 255, 255, 0.16)),
    url("./tech-brain-bg.svg?v=20260630y") center / cover no-repeat,
    #d9f1ff;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.top-taskbar,
.bottom-taskbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(222, 242, 255, 0.86)),
    rgba(236, 248, 255, 0.9);
  border-color: rgba(83, 151, 194, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 24px rgba(68, 128, 168, 0.14);
  backdrop-filter: blur(14px);
}

.top-taskbar {
  justify-content: space-between;
  gap: 24px;
  height: var(--bar-height);
  padding: 7px clamp(18px, 4vw, 60px);
  border-bottom: 1px solid rgba(83, 151, 194, 0.32);
}

.brand-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-strip img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow:
    0 6px 16px rgba(49, 116, 160, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.slogan {
  color: #174d72;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.top-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.menu-item {
  position: relative;
}

.menu-item > button {
  min-width: 94px;
  height: 38px;
  border: 1px solid rgba(63, 138, 188, 0.38);
  border-radius: 4px;
  color: #155075;
  cursor: default;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(218, 241, 255, 0.8)),
    #eef9ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 7px 14px rgba(67, 127, 166, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(520px, calc(100vw - 36px));
  padding: 20px 22px;
  border: 1px solid rgba(93, 157, 197, 0.42);
  border-radius: 8px;
  color: #173a54;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(230, 246, 255, 0.96) 56%, rgba(207, 235, 252, 0.94)),
    #f3fbff;
  box-shadow:
    0 26px 54px rgba(44, 104, 145, 0.3),
    0 10px 22px rgba(61, 123, 165, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(35, 108, 156, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: perspective(820px) rotateX(-9deg) translateY(-8px);
  transform-origin: top right;
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
  visibility: hidden;
}

.menu-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 34px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(93, 157, 197, 0.42);
  border-top: 1px solid rgba(93, 157, 197, 0.42);
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(45deg);
}

.menu-item:hover > .menu-panel,
.menu-item:focus-within > .menu-panel,
.menu-item.is-open > .menu-panel {
  opacity: 1 !important;
  pointer-events: auto;
  transform: perspective(820px) rotateX(0deg) translateY(0) !important;
  visibility: visible !important;
}

.menu-panel h3 {
  margin: 0 0 12px;
  color: #0f4f7d;
  font-size: 18px;
  font-weight: 750;
}

.menu-panel p {
  margin: 0;
  color: rgba(21, 60, 88, 0.9);
  font-size: 14px;
  line-height: 1.8;
}

.menu-panel .company-intro {
  white-space: pre-line;
}

.contact-panel {
  width: min(440px, calc(100vw - 36px));
}

.contact-panel p + p {
  margin-top: 8px;
}

.wechat-line {
  display: flex;
  align-items: start;
  gap: 2px;
  margin-top: 12px;
  color: rgba(21, 60, 88, 0.9);
  font-size: 14px;
  line-height: 1.8;
}

.wechat-line img {
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  object-fit: cover;
  border: 1px solid rgba(63, 138, 188, 0.28);
  border-radius: 6px;
  background: #fff;
  box-shadow:
    0 10px 22px rgba(57, 115, 154, 0.18),
    inset 0 0 0 4px rgba(255, 255, 255, 0.65);
}

.bottom-taskbar {
  justify-content: center;
  gap: 18px;
  height: var(--bottom-bar-height);
  padding: 0 18px;
  border-top: 1px solid rgba(83, 151, 194, 0.28);
  color: rgba(74, 111, 135, 0.62);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 560px);
  align-items: center;
  min-height: calc(100vh - var(--bar-height) - var(--bottom-bar-height));
  padding: clamp(18px, 2.6vw, 36px) clamp(30px, 4.8vw, 68px);
  gap: clamp(24px, 4vw, 72px);
}

.login-shell::before {
  content: "";
  position: fixed;
  inset: var(--bar-height) 0 var(--bottom-bar-height);
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(41, 133, 191, 0.08) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(0deg, rgba(41, 133, 191, 0.08) 1px, transparent 1px) 0 0 / 96px 96px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 72%);
}

.brand-pane,
.form-pane {
  position: relative;
  z-index: 1;
}

.brand-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-left: clamp(0px, 3vw, 52px);
}

.brand-copy {
  max-width: 800px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}

.eyebrow,
.card-head p {
  margin: 0;
  color: #0071bc;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy h1 {
  margin: 12px 0 18px;
  color: #123c5f;
  font-size: clamp(34px, 4.1vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
  word-break: keep-all;
}

.brand-copy h1 span {
  display: block;
}

.brand-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: rgba(25, 68, 98, 0.9);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.8;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.status-bar span {
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(52, 139, 194, 0.34);
  border-radius: 4px;
  color: #0e5e91;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(72, 137, 179, 0.1);
  font-size: 12px;
  font-weight: 750;
}

.form-pane {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.login-card {
  position: relative;
  width: min(100%, 430px);
  padding: 26px 30px;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), var(--panel) 50%, rgba(221, 242, 255, 0.96)),
    rgba(255, 255, 255, 0.9);
  box-shadow:
    0 30px 60px rgba(57, 115, 154, 0.32),
    0 12px 24px rgba(52, 103, 139, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(15, 71, 115, 0.12);
  backdrop-filter: blur(18px);
  transform: perspective(980px) rotateY(-4deg) translateZ(0);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(85, 190, 245, 0.6), rgba(255, 255, 255, 0.18) 36%, rgba(0, 120, 212, 0.26));
  filter: blur(14px);
  opacity: 0.68;
}

.card-head {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin-bottom: 14px;
}

.card-head h2 {
  margin: 5px 0 0;
  color: #16283b;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field label {
  color: #344a62;
  font-size: 14px;
  font-weight: 650;
}

.field input {
  width: 100%;
  height: 44px;
  border: 1px solid #aebdca;
  border-radius: 4px;
  padding: 0 13px;
  color: #142235;
  background:
    linear-gradient(#ffffff, #f1f8fd),
    #fff;
  box-shadow:
    inset 0 2px 4px rgba(10, 31, 55, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input:focus {
  border-color: var(--win-blue);
  box-shadow:
    inset 0 2px 4px rgba(10, 31, 55, 0.1),
    0 0 0 3px rgba(0, 120, 212, 0.18);
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
}

.captcha-code {
  height: 44px;
  border: 1px solid #8fa6ba;
  border-radius: 4px;
  color: #0e3452;
  cursor: pointer;
  background:
    repeating-linear-gradient(135deg, rgba(0, 120, 212, 0.12) 0 7px, rgba(255, 255, 255, 0.52) 7px 14px),
    linear-gradient(145deg, #ffffff, #dcebf7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 4px 10px rgba(0, 40, 82, 0.1);
}

.captcha-code img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
}

.captcha-code span {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: skewX(-8deg);
}

.error-area {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin: 10px 0 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.error-area.is-visible {
  border-color: rgba(196, 43, 28, 0.24);
  background: rgba(196, 43, 28, 0.08);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--win-blue);
}

.form-options a {
  color: #0067b8;
  text-decoration: none;
}

.form-options a:hover {
  text-decoration: underline;
}

.login-button {
  width: 100%;
  height: 46px;
  border: 1px solid #006fbe;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(180deg, #35a9f7, #0078d4 52%, #0062ad),
    var(--win-blue);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 12px 20px rgba(0, 94, 168, 0.24);
  font-size: 16px;
  font-weight: 700;
}

.login-button:hover {
  background:
    linear-gradient(180deg, #53b8fb, #1187df 52%, #006fc4),
    var(--win-blue-light);
}

.login-button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.18),
    0 8px 16px rgba(0, 94, 168, 0.18);
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 900px) {
  :root {
    --bar-height: 62px;
    --bottom-bar-height: 44px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 24px;
  }

  .top-taskbar {
    gap: 14px;
    padding-inline: 18px;
  }

  .slogan {
    font-size: 14px;
  }

  .top-menu {
    gap: 8px;
  }

  .menu-item > button {
    min-width: 82px;
    padding-inline: 8px;
  }

  .brand-pane {
    justify-content: flex-start;
    min-height: 230px;
    padding-left: 0;
  }

  .brand-copy h1 {
    font-size: 34px;
  }

  .form-pane {
    justify-content: center;
  }

  .login-card {
    transform: none;
  }
}

@media (max-width: 520px) {
  .top-taskbar {
    height: auto;
    min-height: var(--bar-height);
    flex-wrap: wrap;
    padding: 8px 16px;
  }

  .brand-strip img {
    width: 46px;
    height: 46px;
  }

  .brand-strip {
    width: 100%;
    justify-content: space-between;
  }

  .slogan {
    font-size: 13px;
  }

  .top-menu {
    width: 100%;
    justify-content: flex-end;
    min-width: 0;
  }

  .menu-panel {
    position: fixed;
    top: calc(var(--bar-height) + 50px);
    right: 12px;
    left: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
  }

  .menu-panel::before {
    right: 28px;
  }

  .bottom-taskbar {
    flex-wrap: wrap;
    gap: 2px 10px;
    height: auto;
    min-height: var(--bottom-bar-height);
    padding-block: 8px;
    font-size: 12px;
  }

  .login-shell {
    padding: 18px;
  }

  .brand-copy h1 {
    font-size: 30px;
  }

  .brand-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .login-card {
    padding: 24px 20px;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }
}
