:root {
  --ink: #102a43;
  --ink-soft: #38536c;
  --muted: #6b8299;
  --blue: #2f7cf6;
  --blue-deep: #1c5fd6;
  --line: rgba(33, 83, 134, 0.14);
  --card: rgba(255, 255, 255, 0.8);
  --shadow: 0 30px 80px rgba(38, 91, 148, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: #eaf5ff;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

button, input { font: inherit; }
button { cursor: pointer; }

::selection { background: rgba(47, 124, 246, 0.22); }

/* ---------- atmosphere ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, #fafdff 0%, #eef8ff 30%, #e1f1ff 58%, #d4eafd 78%, #c9e3fa 100%);
}

.sky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 62%, rgba(255, 255, 255, 0.9) 100%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8;
}

.aurora-a {
  width: 58vw;
  height: 58vw;
  left: -16vw;
  top: -28vw;
  background: radial-gradient(circle, rgba(142, 198, 255, 0.68) 0%, rgba(142, 198, 255, 0) 68%);
}

.aurora-b {
  width: 50vw;
  height: 50vw;
  right: -18vw;
  top: 4vw;
  background: radial-gradient(circle, rgba(183, 174, 255, 0.42) 0%, rgba(183, 174, 255, 0) 68%);
}

.aurora-c {
  width: 52vw;
  height: 34vw;
  left: 18vw;
  bottom: -18vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 70%);
}

.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.9;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 42%, rgba(255, 255, 255, 0) 72%);
  animation: drift 20s ease-in-out infinite alternate;
}

.cloud-a { width: 46vw; height: 15vw; left: -8vw; bottom: 6vh; }
.cloud-b { width: 38vw; height: 13vw; right: -9vw; bottom: 13vh; animation-delay: -7s; opacity: 0.7; }
.cloud-c { width: 34vw; height: 11vw; left: 30vw; bottom: -4vh; animation-delay: -12s; opacity: 0.8; }

.horizon {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -18vh;
  height: 34vh;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.92));
  filter: blur(2px);
}

@keyframes drift {
  from { transform: translate3d(-1.5%, 0, 0) scale(1); }
  to { transform: translate3d(2%, -1.5%, 0) scale(1.04); }
}

/* ---------- top bar ---------- */

.topbar {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(39, 96, 158, 0.16);
}

.brand-divider {
  width: 1px;
  height: 18px;
  margin: 0 2px 0 4px;
  background: rgba(31, 75, 120, 0.2);
}

.brand-name { font-size: 20px; font-weight: 700; }
.brand-sub { font-size: 13px; font-weight: 500; color: #55718a; letter-spacing: 0.04em; }

.top-actions { display: flex; align-items: center; gap: 12px; }

.secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #4d6b84;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.secure-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22b573;
  box-shadow: 0 0 0 3px rgba(34, 181, 115, 0.14);
}

.help-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #4a91ff, #1f63dc);
  box-shadow: 0 10px 22px rgba(38, 106, 220, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.help-btn svg { width: 16px; height: 16px; fill: currentColor; }
.help-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(38, 106, 220, 0.3); }
.help-btn:active { transform: translateY(0); }

/* ---------- stage ---------- */

.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 48px 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 424px;
  align-items: center;
  gap: 76px;
  min-height: 520px;
}

.hero { padding-bottom: 20px; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.58);
  color: #1e62c8;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 24px rgba(57, 118, 182, 0.1);
  backdrop-filter: blur(12px);
}

