:root {
  --canvas: #0b0b0b;
  --panel: #131313;
  --card: #1a1a1a;
  --line: #272727;
  --line-soft: #1f1f1f;
  --ink: #f4f2ef;
  --ink-soft: #c9c6c1;
  --ink-muted: #9b9791;
  --accent: #f4792f;
  --accent-soft: #2a1a10;
  --peach: #f8c99c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ---------- Inloggning ---------- */

.split {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.hero {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0d0c0b, rgba(13, 12, 11, 0.35), transparent);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--panel);
}

.brand-name {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.hero-text {
  max-width: 46ch;
}

.hero-text h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-text p {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  padding: 40px 20px;
}

.form-wrap {
  width: 100%;
  max-width: 380px;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-wrap h2 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.hint {
  margin: 8px 0 24px;
  font-size: 13px;
  color: var(--ink-muted);
}

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 12px;
  color: var(--ink-soft);
}

input {
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

input::placeholder {
  color: var(--ink-muted);
}

input:focus {
  border-color: var(--accent);
  outline: none;
}

button {
  width: 100%;
  margin-top: 20px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1a1208;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

button:hover {
  background: var(--peach);
}

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

.error {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #ffb4a2;
}

.footnote {
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
}

@media (min-width: 1024px) {
  .split {
    flex-direction: row;
  }

  .hero {
    width: 52%;
    min-height: 100dvh;
  }

  .hero-content {
    padding: 40px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .panel {
    padding: 48px;
  }
}

/* ---------- Elevsida ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.who {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.ghost {
  width: auto;
  margin: 0;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
}

.ghost:hover {
  color: var(--ink);
  background: var(--card);
  border-color: #3a3a3a;
}

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.page h1 {
  margin: 6px 0 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.lead {
  margin: 10px 0 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.card {
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
}

.card h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.muted {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: #3a2a1c;
  background: linear-gradient(180deg, var(--accent-soft), var(--card));
}

.button {
  display: inline-block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1208;
  background: var(--accent);
  border-radius: 10px;
  text-decoration: none;
}

.button:hover {
  background: var(--peach);
}

.steps {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.steps li {
  margin-bottom: 8px;
}

.steps strong {
  color: var(--ink);
}
