:root {
  --wine: #1456f0;
  --wine-dark: #0c42c4;
  --wine-soft: #3a70e8;
  --ink: #1f2329;
  --muted: #646a73;
  --paper: #f5f6f7;
  --sand: #dee0e3;
  --blush: #e8f0ff;
  --gold: #6c4ed9;
  --green: #287d1b;
  --line: rgba(31, 35, 41, 0.13);
  --shadow: 0 18px 54px rgba(31, 35, 41, 0.1);
}

body {
  background: var(--paper);
}

.brand-wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--wine);
  font-family: var(--sans);
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -0.1em;
  line-height: 1;
}

.brand-wordmark::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  content: "";
}

.brand-copy strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.34em;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-header {
  height: 88px;
}

.button {
  border-radius: 12px;
  background: var(--wine);
  box-shadow: 0 10px 26px rgba(20, 86, 240, 0.18);
}

.button:hover {
  background: var(--wine-dark);
  box-shadow: 0 14px 34px rgba(20, 86, 240, 0.22);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.hero {
  min-height: 710px;
  grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1.08fr);
}

.hero h1 {
  color: var(--ink);
  font-size: clamp(62px, 7vw, 104px);
}

.hero h1 em {
  color: var(--wine);
}

.hero-text {
  color: var(--muted);
}

.hero-visual {
  min-height: 560px;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(31, 35, 41, 0.02), rgba(31, 35, 41, 0.24)),
    url("./assets/jixiu-boutique.jpg") center / cover no-repeat;
  box-shadow: 0 26px 64px rgba(31, 35, 41, 0.16);
  isolation: isolate;
}

.hero-visual > * {
  z-index: 2;
}

.hero-visual .orbit {
  display: none;
}

.boutique-caption {
  position: absolute;
  top: 26px;
  left: 26px;
  display: grid;
  gap: 5px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 13px;
  color: #fff;
  background: rgba(31, 35, 41, 0.72);
  backdrop-filter: blur(12px);
}

.boutique-caption span {
  color: #d8ccff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.boutique-caption strong {
  font-size: 15px;
}

