:root {
  color-scheme: dark;
  --cyan: #49e7ff;
  --cyan-soft: rgba(73, 231, 255, 0.2);
  --amber: #ffbc3f;
  --amber-strong: #ffc857;
  --ink: #e9f8ff;
  --muted: #89a2ad;
  --panel: rgba(7, 19, 28, 0.72);
  --line: rgba(126, 230, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  background:
    linear-gradient(115deg, rgba(4, 10, 16, 0.96) 0%, rgba(6, 18, 27, 0.62) 48%, rgba(5, 9, 13, 0.94) 100%),
    url("./assets/tech-honeycomb-bg.svg") center / cover no-repeat fixed,
    #05090d;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 188, 63, 0.18), transparent 25%),
    radial-gradient(circle at 16% 80%, rgba(73, 231, 255, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 86px 86px, 86px 86px;
  mix-blend-mode: screen;
}

body::after {
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.68) 100%);
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 440px);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0 76px;
}

.brand-panel {
  position: relative;
  max-width: 680px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 34px;
  border: 1px solid rgba(255, 200, 87, 0.55);
  background:
    linear-gradient(145deg, rgba(255, 200, 87, 0.22), rgba(73, 231, 255, 0.08)),
    rgba(3, 12, 18, 0.74);
  box-shadow:
    0 0 28px rgba(255, 188, 63, 0.25),
    inset 0 0 24px rgba(255, 188, 63, 0.16);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  overflow: visible;
}

.logo-shell {
  fill: rgba(255, 200, 87, 0.08);
  stroke: rgba(255, 200, 87, 0.72);
  stroke-width: 2;
}

.logo-wing {
  fill: rgba(73, 231, 255, 0.12);
  stroke: rgba(73, 231, 255, 0.46);
  stroke-width: 1.5;
}

.logo-core {
  fill: rgba(255, 188, 63, 0.9);
  filter: drop-shadow(0 0 8px rgba(255, 188, 63, 0.45));
}

.logo-circuit {
  fill: none;
  stroke: rgba(229, 248, 255, 0.78);
  stroke-linecap: round;
  stroke-width: 2.2;
}

.logo-node {
  fill: #061018;
  stroke: var(--cyan);
  stroke-width: 2;
}

.logo-node.small {
  fill: var(--cyan);
  stroke: none;
}

.eyebrow,
.card-header p {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: none;
  margin: 18px 0 22px;
  font-size: 68px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0 0 22px rgba(73, 231, 255, 0.18),
    0 12px 44px rgba(0, 0, 0, 0.48);
}

.login-card {
  position: relative;
  width: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(10, 28, 40, 0.84), rgba(4, 11, 17, 0.76)),
    rgba(7, 19, 28, 0.72);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

.login-card::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(73, 231, 255, 0.55), transparent) top left / 100% 1px no-repeat,
    linear-gradient(0deg, transparent, rgba(255, 188, 63, 0.5), transparent) top right / 1px 100% no-repeat;
}

.card-header {
  margin-bottom: 34px;
}

.card-header h2 {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

form {
  display: grid;
  gap: 12px;
}

label {
  color: #d8e9ef;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(137, 205, 224, 0.22);
  border-radius: 0;
  outline: none;
  background: rgba(3, 12, 18, 0.74);
  color: #f6fbff;
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

form > input,
.password-field input {
  padding: 0 16px;
}

input::placeholder {
  color: rgba(184, 207, 216, 0.52);
}

input:focus {
  border-color: rgba(73, 231, 255, 0.78);
  background: rgba(5, 18, 27, 0.86);
  box-shadow: 0 0 0 4px var(--cyan-soft), 0 0 22px rgba(73, 231, 255, 0.16);
}

.password-field {
  border: 1px solid rgba(137, 205, 224, 0.22);
  background: rgba(3, 12, 18, 0.74);
}

.password-field:focus-within {
  border-color: rgba(73, 231, 255, 0.78);
  box-shadow: 0 0 0 4px var(--cyan-soft), 0 0 22px rgba(73, 231, 255, 0.16);
}

.password-field input {
  min-height: 50px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.password-field input:focus {
  box-shadow: none;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 0;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.remember input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--amber);
}

a {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.form-message {
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--amber-strong);
  font-size: 13px;
  line-height: 1.4;
}

.form-message.success {
  color: var(--cyan);
}

.login-button {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  border: 0;
  background:
    linear-gradient(135deg, rgba(255, 200, 87, 1), rgba(245, 151, 38, 1)),
    var(--amber);
  color: #1c1204;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 0 16px 38px rgba(255, 164, 41, 0.22);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.login-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.1);
  box-shadow: 0 18px 52px rgba(255, 188, 63, 0.34);
}

.login-button:active {
  transform: translateY(0);
}

.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(137, 205, 224, 0.16);
  color: #a9c4ce;
  font-size: 13px;
}

.security-note span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(73, 231, 255, 0.9);
}

footer {
  position: fixed;
  right: 24px;
  bottom: 18px;
  left: 24px;
  z-index: 2;
  color: rgba(218, 235, 242, 0.72);
  font-size: 13px;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

footer a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 34px;
    width: min(640px, calc(100% - 36px));
    padding: 40px 0 82px;
  }

  .brand-panel {
    max-width: none;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
    margin-bottom: 22px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  h1 {
    font-size: 62px;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .shell {
    width: min(100% - 28px, 520px);
    padding-top: 28px;
  }

  h1 {
    font-size: 50px;
    white-space: normal;
  }

  .login-card {
    padding: 24px;
  }

  .card-header h2 {
    font-size: 26px;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  footer {
    position: static;
    width: min(100% - 28px, 520px);
    margin: -52px auto 22px;
    text-align: center;
  }
}
