/* Innloggingssiden i Styr. Bygger på fargene og skriften i styles.css.
   Én hvit flate med omriss; valgene er hvite rader med tynt nøytralt omriss. */

body.innlogging {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
  background: var(--bg);
}

.innlogging *,
.innlogging *::before,
.innlogging *::after {
  box-sizing: border-box;
}

.innlogging [hidden] {
  display: none !important;
}

.innlogging-flate {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px 32px 28px;
}

.innlogging-topp {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.innlogging-merke {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background: var(--attvin-purple);
  display: grid;
  place-items: center;
  padding: 7px;
}

.innlogging-merke svg {
  width: 100%;
  height: 100%;
  display: block;
}

.innlogging-merke path {
  fill: var(--attvin-purple-light);
}

.innlogging-system {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.innlogging h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.innlogging-ingress {
  margin: 6px 0 24px;
  color: var(--muted);
  font-size: 16px;
}

/* Microsoft: hovedvalget. */
.innlogging-microsoft {
  display: grid;
  gap: 8px;
}

.innlogging-hovedknapp {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 14px;
  background: var(--attvin-purple);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.innlogging-hovedknapp:hover {
  background: var(--attvin-purple-dark);
}

.innlogging-hovedknapp:focus-visible,
.innlogging-sekundaer:focus-visible,
.innlogging-rad:focus-visible,
.innlogging-tilbake:focus-visible {
  outline: none;
  box-shadow: var(--tool-ring);
}

.innlogging-hovedknapp:disabled,
.innlogging-sekundaer:disabled {
  opacity: 0.6;
  cursor: progress;
}

.ms-ikon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.innlogging-hjelp {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.innlogging-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.innlogging-status:empty {
  display: none;
}

.innlogging-status[data-tone="feil"] {
  color: var(--danger);
}

.innlogging-status[data-tone="ok"] {
  color: var(--success);
}

.innlogging-microsoft .innlogging-status {
  text-align: center;
}

.innlogging-skille {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.innlogging-skille::before,
.innlogging-skille::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* De to andre valgene: hvite rader med omriss. */
.innlogging-valg {
  display: grid;
  gap: 10px;
}

.innlogging-rad {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.innlogging-rad:hover {
  border-color: var(--attvin-purple);
}

.rad-ikon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: var(--attvin-purple);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rad-tekst {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.rad-tittel {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.rad-hjelp {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.rad-pil {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.innlogging-rad:hover .rad-pil {
  stroke: var(--attvin-purple);
}

.innlogging-fot {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* E-post-steget. */
.innlogging-tilbake {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -6px 0 16px -8px;
  padding: 6px 10px 6px 4px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--attvin-purple);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.innlogging-tilbake:hover {
  background: var(--attvin-purple-light);
}

.innlogging-tilbake svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.innlogging-skjema {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.innlogging-felt {
  display: grid;
  gap: 6px;
}

.innlogging-felt span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.innlogging-felt input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  font-size: 16px; /* under 16 px zoomer iPhone inn på feltet */
  color: var(--ink);
  background: var(--surface);
}

.innlogging-felt input:focus {
  outline: none;
  border-color: var(--attvin-purple);
  box-shadow: var(--tool-ring);
}

.innlogging-felt input[aria-invalid="true"] {
  border-color: var(--danger);
}

.innlogging-lenke {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.innlogging-lenke-tekst {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.innlogging-sekundaer {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.innlogging-sekundaer:hover {
  border-color: var(--attvin-purple);
}

@media (max-width: 520px) {
  body.innlogging {
    align-items: flex-start;
    padding: 16px;
  }

  .innlogging-flate {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }

  .innlogging-topp {
    margin-bottom: 22px;
  }

  .innlogging h1 {
    font-size: 26px;
  }
}

.ikke-del {
  white-space: nowrap;
}
