/* ===== Auth pages — built on the same tokens as styles.css ===== */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.auth-aside {
  background: var(--surface-dark);
  color: #d7d9cb;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside .brand { color: #fff; }
.auth-aside .brand span { color: #fff; }
.auth-aside .pitch h2 {
  font-size: 34px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.12;
  color: #fff; margin: 0 0 16px; max-width: 420px;
}
.auth-aside .pitch p { font-size: 16px; line-height: 1.6; color: #b8bab0; max-width: 400px; }
.auth-aside ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.auth-aside ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #c7c9bd; }
.auth-aside ul li::before {
  content: ""; width: 16px; height: 16px; border-radius: 99px; flex: none; margin-top: 2px;
  background: var(--primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7.5l2.5 2.5L11 4.5' fill='none' stroke='%2323251d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.auth-aside .aside-hog { position: absolute; right: -20px; bottom: -10px; width: 200px; opacity: .9; }
.auth-aside .demo-card {
  margin-top: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 14px 16px; font-family: "JetBrains Mono", monospace; font-size: 13px;
  color: #d7d9cb; max-width: 360px;
}
.auth-aside .demo-card b { color: var(--primary); font-weight: 600; }

.auth-main {
  background: var(--canvas);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card .eyebrow { margin-bottom: 12px; }
.auth-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; color: var(--ink); margin: 0 0 6px; }
.auth-card .sub { font-size: 15px; color: var(--mute); margin: 0 0 26px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input {
  width: 100%; height: 46px; padding: 0 14px;
  background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: 8px; font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #a7a99e; }
.field input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(247,165,1,.25);
}
.field input:focus-visible { outline: 2px solid transparent; }

.auth-card .btn-primary { width: 100%; justify-content: center; height: 48px; font-size: 15px; }
.auth-card .alt { margin-top: 20px; font-size: 14px; color: var(--mute); text-align: center; }
.auth-card .alt a { font-weight: 600; }
.auth-card .back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mute); margin-bottom: 28px; }
.auth-card .back:hover { color: var(--ink); text-decoration: none; }

.flash {
  border-radius: 8px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px;
  display: flex; gap: 10px; align-items: flex-start;
}
.flash.error { background: var(--accent-red-soft); color: #7a2e29; border: 1px solid #efc4c0; }
.flash.success { background: var(--accent-green-soft); color: #2f5d3f; border: 1px solid #c2dfcb; }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* ===== Dashboard (gated) ===== */
.dash { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter) 80px; }
.dash-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.dash-hello h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.8px; color: var(--ink); margin: 8px 0 4px; }
.dash-hello p { color: var(--mute); margin: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: 12px; padding: 22px; box-shadow: var(--shadow-card); }
.stat-card .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.stat-card .v { font-size: 32px; font-weight: 800; letter-spacing: -1px; color: var(--ink); margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat-card .d { font-size: 13px; color: var(--body); margin-top: 4px; }
.panel { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-card); }
.panel h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; color: var(--ink); margin: 0 0 4px; }
.panel .mute { margin: 0 0 20px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.order-row:last-child { border-bottom: 0; }
.order-row .o-id { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--ink); font-weight: 600; }
.order-row .o-meta { font-size: 13px; color: var(--mute); }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge.ship { background: var(--accent-green-soft); color: #2f5d3f; }
.badge.prep { background: var(--accent-blue-soft); color: #1c5170; }
.badge.draft { background: var(--surface-soft); color: var(--mute); }
@media (max-width: 768px) { .dash-grid { grid-template-columns: 1fr; } }