.signal-card--main {
  top: auto;
  right: 24px;
  bottom: 26px;
  left: auto;
  width: min(430px, calc(100% - 48px));
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.mini-stat--top {
  top: 96px;
  right: 24px;
}

.mini-stat--bottom {
  right: auto;
  bottom: 30px;
  left: 24px;
}

.statement,
.feature-card,
.entry-section article {
  border-color: var(--line);
}

.feature-card--wine,
.workspace {
  background: linear-gradient(145deg, #273142, #1f2329);
}

.entry-section--single {
  grid-template-columns: 1fr;
}

.entry-section--single article {
  min-height: 300px;
  padding: clamp(34px, 5vw, 70px);
  color: #ffffff;
  background: var(--ink);
}

.entry-section--single article > p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.entry-section--single .eyebrow {
  color: #c6d5ff;
}

.login-page {
  padding: 0 24px 36px;
  background:
    radial-gradient(circle at 8% 16%, rgba(20, 86, 240, 0.11), transparent 25%),
    radial-gradient(circle at 92% 88%, rgba(108, 78, 217, 0.08), transparent 28%),
    var(--paper);
}

.login-page--minimal {
  padding: 24px;
}

.login-shell--minimal {
  width: min(620px, 100%);
  min-height: calc(100vh - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.login-panel--minimal {
  width: 100%;
  padding: 30px 32px 34px;
  border: 1px solid rgba(31, 35, 41, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
}

.login-panel--minimal .login-methods {
  margin: 0 0 20px;
}

.login-panel--minimal .qr-frame {
  margin-top: 22px;
}

.login-panel--minimal .qr-status {
  margin-top: 14px;
}

.login-panel--minimal .phone-form {
  padding-top: 0;
}

.login-topbar {
  width: min(1220px, 100%);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(31, 35, 41, 0.09);
}

.login-site-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-site-identity strong {
  color: var(--wine);
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.login-site-identity small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.login-back {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.login-back:hover {
  border-color: rgba(20, 86, 240, 0.28);
  color: var(--wine);
  background: var(--blush);
}

.login-shell {
  width: min(1120px, 100%);
  min-height: 650px;
  margin: 48px auto 0;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border: 1px solid rgba(31, 35, 41, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(23, 32, 51, 0.13);
  backdrop-filter: none;
}

.login-story {
  padding: 68px 58px;
  color: #ffffff;
  background: linear-gradient(145deg, #273142, #1f2329);
}

.login-story .eyebrow {
  color: #c6d5ff;
  font-family: var(--sans);
  font-weight: 950;
  letter-spacing: 0.18em;
}

.login-story h1 {
  font-family: var(--sans);
  font-size: clamp(43px, 4.6vw, 63px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.login-story > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.login-points span {
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.86);
}

.login-points b {
  color: #9db7ff;
}

.login-panel,
.merchant-page,
.merchant-main {
  background: var(--paper);
}

.login-panel {
  padding: 60px 58px 42px;
  background: #fff;
}

.login-heading {
  margin: 0 0 28px;
}

.login-heading .eyebrow {
  margin-bottom: 12px;
  color: var(--wine);
  font-family: var(--sans);
  font-weight: 950;
}

.login-heading h2 {
  font-family: var(--sans);
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.login-heading > p:last-child {
  margin-bottom: 0;
  color: var(--text, #4e5969);
  font-size: 14px;
}

.login-methods {
  padding: 5px;
  border: 0;
  border-radius: 15px;
  background: #f0f2f5;
}

.login-methods button {
  min-height: 46px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.channel-switch button.is-active,
.login-methods button.is-active {
  color: #fff;
  background: var(--wine);
  box-shadow: 0 9px 22px rgba(20, 86, 240, 0.2);
}

.qr-frame {
  margin-top: 26px;
  border-color: rgba(31, 35, 41, 0.1);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.1);
}

.qr-refresh {
  background: rgba(31, 35, 41, 0.94);
}

.qr-status {
  color: var(--text, #4e5969);
}

.qr-steps {
  color: var(--muted);
}

.phone-form label > span:first-child {
  color: var(--ink);
}

.phone-form input,
.code-field button {
  border-color: var(--line);
  background: #fff;
}

.code-field button {
  color: var(--wine);
  background: var(--primary-pale, #f4f7ff);
  font-weight: 800;
}

.login-help {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.operator-seal {
  color: #fff;
  background: var(--wine);
}

.merchant-sidebar {
  background: var(--ink);
}

.merchant-brand .brand-wordmark,
.merchant-sidebar .brand-copy strong {
  color: #ffffff;
}

.merchant-sidebar .brand-copy small,
.merchant-nav button {
  color: rgba(255, 255, 255, 0.68);
}

.merchant-nav button.is-active {
  color: #fff;
  background: var(--wine);
}

.merchant-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
}

.merchant-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.login-panel,
.merchant-page,
.merchant-main,
.signal-card--main {
  background-color: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 4px rgba(20, 86, 240, 0.1);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .brand-wordmark {
    font-size: 27px;
  }

  .login-page {
    padding: 0 15px 24px;
  }

  .login-page--minimal {
    padding: 15px;
  }

  .login-topbar {
    min-height: 72px;
  }

  .login-site-identity strong {
    font-size: 20px;
  }

  .login-site-identity small {
    font-size: 10px;
  }

  .login-back {
    min-height: 40px;
    padding-inline: 12px;
  }

  .login-shell {
    margin-top: 20px;
    border-radius: 22px;
  }

  .login-shell--minimal {
    min-height: calc(100vh - 30px);
    margin: 0 auto;
    border-radius: 0;
  }

  .login-panel--minimal {
    padding: 20px 18px 24px;
    border-radius: 22px;
  }

  .login-story {
    min-height: auto;
    padding: 46px 28px;
  }

  .login-story h1 {
    font-size: clamp(38px, 12vw, 50px);
  }

  .login-points {
    margin-top: 34px;
  }

  .login-panel {
    padding: 38px 22px 30px;
  }

  .login-heading h2 {
    font-size: 34px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 70px);
  }

  .hero-visual {
    min-height: 470px;
  }

  .boutique-caption {
    top: 16px;
    left: 16px;
  }

  .signal-card--main {
    right: 16px;
    bottom: 18px;
    width: calc(100% - 32px);
  }
}

/* The production login page intentionally contains only the login controls. */
.login-shell.login-shell--minimal {
  width: min(620px, 100%);
  min-height: calc(100vh - 48px);
  margin: 0 auto;
  grid-template-columns: 1fr;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.login-panel.login-panel--minimal {
  width: 100%;
  padding: 30px 32px 34px;
  border: 1px solid rgba(31, 35, 41, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
}

@media (max-width: 720px) {
  .login-shell.login-shell--minimal {
    min-height: calc(100vh - 30px);
    margin: 0 auto;
    border-radius: 0;
  }

  .login-panel.login-panel--minimal {
    padding: 20px 18px 24px;
    border-radius: 22px;
  }
}
