:root {
  color-scheme: light;
  --bg: #f8efe2;
  --bg-deep: #ead6bf;
  --ink: #171512;
  --muted: #5d5650;
  --panel: rgba(255, 249, 242, 0.78);
  --panel-strong: rgba(255, 252, 247, 0.92);
  --line: rgba(23, 21, 18, 0.1);
  --accent: #be5d2c;
  --accent-strong: #93411a;
  --accent-soft: rgba(190, 93, 44, 0.12);
  --success: #195d4b;
  --shadow: 0 26px 90px rgba(98, 62, 31, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 192, 120, 0.42), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(190, 93, 44, 0.14), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.76;
  pointer-events: none;
}

.ambient-left {
  top: 92px;
  left: -72px;
  width: 240px;
  height: 240px;
  background: rgba(255, 183, 115, 0.48);
}

.ambient-right {
  right: -84px;
  bottom: 120px;
  width: 300px;
  height: 300px;
  background: rgba(190, 93, 44, 0.2);
}

.auth-shell,
.home-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-layout,
.home-layout {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.auth-layout {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 420px);
  gap: 24px;
  align-items: center;
  padding: 28px 0 14px;
}

.brand-panel,
.login-card,
.home-layout {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand-panel {
  padding: 42px 38px;
  border-radius: 30px;
  animation: float-up 520ms ease-out both;
}

.login-panel {
  animation: float-up 620ms ease-out both;
}

.login-card {
  padding: 34px 28px 28px;
  border-radius: 28px;
}

.eyebrow,
.login-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.brand-panel h1,
.home-header h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.94;
}

.home-layout-narrow {
  width: min(880px, calc(100% - 32px));
}

.login-card h2 {
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1;
}

.lead,
.login-copy {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.feature-list article,
.entry-card,
.ops-panel {
  display: grid;
  gap: 14px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(23, 21, 18, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
}

.feature-list article,
.entry-card {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
}

.feature-list span,
.entry-index {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.feature-list strong,
.entry-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.feature-list p,
.entry-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  border: 1px solid rgba(23, 21, 18, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(190, 93, 44, 0.5);
  box-shadow: 0 0 0 4px rgba(190, 93, 44, 0.12);
  transform: translateY(-1px);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff7f0;
  box-shadow: 0 18px 36px rgba(147, 65, 26, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.entry-card:hover {
  transform: translateY(-2px);
}

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

.ghost-button {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid rgba(23, 21, 18, 0.08);
}

.form-error {
  min-height: 22px;
  margin: 0;
  color: #a5351f;
  font-size: 14px;
}

.inline-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 21, 18, 0.08);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.inline-note strong {
  color: var(--ink);
}

.home-layout {
  flex: 1;
  margin-top: 28px;
  margin-bottom: 14px;
  padding: 34px 34px 28px;
  border-radius: 32px;
  animation: float-up 560ms ease-out both;
}

.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.home-title-wrap {
  max-width: 760px;
}

.home-subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.home-userline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

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

.status-pill,
.route-pill,
.entry-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  padding: 10px 14px;
  background: rgba(25, 93, 75, 0.1);
  color: var(--success);
}

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

.hero-strip article {
  padding: 18px 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(23, 21, 18, 0.08);
}

.strip-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-strip strong {
  font-size: 22px;
}

.entry-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-card {
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.entry-copy {
  display: grid;
  gap: 10px;
}

.entry-card:hover {
  border-color: rgba(190, 93, 44, 0.26);
  box-shadow: 0 16px 36px rgba(98, 62, 31, 0.12);
}

.entry-card-primary {
  background:
    linear-gradient(140deg, rgba(190, 93, 44, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.64);
}

.entry-tag {
  padding: 8px 12px;
  background: rgba(23, 21, 18, 0.06);
  color: var(--muted);
}

.route-pill {
  padding: 8px 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.panel-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ops-panel h2 {
  font-size: 30px;
  line-height: 1.05;
}

.rule-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.rule-list li + li {
  margin-top: 8px;
}

.reserve-panel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.54);
}

.reserve-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.reserve-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 21, 18, 0.06);
}

.reserve-card strong {
  font-size: 18px;
}

.reserve-card span {
  color: var(--muted);
  line-height: 1.55;
}

.reserve-link-card {
  text-decoration: none;
}

.account-list {
  display: grid;
  gap: 16px;
}

.account-card {
  border: 1px solid rgba(23, 21, 18, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  padding: 18px;
}

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

.account-card-head strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.account-card-head p {
  margin: 0;
  color: var(--muted);
}

.compact-form {
  margin-top: 16px;
}

.form-success {
  min-height: 20px;
  margin: 0;
  color: var(--success);
  font-size: 14px;
}

.center-panel {
  justify-items: center;
  text-align: center;
}

.centered-actions {
  justify-content: center;
}

.page-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 22px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.page-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .auth-layout {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .brand-panel,
  .home-layout {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .login-card {
    border-radius: 24px;
  }

  .home-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-strip,
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .ops-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-layout,
  .home-layout,
  .page-footer {
    width: min(100% - 20px, 1120px);
  }

  .brand-panel h1,
  .home-header h1 {
    font-size: 42px;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
  }
}