.eyebrow .spark { font-size: 13px; color: #3b82f6; }

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(46px, 5.1vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 640;
  color: #102a43;
}

.hero h1 span {
  background: linear-gradient(96deg, #102a43 4%, #1b58a6 56%, #327de2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  margin: 0;
  max-width: 560px;
  color: #4d6982;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  color: #3f668a;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.hero-tags span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* ---------- login card ---------- */

.login-panel {
  display: flex;
  justify-content: flex-end;
  animation: rise 0.7s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.login-card {
  width: 100%;
  max-width: 424px;
  padding: 34px 34px 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: var(--card);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(26px) saturate(118%);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78, 149, 255, 0.55), transparent);
}

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.card-kicker {
  color: #4b79a8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.card-head h2 {
  margin: 7px 0 6px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 650;
  color: #0f2b45;
}

.card-head p { margin: 0; color: #7288a0; font-size: 12px; letter-spacing: 0.01em; }

.admin-pill {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 7px;
  color: #2263c6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(224, 239, 255, 0.86);
  border: 1px solid rgba(186, 216, 255, 0.7);
}

.card-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 20px;
  border-bottom: 1px solid rgba(35, 83, 135, 0.11);
}

.tab {
  position: relative;
  padding: 0 0 11px;
  border: 0;
  background: transparent;
  color: #1e5fb4;
  font-size: 13px;
  font-weight: 650;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2f7cf6, #6ca8ff);
}

.tab-note { padding-bottom: 11px; color: #8aa0b6; font-size: 11px; }

.field-label {
  display: block;
  margin: 0 0 8px;
  color: #3e5a74;
  font-size: 12px;
  font-weight: 600;
}

.input-wrap { position: relative; margin-bottom: 16px; }

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: #8da4bb;
  pointer-events: none;
  transition: fill 0.18s ease;
}

.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 46px;
  border-radius: 12px;
  border: 1px solid rgba(43, 89, 137, 0.13);
  background: rgba(246, 251, 255, 0.9);
  color: #16324b;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-wrap input::placeholder { color: #9cb0c3; }
.input-wrap input:hover { border-color: rgba(43, 89, 137, 0.24); }

.input-wrap:focus-within input {
  border-color: rgba(47, 124, 246, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 124, 246, 0.11);
}

.input-wrap:focus-within .input-icon { fill: #2f7cf6; }

.eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8da4bb;
}

.eye-btn svg { width: 19px; height: 19px; fill: currentColor; }
.eye-btn:hover { background: rgba(47, 124, 246, 0.08); color: #2f7cf6; }

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

.remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b8299;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.remember input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2f7cf6;
  border-radius: 4px;
}

.text-btn, .inline-link {
  border: 0;
  padding: 0;
  color: #2f72d6;
  background: none;
  font-size: 12px;
}

.text-btn:hover, .inline-link:hover { color: #174f9e; text-decoration: underline; text-underline-offset: 3px; }

.form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(220, 55, 87, 0.18);
  background: rgba(255, 241, 244, 0.92);
  color: #b42348;
  font-size: 12px;
  line-height: 1.55;
}

.login-btn {
  position: relative;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #3b87fb 0%, #1f63dc 62%, #1a56c7 100%);
  box-shadow: 0 14px 26px rgba(35, 103, 214, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 30px rgba(35, 103, 214, 0.32); filter: brightness(1.02); }
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { cursor: wait; opacity: 0.82; transform: none; }

.btn-loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.login-btn.loading .btn-label { visibility: hidden; }
.login-btn.loading .btn-loader { display: block; }

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

.agreement {
  margin: 17px 0 0;
  color: #8a9fb3;
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
}

.agreement .inline-link { font-size: 10.5px; color: #5a86b8; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(38, 84, 130, 0.08);
  color: #93a7ba;
  font-size: 10px;
}

.foot-dot { width: 4px; height: 4px; border-radius: 50%; background: #6fa6e8; }

/* ---------- features ---------- */

.features {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 6px 48px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  animation: rise 0.75s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature:hover { background: rgba(255, 255, 255, 0.62); transform: translateY(-1px); }

.feature-icon {
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  box-shadow: 0 9px 18px rgba(44, 103, 167, 0.18);
}

.feature-icon svg { width: 21px; height: 21px; fill: currentColor; }
.feature-icon.video { background: linear-gradient(145deg, #ff8d9c, #e54868); box-shadow: 0 9px 18px rgba(213, 66, 98, 0.24); }
.feature-icon.image { background: linear-gradient(145deg, #ffbd6b, #ec7d3e); box-shadow: 0 9px 18px rgba(218, 120, 54, 0.22); }
.feature-icon.live { background: linear-gradient(145deg, #62b8ff, #2879e8); box-shadow: 0 9px 18px rgba(42, 117, 218, 0.24); }
.feature-icon.ai { background: linear-gradient(145deg, #a891ff, #6b4de0); box-shadow: 0 9px 18px rgba(99, 73, 208, 0.24); }

.feature div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.feature strong { color: #294860; font-size: 13px; font-weight: 650; letter-spacing: 0.01em; }
.feature span { color: #7991a6; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.page-foot {
  position: relative;
  z-index: 2;
  padding: 20px 24px 24px;
  text-align: center;
  color: #7893aa;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(12, 34, 56, 0.32);
  backdrop-filter: blur(5px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 51;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 28px 28px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 40, 68, 0.24);
  animation: rise 0.22s ease both;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #70869b;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover { background: rgba(31, 73, 116, 0.07); color: #173a5c; }
.modal-card h3 { margin: 0 0 12px; font-size: 19px; letter-spacing: -0.02em; color: #102a43; }
.modal-body { color: #5c758c; font-size: 13px; line-height: 1.8; }
.modal-body p { margin: 0 0 10px; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body strong { color: #294860; }

.noscript {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #b42348;
  font-size: 13px;
  box-shadow: var(--shadow);
}

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

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .stage { grid-template-columns: minmax(0, 1fr) 400px; gap: 42px; }
  .hero h1 { font-size: clamp(42px, 5.4vw, 58px); }
  .topbar, .stage, .features { padding-left: 36px; padding-right: 36px; }
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 26px;
    min-height: 0;
  }
  .hero { text-align: center; }
  .hero-copy { margin-left: auto; margin-right: auto; }
  .hero-tags { justify-content: center; }
  .login-panel { justify-content: center; }
  .login-card { max-width: 440px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .secure-chip { display: none; }
  .desktop-only { display: none; }
}

@media (max-width: 560px) {
  .topbar { padding: 18px 18px 0; }
  .brand-logo { width: 34px; height: 34px; border-radius: 10px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 12px; }
  .brand-divider { display: none; }
  .help-btn { height: 33px; padding: 0 13px; font-size: 12px; }
  .help-btn svg { width: 15px; height: 15px; }
  .stage { padding: 22px 18px 0; gap: 26px; }
  .hero h1 { font-size: 36px; margin: 18px 0 14px; }
  .hero-copy { font-size: 13.5px; line-height: 1.8; }
  .eyebrow { font-size: 11px; padding: 7px 12px; }
  .hero-tags { margin-top: 17px; }
  .hero-tags span { font-size: 11px; padding: 6px 10px; }
  .login-card { padding: 26px 22px 20px; border-radius: 22px; }
  .card-head h2 { font-size: 24px; }
  .card-tabs { margin-top: 22px; }
  .features { padding: 18px 18px 0; gap: 9px; }
  .feature { padding: 10px 11px; gap: 9px; border-radius: 13px; }
  .feature-icon { width: 37px; height: 37px; border-radius: 11px; }
  .feature-icon svg { width: 18px; height: 18px; }
  .feature strong { font-size: 12px; }
  .feature span { font-size: 9.5px; }
  .page-foot { padding: 18px 16px 20px; }
}

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