:root {
  --ink: #1f1a17;
  --muted: #6b625c;
  --line: #d9d2cb;
  --paper: #faf8f5;
  --accent: #6e1f2b;
  --ok: #1f6b3a;
  --warn: #8a5a00;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

main {
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1 { font-size: 1.35rem; margin: 0 0 0.25rem; }

/* The logo file has white space around the mark; the box shows only the mark,
   and multiply lets the page colour show through the white. */
.logo { position: relative; width: 13rem; max-width: 70%; aspect-ratio: 1870 / 490; overflow: hidden; margin: 0 0 1.25rem; }
.logo img { position: absolute; width: 107%; left: -3.2%; top: -61%; mix-blend-mode: multiply; }

main > .hjaelp { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.hjaelp a { color: var(--accent); font-weight: 600; white-space: nowrap; }
h2 { font-size: 1.05rem; margin: 2rem 0 0.5rem; }
p { margin: 0.5rem 0; }
.muted { color: var(--muted); font-size: 0.92rem; }
[hidden] { display: none !important; }

label, .trin { display: block; font-weight: 600; margin: 1.1rem 0 0.35rem; }

/* Hidden from sight but still reachable by its label and by screen readers. */
.skjult { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.kameraknap { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 0.6rem; }
.skjult:focus-visible + .kameraknap { outline: 3px solid var(--accent); outline-offset: 2px; }

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 0.8rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

button, .knap {
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: default; }
button.sekundaer, .knap.sekundaer {
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--accent);
}

button.logud { margin-top: 3rem; }

.besked { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.besked.fejl { border-color: var(--accent); color: var(--accent); }
.besked.ok { border-color: var(--ok); color: var(--ok); }
.besked.advarsel { border-color: var(--warn); color: var(--warn); }

.test { background: #fff3cd; color: #5c4400; padding: 0.5rem 1rem; text-align: center; font-size: 0.9rem; }

.ordre { padding: 0.9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.ordre strong { display: block; font-size: 1.15rem; }

img.forhaandsvisning { display: block; width: 100%; margin-top: 0.75rem; border-radius: 8px; }

pre { white-space: pre-wrap; word-break: break-word; font-size: 0.8rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem; }

/* On-screen preview of the label. The printed label is the PDF from /api/maerke.pdf. */
.maerke {
  width: 62mm;
  margin: 1rem auto 0;
  padding: 3mm;
  background: #fff;
  border: 1px dashed var(--line);
  color: #000;
  text-align: center;
  font-size: 10pt;
  line-height: 1.25;
}
.maerke .titel { font-weight: 700; font-size: 11pt; }
.maerke .hjaelp { margin-top: 2mm; font-size: 10pt; }
.maerke-logo { display: block; width: 100%; margin: -8mm 0 -6mm; }
.maerke svg { display: block; width: 40mm; height: 40mm; margin: 2mm auto; }
