* { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  color-scheme: light;
  --ink: #071642;
  --text: #172957;
  --muted: #7180a1;
  --soft: #9ba8c2;
  --blue: #347dff;
  --purple: #8a55f6;
  --orange: #f07a2e;
  --green: #35c56f;
  --line: rgba(111, 139, 190, 0.18);
  --line-strong: rgba(111, 139, 190, 0.28);
  --panel: rgba(255, 255, 255, 0.74);
  --shadow: 0 28px 80px rgba(68, 104, 170, 0.16);
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body {
  min-height: 100dvh;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 2% 84%, rgba(71, 218, 184, 0.26), transparent 16%),
    radial-gradient(circle at 99% 34%, rgba(154, 83, 241, 0.18), transparent 14%),
    radial-gradient(circle at 98% 62%, rgba(132, 105, 246, 0.14), transparent 12%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 58%, #f8fbff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 4% 26%, rgba(138, 166, 242, 0.18), transparent 6%),
    radial-gradient(circle at 96% 24%, rgba(245, 128, 78, 0.18), transparent 7%),
    radial-gradient(circle at 54% 14%, rgba(133, 105, 246, 0.16), transparent 5%);
  filter: blur(1px);
}

.login-screen {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 28px clamp(20px, 3vw, 58px) 22px;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.auth-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #367dff, #8258f4);
  box-shadow: 0 12px 26px rgba(71, 111, 232, 0.24);
}

.auth-logo::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  transform: rotate(30deg);
}

.help-link,
.admin-login-link,
.small-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #66728e;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.help-link::before {
  content: "?";
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
}

.auth-shell {
  width: min(1830px, 100%);
  min-height: min(820px, calc(100dvh - 142px));
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(420px, 560px);
  align-items: stretch;
  gap: clamp(28px, 4vw, 66px);
  padding: clamp(40px, 4.4vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.96), rgba(247,251,255,0.78)),
    radial-gradient(circle at 62% 28%, rgba(119, 170, 255, 0.2), transparent 34%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  position: relative;
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(225, 236, 255, 0.52) 42% 58%, transparent 58%),
    radial-gradient(circle at 56% 78%, rgba(86, 219, 187, 0.14), transparent 22%);
}

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

.auth-hero {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(6px, 1.2vw, 22px);
}

.auth-hero > :not(.hero-illustration) {
  position: relative;
  z-index: 2;
}

.brand-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(74, 126, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #2f6fe5;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(85, 124, 206, 0.08);
}

.brand-pill span:first-child {
  transform-origin: 70% 70%;
  animation: wave 1.7s ease-in-out infinite;
}

