/* Fristående stilmall för inloggningssidan.
   Den laddas av oinloggade besökare och får därför inte innehålla regler som
   avslöjar portalens innehåll (källor, logotyper, vyer). Reglerna nedan är
   kopior av motsvarande regler i app.css. */
:root {
  color-scheme: light;
  --ink: #1c2a3b;
  --muted: #606f80;
  --line: #dce2e8;
  --paper: #f5f7fa;
  --forest: #176c64;
  --motion-fast: 140ms;
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: var(--forest); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; padding: .65rem 1rem; border: 1px solid var(--forest); border-radius: 5px; background: var(--forest); color: white; font-weight: 600; transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease); }
button:hover { background: #12594f; }
button:active { transform: translateY(1px); }
input { background: white; color: var(--ink); border: 1px solid #bdc8d3; border-radius: 5px; padding: .6rem .75rem; min-height: 40px; max-width: 100%; }
label { display: block; margin-bottom: .35rem; font-size: .8rem; font-weight: 600; color: #47586a; }
h1, p { margin-top: 0; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.035em; margin-bottom: .55rem; font-weight: 650; }
.eyebrow { color: var(--muted); text-transform: uppercase; font-size: .68rem; letter-spacing: .09em; font-weight: 650; margin-bottom: 9px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-size: 1.08rem; letter-spacing: -.025em; }
.brand span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: white; background: #267f75; }
.login-main { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 36px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.login-card .brand { margin-bottom: 44px; }
.login-card > p { color: var(--muted); font-size: .87rem; }
.login-form { display: grid; gap: 8px; margin-top: 24px; }
.login-form label { margin: 10px 0 0; }
.login-form button { margin-top: 18px; }
.login-error { background: #fae9e6; padding: 10px; border-radius: 4px; color: #8b362c !important; }
