@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@property --cta-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: light;
  --ds-font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ds-font-display: "Montserrat", var(--ds-font-body);
  --ds-ink: #1e232c;
  --ds-display: #152443;
  --ds-muted: rgba(19, 29, 47, 0.66);
  --ds-subtle: rgba(19, 29, 47, 0.50);
  --ds-brand: #4d6bfe;
  --ds-brand-deep: #3a65c2;
  --ds-brand-text: #234792;
  --ds-line: rgba(21, 36, 67, 0.10);
  --ds-danger: #c62828;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #f4f7fb;
  color: var(--ds-ink);
  font-family: var(--ds-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.cover-page {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  background:
    radial-gradient(72rem 54rem at 12% 0%, rgba(138, 163, 214, 0.48), transparent 72%),
    radial-gradient(56rem 42rem at 88% 8%, rgba(255, 255, 255, 0.88), transparent 68%),
    linear-gradient(180deg, #9ec2e7 0%, #dfeaf6 44%, #f7f9fc 100%);
}

/* DeepSeek Official WebGL2 fluid ambient canvas */
.ds-ambient-shell {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ds-ambient-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.78;
  pointer-events: none;
}

/* DeepSeek 90px spring-physics interactive dot grid */
.detail-reactive-grid {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.90) 14%, rgba(0, 0, 0, 0.45) 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.90) 14%, rgba(0, 0, 0, 0.45) 78%, transparent 100%);
}

.cover-topbar,
.cover-center,
.cover-footer {
  position: relative;
  z-index: 2;
}

/* Streamlined DeepSeek-style top navigation: pure cutout logo on top-left, zero white box */
.cover-topbar {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-cutout {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border: 0;
}

.brand-cutout img {
  display: block;
  height: 36px;
  width: auto;
  background: transparent;
  filter: drop-shadow(0 1px 6px rgba(255, 255, 255, 0.55));
}

.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ds-brand-text);
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 180ms var(--ease), color 180ms var(--ease);
}

.topbar-link:hover {
  opacity: 1;
  color: var(--ds-brand);
}

/* Centered DeepSeek editorial stage */
.cover-center {
  width: 100%;
  max-width: 780px;
  margin: auto;
  padding: 28px 24px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-rise {
  animation: hero-rise 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-rise-delay-1 {
  animation-delay: 60ms;
}

.hero-rise-delay-2 {
  animation-delay: 130ms;
}

.hero-rise-delay-3 {
  animation-delay: 200ms;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DeepSeek announcement sparkle pill */
.ds-announcement {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ds-brand-text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 18px rgba(35, 71, 146, 0.06);
}

.announcement-sparkle {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--ds-brand);
}

.announcement-sparkle svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: currentColor;
}

.sparkle-large {
  transform-origin: 8px 9px;
  animation: sparkle-pulse 2.4s ease-in-out infinite;
}

.sparkle-small {
  transform-origin: 15px 3px;
  animation: sparkle-twinkle 2.4s 400ms ease-in-out infinite;
}

@keyframes sparkle-pulse {
  50% { transform: scale(1.16); opacity: 1; }
}
@keyframes sparkle-twinkle {
  50% { transform: scale(0.58); opacity: 0.4; }
}

.cover-title {
  margin: 0 0 14px;
  font-family: var(--ds-font-display);
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--ds-display);
  text-wrap: balance;
}

.cover-subtitle {
  margin: 0 0 32px;
  max-width: 680px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ds-muted);
  text-wrap: balance;
}