.hero-title {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--ink);
  font-size: clamp(48px, 4.6vw, 76px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-title .line {
  display: block;
  white-space: nowrap;
}

.hero-title .accent-blue {
  color: transparent;
  background: linear-gradient(110deg, #7d57f4, #458bff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-title .accent-warm {
  color: transparent;
  background: linear-gradient(105deg, #ff9a35, #7b55f4);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-subtitle {
  max-width: 690px;
  margin: 18px 0 0;
  color: #51628a;
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 800;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(530px, 100%);
  margin-top: 34px;
}

.feature-card {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  padding: 23px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 40px rgba(69, 104, 172, 0.12), inset 0 1px 0 rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
}

.feature-card strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.feature-card span {
  display: block;
  margin-top: 9px;
  color: #51628a;
  font-size: 15px;
  font-weight: 800;
}

.feature-card.ai strong { color: #7043ef; }
.feature-card.ops strong { color: #2e75ed; }
.feature-card.data strong { color: #2ea678; }

.feature-icon {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 92px;
  height: 76px;
  transform: translateX(-50%);
  border-radius: 22px;
}

.ai .feature-icon {
  background: linear-gradient(145deg, #8661ff, #a97cff);
  box-shadow: 0 20px 42px rgba(103, 80, 230, 0.28);
}

.ai .feature-icon::before,
.ops .feature-icon::before,
.data .feature-icon::before,
.data .feature-icon::after {
  content: "";
  position: absolute;
}

.ai .feature-icon::before {
  inset: 16px 18px;
  border: 4px solid rgba(255,255,255,0.88);
  border-radius: 12px;
}

.ai .feature-icon::after {
  content: "AI";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.ops .feature-icon {
  border: 4px solid rgba(91, 145, 244, 0.36);
  background: linear-gradient(180deg, #f9fcff, #dfeeff);
  box-shadow: 0 18px 36px rgba(72, 130, 255, 0.16);
}

.ops .feature-icon::before {
  left: 19px;
  right: 19px;
  top: 22px;
  height: 6px;
  border-radius: 999px;
  background: #8eb2f8;
  box-shadow: 0 17px 0 #bfd4ff, 0 34px 0 #cbdcff;
}

.ops .feature-icon::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6eb1ff, #4276ef);
}

.data .feature-icon {
  background: linear-gradient(145deg, rgba(127, 232, 198, 0.78), rgba(221, 255, 241, 0.9));
  box-shadow: 0 18px 36px rgba(55, 185, 130, 0.18);
}

.data .feature-icon::before {
  left: 22px;
  bottom: 16px;
  width: 50px;
  height: 48px;
  clip-path: polygon(52% 0, 100% 100%, 0 100%);
  background: linear-gradient(150deg, #5ce0b6, #30b985);
}

.data .feature-icon::after {
  right: 18px;
  bottom: 18px;
  width: 8px;
  height: 32px;
  border-radius: 999px;
  background: rgba(43, 170, 121, 0.5);
  box-shadow: -15px 10px 0 rgba(43, 170, 121, 0.35);
}

.hero-illustration {
  position: absolute;
  left: min(32vw, 610px);
  bottom: 42px;
  z-index: 1;
  width: min(52vw, 840px);
  aspect-ratio: 16 / 9;
  max-width: 820px;
  pointer-events: none;
  background:
    radial-gradient(circle at 44% 62%, rgba(130, 159, 255, 0.2), transparent 34%),
    url("./assets/auth/auth-hero-3d.png") center / contain no-repeat;
  filter: drop-shadow(0 26px 38px rgba(75, 98, 204, 0.12));
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 78%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, #000 78%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  animation: heroFloat 4.8s ease-in-out infinite;
}

.ready-strip {
  width: min(470px, 100%);
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #253862;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(70, 105, 166, 0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
}

.ready-strip strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(78, 209, 138, 0.16);
  color: #2ebf69;
  font-size: 14px;
}

.login-card,
.modal-card {
  position: relative;
  z-index: 3;
  align-self: center;
  width: min(100%, 560px);
  padding: clamp(34px, 3.4vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 70px rgba(72, 101, 166, 0.13), inset 0 1px 0 rgba(255,255,255,0.92);
  backdrop-filter: blur(26px);
}

.login-cover {
  display: none;
}

.login-title span {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
}

.login-title h1,
.modal-head strong {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.1;
  letter-spacing: 0;
}

.login-title p {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}

label {
  display: block;
  margin: 18px 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 62px;
  margin-top: 10px;
  padding: 0 20px;
  border: 1px solid rgba(109, 132, 177, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(62, 88, 139, 0.05);
}

input::placeholder {
  color: #a8b3ca;
}

input:focus,
select:focus {
  border-color: rgba(83, 132, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(82, 133, 255, 0.12);
}

.login-job-card {
  min-height: 82px;
  margin: 18px 0;
  padding: 14px 18px;
  border: 1px solid rgba(109, 132, 177, 0.2);
  border-radius: 14px;
  background: rgba(246, 249, 255, 0.72);
}

.login-job-card span,
.login-job-card small {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.login-job-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 19px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 24px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 16px;
}

.remember-check input,
.register-agree input {
  width: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: var(--blue);
}

.login-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}

button {
  min-height: 62px;
  border: 1px solid rgba(111, 139, 190, 0.22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(72, 101, 166, 0.12);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.primary-btn {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(100deg, #347dff 0%, #8855f6 100%);
  box-shadow: 0 18px 34px rgba(72, 101, 233, 0.24);
}

.secondary-btn {
  color: #3976ee;
  background: rgba(255, 255, 255, 0.76);
}

.admin-login-link {
  width: max-content;
  min-height: 54px;
  margin: 20px auto 0;
  padding: 0 32px;
  border: 1px solid rgba(111, 139, 190, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #3976ee;
  backdrop-filter: blur(14px);
}

.auth-message {
  min-height: 22px;
  margin-top: 12px;
  color: #e26335;
  font-weight: 900;
}

.modal-panel {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 88%, rgba(71, 218, 184, 0.18), transparent 18%),
    rgba(238, 245, 255, 0.82);
  backdrop-filter: blur(18px);
}

.modal-card {
  width: min(100%, 560px);
  max-height: min(900px, calc(100dvh - 56px));
  overflow: auto;
}

.register-shell .hero-illustration {
  left: min(34vw, 640px);
  bottom: 52px;
  width: min(45vw, 720px);
  opacity: 0.92;
}

.modal-card > .primary-btn,
.modal-card > .secondary-btn {
  width: 100%;
  margin-top: 12px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.icon-btn {
  flex: 0 0 auto;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  color: #66728e;
  background: rgba(246, 249, 255, 0.82);
  font-size: 24px;
}

.register-tip {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.register-agree {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 20;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(24, 38, 74, 0.88);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(62, 88, 139, 0.18);
}

.login-beian {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.login-beian a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid rgba(111, 139, 190, 0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  color: #8491ac;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.login-beian img {
  display: block;
  width: 20px;
  height: 20px;
}

.copy-login .register-copy,
.copy-register .login-copy {
  display: none;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  22% { transform: rotate(18deg); }
  44% { transform: rotate(-10deg); }
  66% { transform: rotate(10deg); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1280px) {
  .auth-shell {
    grid-template-columns: 1fr minmax(400px, 500px);
    padding: 40px;
  }

  .hero-illustration {
    left: 43%;
    width: 54vw;
  }

  .feature-grid {
    width: min(470px, 100%);
  }

  .feature-card {
    min-height: 178px;
  }
}

@media (min-width: 981px) and (max-width: 1680px) {
  .auth-shell {
    grid-template-columns: minmax(520px, 1fr) minmax(420px, 520px);
    gap: clamp(24px, 3vw, 42px);
  }

  .hero-title {
    max-width: 620px;
    font-size: clamp(50px, 4vw, 66px);
  }

  .feature-grid {
    width: min(520px, 100%);
  }

  .hero-illustration {
    left: clamp(240px, 20vw, 340px);
    bottom: clamp(18px, 3vh, 44px);
    width: min(56vw, 780px);
    opacity: 0.9;
  }

  .login-card {
    width: min(100%, 520px);
  }
}

@media (min-width: 981px) and (max-height: 860px) {
  .login-screen {
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .auth-shell {
    min-height: min(720px, calc(100dvh - 118px));
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .login-card {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero-illustration {
    bottom: 28px;
    width: min(50vw, 700px);
  }
}

@media (max-width: 980px) {
  .login-screen {
    padding: 18px 14px 18px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px;
  }

  .auth-hero {
    padding-left: 0;
  }

  .hero-title {
    font-size: clamp(38px, 9vw, 58px);
  }

  .hero-illustration {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100%, 720px);
    margin: 4px auto -28px;
  }

  .login-card {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .auth-topbar {
    gap: 12px;
  }

  .auth-brand {
    font-size: 20px;
  }

  .auth-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .help-link {
    font-size: 0;
  }

  .auth-shell {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .hero-title .line {
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
  }

  .feature-card {
    min-height: 92px;
    padding: 17px 112px 17px 18px;
  }

  .feature-icon {
    left: auto;
    right: 20px;
    bottom: 13px;
    width: 72px;
    height: 58px;
    transform: none;
  }

  .ready-strip {
    margin-top: 18px;
    font-size: 13px;
  }

  .login-card,
  .modal-card {
    padding: 26px 18px;
    border-radius: 22px;
  }

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

  .login-beian a {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
