/* Login-only layout; the player stays exclusively on jiexi.html. */
:root {
  --landing-ink: #302a26;
  --landing-muted: #756961;
  --landing-paper: #fffdf9;
  --landing-cream: #fff7ec;
  --landing-orange: #e97931;
  --landing-orange-dark: #c95e19;
  --landing-line: #eadfd3;
}

body[data-page="landing"] {
  background:
    radial-gradient(circle at 6% 86%, rgba(250, 204, 143, .28) 0 4px, transparent 4.5px),
    radial-gradient(circle at 8% 89%, rgba(250, 204, 143, .18) 0 9px, transparent 9.5px),
    var(--landing-paper);
}

.site-header {
  height: 82px;
  border-color: rgba(234, 223, 211, .88);
}

.brand {
  gap: 9px;
  font-size: 20px;
  letter-spacing: -.035em;
}

.brand .brand-mark {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border: 1px solid rgba(213, 143, 81, .2);
  border-radius: 10px;
  object-fit: cover;
}

.site-header .link-button {
  min-height: 44px;
  padding: 10px 0;
  color: #544941;
  font-size: 14px;
  font-weight: 700;
  transition: color .18s ease, transform .18s ease;
}

.site-header .link-button:hover {
  color: var(--landing-orange-dark);
  transform: translateY(-1px);
}

.landing-main {
  display: grid;
  min-height: calc(100dvh - 82px);
  align-items: center;
  padding: 34px 0 54px;
}

.welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, .86fr);
  width: min(100%, 1080px);
  min-height: 584px;
  overflow: hidden;
  border: 1px solid var(--landing-line);
  border-radius: 30px;
  background: var(--landing-paper);
  box-shadow: 0 22px 52px rgba(91, 59, 35, .1);
}

.cat-scene {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 100%;
  padding: 30px;
  background: #fff4e5;
}

.cat-scene::before {
  position: absolute;
  inset: 28px 30px 26px;
  border: 1px solid rgba(213, 143, 81, .28);
  border-radius: 22px;
  content: "";
}

.art-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.art-shape--one {
  width: 290px;
  height: 290px;
  top: -126px;
  right: -106px;
  border: 1px solid rgba(230, 147, 80, .28);
  box-shadow: 0 0 0 28px rgba(255, 250, 239, .42), 0 0 0 56px rgba(255, 250, 239, .25);
}

.art-shape--two {
  width: 160px;
  height: 160px;
  bottom: -82px;
  left: -68px;
  background: rgba(241, 173, 108, .28);
}

.login-cat {
  position: relative;
  z-index: 1;
  width: min(570px, 102%);
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 16px 14px rgba(151, 86, 42, .09));
}

.login-panel {
  position: relative;
  display: grid;
  align-content: center;
  gap: 36px;
  overflow: hidden;
  padding: 64px 56px;
  background: var(--landing-paper);
}

.login-panel::before,
.login-panel::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.login-panel::before {
  width: 230px;
  height: 230px;
  top: -126px;
  right: -104px;
  border: 1px solid rgba(231, 142, 72, .18);
  box-shadow: 0 0 0 30px rgba(255, 245, 232, .72), 0 0 0 60px rgba(255, 249, 240, .8);
}

.login-panel::after {
  width: 116px;
  height: 116px;
  right: -62px;
  bottom: -56px;
  background: rgba(250, 205, 151, .2);
}

.login-heading .card-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 15px;
  color: var(--landing-orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.login-heading h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(34px, 3vw, 45px);
  line-height: 1.18;
  letter-spacing: -.065em;
}

.login-heading::after {
  position: relative;
  z-index: 1;
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 25px;
  border-radius: 999px;
  background: var(--landing-orange);
  content: "";
}

.login-heading .muted {
  max-width: 300px;
  margin-top: 17px;
  color: var(--landing-muted);
  font-size: 15px;
  line-height: 1.8;
}

.login-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.login-actions .linux-button {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  background: var(--landing-orange);
  box-shadow: 0 9px 16px rgba(201, 94, 25, .2);
}

.login-actions .linux-button:hover {
  background: var(--landing-orange-dark);
  box-shadow: 0 12px 20px rgba(201, 94, 25, .26);
}

.login-actions .linux-button:active {
  transform: translateY(0) scale(.985);
}

.login-panel .form-message { min-height: 20px; }

@media (max-width: 780px) {
  .site-header { height: 72px; }
  .brand { font-size: 18px; }
  .brand .brand-mark { width: 29px; height: 29px; }
  .landing-main { min-height: calc(100dvh - 72px); padding: 20px 0 34px; }

  .welcome-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 24px;
  }

  .cat-scene {
    min-height: 337px;
    padding: 20px;
  }

  .cat-scene::before { inset: 18px; border-radius: 18px; }
  .login-cat { width: min(420px, 105%); }

  .login-panel {
    gap: 30px;
    padding: 37px 28px 30px;
  }

  .login-panel::before { width: 180px; height: 180px; top: -116px; right: -105px; }
  .login-panel::after { width: 92px; height: 92px; }
  .login-heading h1 { font-size: 36px; }
}

@media (max-width: 390px) {
  .cat-scene { min-height: 292px; }
  .login-panel { padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .link-button,
  .login-actions .linux-button { transition: none; }
}
