:root {
  /* moliri brand palette (from moliri.dk) */
  --brand-navy: #003957;
  --brand-navy-deep: #142643;
  --brand-teal: #2c7675;
  --brand-mint: #5cc4b7;
  --brand-sky: #45a1d5;
  --brand-orange: #e78631;

  --bg: #eaf0f3;
  --card: #ffffff;
  --text: #142643;
  --muted: #4a5a6b;
  --border: #cfdae1;
  --accent: #003957;
  --accent-text: #ffffff;
  --error: #b3261e;
  --focus: #003957;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1a24;
    --card: #14293a;
    --text: #eaf3f7;
    --muted: #a6b7c4;
    --border: #274a60;
    --accent: #5cc4b7;
    --accent-text: #08131b;
    --error: #ff8a80;
    --focus: #5cc4b7;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.landing {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
}

button {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.95);
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.error {
  color: var(--error);
  font-weight: 600;
  margin: -0.25rem 0 1rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

#viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}