/* Centered DeepSeek frosted-glass login window with animated luminous conic border */
.login-window {
  --cta-border-angle: 0deg;
  position: relative;
  width: min(100%, 440px);
  padding: 32px 32px 26px;
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 20px 56px rgba(35, 71, 146, 0.11),
    0 2px 10px rgba(35, 71, 146, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  text-align: left;
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.login-window::before {
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--cta-border-angle),
    rgba(58, 101, 194, 0.14),
    rgba(120, 170, 255, 0.78),
    rgba(58, 101, 194, 0.14),
    rgba(120, 170, 255, 0.78),
    rgba(58, 101, 194, 0.14)
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 320ms var(--ease);
  animation: rotating-border 6s linear infinite;
}

.login-window:hover,
.login-window:focus-within {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.70);
  box-shadow:
    0 24px 64px rgba(35, 71, 146, 0.14),
    0 2px 12px rgba(35, 71, 146, 0.06);
}

.login-window:hover::before,
.login-window:focus-within::before {
  opacity: 1;
}

@keyframes rotating-border {
  to { --cta-border-angle: 360deg; }
}

.window-header {
  margin-bottom: 22px;
}

.window-header h2 {
  margin: 0 0 6px;
  font-family: var(--ds-font-display);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ds-brand-deep);
  letter-spacing: -0.015em;
}

.window-header p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ds-muted);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-display);
}

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

.input-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: rgba(35, 71, 146, 0.52);
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 15px 0 41px;
  border: 1.5px solid rgba(35, 71, 146, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ds-ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.field input.no-icon {
  padding-left: 14px;
}

.field input::placeholder {
  color: rgba(19, 29, 47, 0.38);
}

.field input:hover {
  border-color: rgba(77, 107, 254, 0.42);
}

.field input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--ds-brand);
  box-shadow: 0 0 0 4px rgba(77, 107, 254, 0.14);
}

.form-message {
  min-height: 20px;
  margin: 2px 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ds-danger);
}

.form-message a {
  color: var(--ds-brand-deep);
  font-weight: 600;
}

.primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #3a65c2 0%, #4d6bfe 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(77, 107, 254, 0.28);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(77, 107, 254, 0.36);
  filter: brightness(1.04);
}

.primary-button:active:not(:disabled) {
  transform: translateY(0);
}

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

.primary-button svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms var(--ease);
}

.primary-button:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.button-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}

.primary-button.is-loading .button-spinner {
  display: inline-block;
}

.primary-button.is-loading .button-arrow {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid rgba(35, 71, 146, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ds-display);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.secondary-button:hover:not(:disabled) {
  background: #ffffff;
  border-color: rgba(77, 107, 254, 0.42);
}

.current-session {
  padding: 16px;
  border-radius: 15px;
  background: rgba(236, 243, 255, 0.72);
  border: 1px solid rgba(77, 107, 254, 0.22);
  margin-bottom: 12px;
}

.current-session h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--ds-display);
}

.current-session p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ds-muted);
}

.current-session-actions {
  display: grid;
  gap: 10px;
}

.window-footnote {
  margin: 18px 0 0;
  padding-top: 15px;
  border-top: 1px solid rgba(21, 36, 67, 0.08);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ds-subtle);
  text-align: center;
}

.window-footnote a {
  color: var(--ds-brand-deep);
  text-decoration: none;
  font-weight: 600;
}

.window-footnote a:hover {
  text-decoration: underline;
}

/* Understated 5-stage indicator strip below login card */
.stage-pills {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ds-brand-text);
  font-size: 12.5px;
  font-weight: 500;
}

.stage-pill b {
  font-family: var(--ds-font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-brand);
}

.cover-footer {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ds-subtle);
}

.cover-footer a {
  color: var(--ds-muted);
  text-decoration: none;
}

.cover-footer a:hover {
  color: var(--ds-brand-deep);
}

[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .detail-reactive-grid {
    display: none;
  }
  .cover-topbar {
    padding: 18px 20px 0;
  }
  .brand-cutout img {
    height: 28px;
  }
  .cover-center {
    padding: 20px 18px 28px;
  }
  .cover-title {
    font-size: 28px;
  }
  .cover-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .login-window {
    padding: 24px 20px 20px;
    border-radius: 20px;
  }
  .cover-footer {
    padding: 0 20px 18px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
