:root {
  --bg: #081423;
  --bg-soft: #0f1d30;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-line: rgba(131, 148, 173, 0.22);
  --text: #101828;
  --muted: #526077;
  --white: #ffffff;
  --accent-start: #5de2ff;
  --accent-end: #8667ff;
  --accent-strong: #5b5af7;
  --danger: #c62828;
  --shadow: 0 24px 80px rgba(3, 12, 28, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Google Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(93, 226, 255, 0.2), transparent 28%),
    radial-gradient(circle at right 20%, rgba(134, 103, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #091526 0%, #0b1524 48%, #0b1728 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.38;
}

body::before {
  top: -120px;
  left: -90px;
  background: rgba(93, 226, 255, 0.24);
}

body::after {
  right: -140px;
  bottom: -180px;
  background: rgba(134, 103, 255, 0.2);
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 48px;
}

.auth-screen,
.profile-screen {
  position: relative;
  animation: fade-up 0.7s ease both;
}

.auth-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 460px);
  gap: 28px;
  align-items: stretch;
}

.brand-stage,
.auth-panel,
.profile-screen {
  backdrop-filter: blur(14px);
}

.brand-stage {
  padding: 28px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(13, 25, 45, 0.82), rgba(10, 20, 35, 0.72));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-topline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(93, 226, 255, 0.18);
}

.eyebrow,
.panel-kicker,
.point-label,
.detail-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.brand-copy {
  margin-top: 34px;
}

.brand-copy h1,
.panel-head h2,
.profile-hero-copy h2 {
  margin: 10px 0 0;
  line-height: 1.14;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.brand-copy h1 {
  max-width: 12ch;
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 700;
}

.lede,
.panel-note,
.profile-summary,
.profile-footer p:last-child,
.profile-email {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.lede {
  max-width: 58ch;
  margin-top: 18px;
  font-size: 16px;
}

.lede-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lede-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.lede-item span {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.brand-poster {
  position: relative;
  margin-top: 30px;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(93, 226, 255, 0.18), rgba(10, 20, 35, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 16 / 9;
  padding: 0;
}

.brand-poster::after {
  content: "";
  position: absolute;
  inset: auto 10% 10% 10%;
  height: 24%;
  background: linear-gradient(90deg, rgba(93, 226, 255, 0.26), rgba(134, 103, 255, 0.22));
  filter: blur(36px);
  z-index: 0;
}

.brand-video,
.brand-video-fallback {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 28px;
  object-fit: cover;
  background: #050b14;
  box-shadow: 0 20px 48px rgba(3, 12, 28, 0.32);
}

.video-fallback {
  position: absolute;
  inset: auto 50% 28px;
  z-index: 2;
  width: min(calc(100% - 32px), 420px);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(7, 14, 24, 0.82);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.video-fallback[hidden] {
  display: none;
}

.video-fallback p {
  margin: 0;
  line-height: 1.55;
  font-size: 14px;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.video-action {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(93, 226, 255, 0.28);
  border-radius: 999px;
  background: rgba(93, 226, 255, 0.12);
  color: #eef7ff;
  font: inherit;
  line-height: 1.2;
  text-decoration: none;
}

.video-action-link {
  display: inline-flex;
  align-items: center;
}

.brand-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.brand-points div {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-points strong {
  display: block;
  margin-top: 10px;
  line-height: 1.55;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.auth-panel,
.profile-screen {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: 34px;
  align-self: center;
}

.panel-head {
  text-align: center;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  margin: 0 auto 18px;
  padding: 4px;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid #dce3ee;
}

.lang-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #455468;
  font-size: 13px;
  line-height: 1;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: var(--white);
}

.panel-logo {
  width: min(100%, 144px);
  height: auto;
  margin: 0 auto 18px;
  border-radius: 28px;
  object-fit: contain;
  box-shadow: 0 18px 48px rgba(91, 90, 247, 0.18);
}

.panel-kicker {
  color: var(--accent-strong);
}

.panel-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--text);
}

.panel-note {
  margin: 14px auto 0;
  max-width: 32ch;
  color: var(--muted);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  margin: 28px 0 22px;
  border-radius: 18px;
  background: #eef2f7;
}

.tabs button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #455468;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.tabs button.active {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(91, 90, 247, 0.22);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label span {
  color: #344054;
  font-size: 14px;
}

.auth-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #d0d7e2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-form input::placeholder {
  color: #98a2b3;
}

.auth-form input:focus {
  border-color: rgba(91, 90, 247, 0.6);
  box-shadow: 0 0 0 4px rgba(91, 90, 247, 0.12);
  transform: translateY(-1px);
}

.primary-btn,
.secondary-btn {
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.primary-btn {
  margin-top: 8px;
  color: var(--white);
  background: linear-gradient(135deg, #45dfff, #6c6fff 55%, #8f61ff);
  box-shadow: 0 18px 36px rgba(91, 90, 247, 0.22);
}

.secondary-btn {
  padding: 0 20px;
  background: #f5f7fb;
  color: var(--text);
  border: 1px solid #d6dce6;
}

.primary-btn:hover,
.secondary-btn:hover,
.tabs button:hover {
  transform: translateY(-1px);
}

.status-text {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.status-text.success {
  color: #137333;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: #526077;
  font-size: 13px;
}

.trust-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f7fb;
  border: 1px solid #e5eaf1;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-screen {
  padding: 30px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid #e7ebf2;
}

.profile-hero .brand-topline {
  align-self: start;
  background: #edf4ff;
  color: #10213a;
}

.profile-hero-copy h2 {
  font-size: clamp(34px, 4vw, 54px);
  color: #101828;
}

.profile-email,
.profile-summary,
.profile-footer p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.detail-card {
  min-height: 170px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
  border: 1px solid #e4eaf2;
}

.detail-card-accent {
  background: linear-gradient(135deg, rgba(93, 226, 255, 0.14), rgba(134, 103, 255, 0.14));
}

.detail-card strong {
  display: block;
  margin-top: 18px;
  line-height: 1.5;
  font-size: clamp(18px, 2.2vw, 22px);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.profile-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #0d1930;
  color: var(--white);
}

.footer-mark {
  width: min(100%, 104px);
  margin-left: auto;
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 18px 38px rgba(93, 226, 255, 0.14);
}

.hidden {
  display: none !important;
}

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

@media (max-width: 1080px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .brand-stage,
  .auth-panel {
    padding: 26px;
  }

  .brand-copy h1 {
    max-width: 13ch;
  }

  .brand-points,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .footer-mark {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 100%);
    padding: 20px 0 30px;
  }

  .brand-stage,
  .auth-panel,
  .profile-screen {
    padding: 22px;
    border-radius: 24px;
  }

  .brand-copy {
    margin-top: 24px;
  }

  .brand-copy h1 {
    max-width: none;
    font-size: clamp(32px, 9vw, 40px);
  }

  .brand-poster {
    margin-top: 24px;
    border-radius: 22px;
    padding: 0;
  }

  .brand-video,
  .brand-video-fallback {
    width: 100%;
    max-width: none;
    max-height: none;
    border-radius: 18px;
  }

  .brand-points,
  .profile-grid,
  .profile-hero,
  .profile-footer {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    gap: 18px;
  }

  .tabs {
    margin-top: 22px;
  }

  .auth-form input,
  .primary-btn,
  .secondary-btn,
  .tabs button {
    min-height: 52px;
  }

  .secondary-btn {
    width: 100%;
  }

  .panel-logo {
    width: min(100%, 120px);
  }

  .footer-mark {
    width: min(100%, 88px);
  }
}
