:root {
  --brand: #2f6bff;
  --brand-dark: #1f4ed8;
  --brand-soft: #eaf1ff;
  --text: #0f1f3d;
  --muted: #64748b;
  --line: #dbe5f5;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 32px 90px rgba(38, 92, 180, 0.16);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 13% 18%, rgba(76, 128, 255, 0.16), transparent 28%),
    radial-gradient(circle at 87% 80%, rgba(87, 141, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #f7fbff 100%);
  overflow: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  padding: 78px clamp(36px, 8vw, 152px);
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(420px, 560px);
  align-items: center;
  gap: clamp(60px, 8vw, 132px);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
  pointer-events: none;
}

.page::after {
  content: "";
  position: absolute;
  left: -8%;
  top: -18%;
  width: 42vw;
  height: 58vh;
  border-radius: 0 0 52% 52%;
  background: linear-gradient(140deg, rgba(58, 117, 255, 0.13), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -110px;
  height: 330px;
  background:
    radial-gradient(ellipse at 16% 64%, rgba(47, 107, 255, 0.13), transparent 42%),
    linear-gradient(170deg, transparent 8%, rgba(47, 107, 255, 0.08) 45%, rgba(255, 255, 255, 0.7) 100%);
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  pointer-events: none;
}

.hero,
.login-card {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 82px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 27px;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, #2f6bff, #1953d6);
  box-shadow: 0 18px 42px rgba(47, 107, 255, 0.32);
  position: relative;
}

.brand-mark::after {
  content: "*";
  position: absolute;
  right: 8px;
  top: 5px;
  font-size: 15px;
  color: #dce9ff;
}

.brand-title {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 8px;
  color: #52617a;
  font-size: 17px;
  font-weight: 600;
}

.headline {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1.18;
  letter-spacing: -0.055em;
  font-weight: 900;
  color: #101c34;
}

.description {
  max-width: 630px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.9;
  font-weight: 500;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 50px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(211, 224, 246, 0.78);
  color: #213252;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 14px 38px rgba(44, 87, 150, 0.08);
  backdrop-filter: blur(14px);
}

.pill svg {
  width: 27px;
  height: 27px;
  color: var(--brand);
  flex: 0 0 auto;
}

.login-card {
  width: 100%;
  padding: 48px 56px 56px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid rgba(190, 209, 242, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.42));
  pointer-events: none;
  z-index: -1;
}

.card-header {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 26px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(203, 216, 238, 0.72);
  margin-bottom: 34px;
}

.shield {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #edf4ff, #f9fbff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.shield-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: white;
  background: linear-gradient(145deg, #4b7cff, #1e56dc);
  clip-path: polygon(50% 0%, 90% 16%, 90% 58%, 50% 100%, 10% 58%, 10% 16%);
  box-shadow: 0 18px 40px rgba(47, 107, 255, 0.28);
}

.card-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.card-subtitle {
  margin: 10px 0 0;
  color: #63708a;
  font-size: 16px;
  font-weight: 600;
}

.field {
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #243452;
  font-size: 16px;
  font-weight: 800;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap svg {
  position: absolute;
  left: 21px;
  width: 23px;
  height: 23px;
  color: #8a9ab6;
  pointer-events: none;
}

.input-wrap .eye {
  left: auto;
  right: 21px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  height: 64px;
  border: 1px solid #ccd8eb;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  color: #15223b;
  font-size: 18px;
  font-weight: 600;
  outline: none;
  padding: 0 58px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input[type="password"] {
  padding-right: 58px;
}

input:focus {
  border-color: rgba(47, 107, 255, 0.75);
  box-shadow: 0 0 0 5px rgba(47, 107, 255, 0.11);
  background: #fff;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 30px;
  color: #60708d;
  font-weight: 700;
  user-select: none;
}

.remember input {
  width: 22px;
  height: 22px;
  accent-color: var(--brand);
}

.login-button {
  width: 100%;
  height: 68px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #2f6bff, #245de8);
  color: white;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(47, 107, 255, 0.34);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 23px 52px rgba(47, 107, 255, 0.39);
  filter: saturate(1.06);
}

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

.login-button:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.login-message {
  min-height: 22px;
  margin: 18px 0 0;
  color: #60708d;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.login-message.error {
  color: #dc2626;
}

.login-message.success {
  color: #059669;
}

.dots {
  position: absolute;
  top: 54px;
  right: 76px;
  width: 230px;
  height: 82px;
  opacity: 0.36;
  background-image: radial-gradient(#2f6bff 2px, transparent 2.4px);
  background-size: 24px 24px;
  pointer-events: none;
}

.ai-illustration {
  position: absolute;
  left: clamp(26px, 6vw, 128px);
  bottom: 36px;
  width: 330px;
  height: 178px;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.platform {
  position: absolute;
  left: 50px;
  bottom: 12px;
  width: 206px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(47, 107, 255, 0.34), rgba(47, 107, 255, 0.03) 70%);
}

.cube {
  position: absolute;
  left: 88px;
  bottom: 38px;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(213, 229, 255, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 26px 58px rgba(47, 107, 255, 0.22);
  display: grid;
  place-items: center;
  transform: rotate(-7deg);
}

.cube span {
  color: white;
  font-size: 54px;
  font-weight: 900;
  text-shadow: 0 8px 22px rgba(47, 107, 255, 0.55);
}

.floating-card {
  position: absolute;
  width: 92px;
  height: 70px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(207, 221, 246, 0.8);
  box-shadow: 0 18px 44px rgba(47, 107, 255, 0.12);
}

.floating-card.one {
  right: 20px;
  bottom: 74px;
  transform: rotate(9deg);
}

.floating-card.two {
  left: 16px;
  bottom: 64px;
  width: 52px;
  height: 52px;
  transform: rotate(-8deg);
}

.mascot {
  position: absolute;
  right: 54px;
  bottom: 62px;
  width: 110px;
  height: 110px;
  z-index: 2;
  opacity: 0.88;
  filter: drop-shadow(0 18px 28px rgba(47, 107, 255, 0.18));
  pointer-events: none;
}

.mascot-body {
  position: absolute;
  left: 18px;
  top: 28px;
  width: 74px;
  height: 64px;
  border-radius: 26px;
  background: linear-gradient(145deg, #ffffff, #dceaff);
  border: 1px solid rgba(175, 202, 245, 0.75);
}

.mascot-face {
  position: absolute;
  left: 25px;
  top: 36px;
  width: 60px;
  height: 38px;
  border-radius: 18px;
  background: #1c2e5b;
}

.mascot-face::before,
.mascot-face::after {
  content: "";
  position: absolute;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72e2ff;
  box-shadow: 0 0 12px rgba(114, 226, 255, 0.9);
}

.mascot-face::before {
  left: 17px;
}

.mascot-face::after {
  right: 17px;
}

.antenna {
  position: absolute;
  left: 53px;
  top: 14px;
  width: 4px;
  height: 18px;
  background: #89aaf4;
  border-radius: 99px;
}

.antenna::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5d8bff;
}

.beian-footer {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 700;
  color: #7a8ba8;
  text-align: center;
}

.beian-footer a {
  color: inherit;
  text-decoration: none;
}

.beian-footer a:hover {
  color: var(--brand);
}

@media (max-width: 1080px) {
  body {
    overflow: auto;
  }

  .page {
    grid-template-columns: 1fr;
    padding: 44px 24px 72px;
    gap: 48px;
  }

  .brand {
    margin-bottom: 44px;
  }

  .login-card {
    max-width: 600px;
  }

  .ai-illustration,
  .mascot {
    display: none;
  }

  .beian-footer {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    justify-self: center;
    margin-top: -18px;
  }
}

@media (max-width: 620px) {
  .headline {
    font-size: 38px;
  }

  .description {
    font-size: 16px;
  }

  .pills {
    gap: 14px;
  }

  .pill {
    min-height: 48px;
    font-size: 15px;
  }

  .login-card {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .card-header {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }

  .shield {
    width: 64px;
    height: 64px;
  }

  .shield-icon {
    width: 44px;
    height: 44px;
  }

  .card-title {
    font-size: 27px;
  }
}
