/* The Exverge look for pages on this host (plan KTD7). Tokens and component styles are the ones in
   exverge-boxfit/web/src/theme.css, with the same names, so the two read as one product. The CSP allows
   only same-origin styles and fonts, so Manrope is served from here too. */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 400; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 600; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 700; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 800; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  --background: #f4f5f7;
  --foreground: #1a1d23;
  --card: #ffffff;
  --sidebar: #1a1410;
  --primary: #c8510a;
  --primary-hover: #a8430a;
  --primary-active: #8e3808;
  --muted-fg: #6b7280;
  --border: #e5e7eb;
  --warning: #b45309;
  --warning-light: #fffbeb;
  --destructive: #dc2626;
  --radius: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
*::selection { background: #ffe0cc; }
h1, p { margin: 0; }
a { color: var(--primary); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* BoxFit's sidebar, as a band: this host has one page at a time and nothing to navigate. */
.band { background: var(--sidebar); color: #e8e2dc; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: var(--radius); background: var(--primary); display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.brand b { font-size: 14px; color: #fff; }

.page { flex: 1 1 auto; display: flex; justify-content: center; align-items: flex-start; padding: 48px 16px; }
.card { width: 100%; max-width: 400px; min-width: 0; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; display: flex; flex-direction: column; gap: 16px; }
.card h1 { font-size: 20px; font-weight: 700; }
.muted { color: var(--muted-fg); }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 12px; min-width: 0; }
/* 44 px, not BoxFit's desktop 38: this page is often opened on a phone, straight from an email. */
.input { font: inherit; font-size: 14px; font-weight: 400; border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 11px; background: #fff; color: var(--foreground); min-height: 44px; width: 100%; min-width: 0; }
.input:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--foreground); font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); border-color: var(--primary-active); }

.note { padding: 8px 10px; border-radius: var(--radius); background: var(--warning-light); color: var(--warning); font-weight: 500; font-size: 12px; overflow-wrap: anywhere; }
.error { color: var(--destructive); font-weight: 600; font-size: 12px; }

@media (max-width: 640px) {
  .band { padding: 10px 12px; }
  .page { padding: 16px 12px 32px; }
  .card { padding: 18px; }
  /* Below 16 px, iOS zooms the whole page when a field takes focus. */
  .input { font-size: 16px; }
}

.products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
