/* Kunddelen av Annonsmotorn (steg 2c, 30 november 2026).
   Färger och mått från ritytan "Logga in" i startsidans skiss (beslut 47 och 54).
   Typsnittet ligger här i appen (Hanken Grotesk, OFL, se typsnitt/OFL.txt), så att inget hämtas från Google. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("typsnitt/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

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

body {
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0B1E33;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

a { color: #0B1E33; }
a:hover { color: #2E4A6B; }

/* Färgsvepet bakom, stillastående (ritytan har en animerad shader). */
.svep {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(67deg,
    #FFFFFF 0%, #FFFFFF 58%,
    #E6EFFF 59.5%, #9CC4FF 61.5%,
    #FF7466 74%, #FF5A1F 85%, #FFC79E 100%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 16%);
  mask-image: linear-gradient(to top, transparent 0%, #000 16%);
}

@media (max-width: 800px) {
  .svep {
    background: linear-gradient(60deg,
      #FFFFFF 0%, #FFFFFF 74%,
      #E6EFFF 75%, #9CC4FF 77%,
      #FF7466 86%, #FF5A1F 93%, #FFC79E 100%);
  }
}

.topp {
  position: relative;
  z-index: 1;
  height: 72px;
  padding: 0 40px;
  display: flex;
  align-items: center;
}

.marke { font-size: 18px; font-weight: 500; }

.mitt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 16px 48px;
  gap: 24px;
}

.kort {
  width: 440px;
  max-width: 100%;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 44px 44px 40px;
  box-shadow: 0 30px 60px -12px rgba(11, 30, 51, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.rubrik { display: flex; flex-direction: column; gap: 8px; }

h1 {
  margin: 0;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rubrik p, .tips, .info { margin: 0; font-size: 15px; line-height: 1.55; color: #3D4D63; }
.tips strong, .rubrik strong { color: #0B1E33; font-weight: 600; word-break: break-word; }

.info {
  width: 100%;
  padding: 10px 12px;
  border-radius: 4px;
  background: #F2F6FB;
}

.formular { width: 100%; display: flex; flex-direction: column; gap: 22px; }

.falt { display: flex; flex-direction: column; gap: 8px; }

.lbl { font-size: 14px; font-weight: 500; color: #0B1E33; }

.in {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #CFD7E2;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  color: #0B1E33;
  background: #FFFFFF;
  width: 100%;
}
.in:focus { outline: 2px solid #FF7466; outline-offset: 1px; border-color: #FF7466; }
.in[aria-invalid="true"] { border-color: #C2341B; }

.fel { margin: -12px 0 0; font-size: 14px; line-height: 1.5; color: #B42318; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(100deg, #FF5A1F, #FF7466);
  color: #0B1E33;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(255, 90, 31, 0.55);
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { color: #0B1E33; filter: brightness(1.06) saturate(1.1); transform: translateY(-1px); }
.btn:focus-visible, .btn2:focus-visible, .lnk:focus-visible { outline: 2px solid #0B1E33; outline-offset: 2px; }

.btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid #CFD7E2;
  border-radius: 4px;
  background: #FFFFFF;
  color: #0B1E33;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
}
.btn2:hover { border-color: #8FA3BD; }

.lnk {
  font-size: 14px;
  color: #3D4D63;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ikon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFF4EC;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 520px) {
  .topp { padding: 0 20px; }
  .mitt { padding-top: 32px; }
  .kort { padding: 32px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
