/* Portal zalog: quiet working tool. Cool slate neutrals, one amber accent for the primary action. */
:root {
  --bg: #f4f6f8; --surface: #ffffff; --fg: #16212c; --muted: #566373; --line: #d3dae2;
  --accent: #a85a00; --accent-fg: #ffffff; --accent-soft: #fbefdc; --warn-bg: #fff4d6; --warn-fg: #6b4a00;
  --radius: 8px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161d; --surface: #18212b; --fg: #e6ebf1; --muted: #9aa7b6; --line: #2f3b48;
    --accent: #f0a84a; --accent-fg: #1a1205; --accent-soft: #3a2a12; --warn-bg: #3a2f12; --warn-fg: #f3d58a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-size: 16px; line-height: 1.55; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand-mark { width: 14px; height: 14px; border-radius: 3px; background: var(--accent); }
.brand-provider { color: var(--muted); font-weight: 400; padding-left: 10px; border-left: 1px solid var(--line); }
.session { display: flex; align-items: center; gap: 12px; margin: 0; min-width: 0; }
.session-user { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }

.page { max-width: 1100px; margin: 0 auto; padding: 28px 16px 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card.narrow { max-width: 560px; margin: 24px auto 0; }
h1 { font-size: 24px; line-height: 1.2; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); font-size: 14px; }
.note { background: var(--accent-soft); border-radius: 6px; padding: 8px 12px; font-size: 14px; }
.note.warn { background: var(--warn-bg); color: var(--warn-fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.06); border-color: var(--accent); }
.btn-quiet { padding: 6px 12px; font-size: 14px; }

.signin { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.dev-signin { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; margin: 4px 0 0; }
.dev-signin label { font-size: 14px; color: var(--muted); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
input[type="email"], input[type="text"], input[type="search"] {
  flex: 1 1 200px; min-width: 0; padding: 9px 12px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit;
}

.warehouses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.warehouses li { padding: 10px 0; border-top: 1px solid var(--line); }
.warehouses li:first-child { border-top: 0; }

/* Switching between the providers of one login */
.providers { background: var(--surface); border-bottom: 1px solid var(--line); }
.providers-inner { max-width: 1100px; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 14px; }
.providers a { color: var(--accent); text-decoration: none; }
.providers a:hover { text-decoration: underline; }
.providers-all { color: var(--muted) !important; }
.providers-current { font-weight: 600; color: var(--fg); }
.provider-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.provider-link { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 600; }
.provider-link:hover { border-color: var(--accent); }

/* Privacy and terms pages + footer links */
.card.legal { max-width: 760px; margin: 24px auto 0; gap: 10px; line-height: 1.55; }
.card.legal h2 { font-size: 17px; margin: 14px 0 0; }
.card.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.card.legal a { color: var(--accent); }
.foot { max-width: 1100px; margin: 0 auto; padding: 0 16px 32px; display: flex; gap: 18px; font-size: 13px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
