/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

@font-face {
  font-family: Gordita;
  font-display: auto;
  src: local('Gordita Regular'),
    url('/fonts/gordita/gorditaregular-webfont.woff2') format('woff2'),
    url('/fonts/gordita/gorditaregular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: Gordita;
  font-display: auto;
  src: local('Gordita Medium'),
    url('/fonts/gordita/gorditamedium-webfont.woff2') format('woff2'),
    url('/fonts/gordita/gorditamedium-webfont.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

#spinner-page {
  width: auto;
}

.spinner {
  margin-top: 50px;
  display: block;
  margin: auto;
  width: 55px;
}

.spinner circle {
  fill: #486fdd;
  animation: spinner-keyframes 0.85s infinite ease-in-out;
}

.spinner circle:nth-of-type(1) {
  animation-delay: -0.2s;
}

.spinner circle:nth-of-type(2) {
  animation-delay: -0.1s;
}

@keyframes spinner-keyframes {
  0%,
  100%,
  80% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: Gordita, sans-serif;
  background-color: #f6f8fe;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100%;
}

header {
  margin: 0 auto;
  width: 100%;
  max-width: 1240px;
}

header > .content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
}

.logo {
  display: none; /* Overwritten at the end of the file */
}

@media (min-width: 768px) {
  header > .content {
    margin: 70px;
  }

  .logo {
    width: 144px;
    height: 41px;
  }
}

footer {
  margin-top: auto;
  padding-bottom: 40px;
  text-align: center;
}

@media (min-width: 768px) {
  footer {
    padding-bottom: 200px;
  }
}

footer svg {
  display: none;
}

h1 {
  font-weight: 500;
  font-size: 1.8rem;
  color: #101e4a;
  text-align: center;
  line-height: 2.625rem;
  margin: 30px 0 11px;
}

p {
  font-weight: 400;
  font-size: 1.125rem;
  color: #333333;
  line-height: 1.8125rem;
  margin: 8px 0;
}

p.center {
  text-align: center;
}

p.small {
  font-size: 1rem;
}

em {
  font-style: inherit;
  font-weight: 500;
}

dt {
  font-weight: bold;
  display: block;
}

dd {
  margin-left: 0;
  margin: 0.5em 0 1em 0;
}

section {
  padding: 20px;
  display: none;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 200px;
}

section.active {
  display: block;
}

button:focus {
  position: relative;
  outline: none;
}

html.use-keyboard-focus-effect button:not(.block):focus:after {
  content: ' ';
  position: absolute;
  z-index: 1;
  left: -6px;
  top: -6px;
  bottom: -6px;
  right: -6px;
  border: 2px solid #668fff;
  border-radius: 50px;
}

form {
  margin: 32px 0;
  text-align: center;
}

.input-container {
  display: flex;
  align-items: stretch;
  background-color: #ffffff;
  box-shadow: 10px 15px 30px 0 rgba(0, 0, 0, 0.09);
  border-radius: 36px;
  border: 1px solid #ffffff;
  margin: 8px 0;
}

#phone-form .field {
  max-width: 333px;
  margin: auto;
}

#phone-form .field.error {
  border: none;
}

#code-form button#login {
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-top: 40px;
}

.input-container button {
  margin: 8px;
}

.input-container input[type='tel'] {
  flex-grow: 1;
  padding: 12px 20px;
  border: 1px solid transparent;
  background-color: transparent;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  color: #333333;
  -moz-appearance: textfield;
  -webkit-appearance: none;
  margin: 0;
  width: 100%;
}

input {
  padding: 14px 20px;
  margin: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #d3d3d3;
  border-radius: 100px;
  min-width: 10px;
  font-size: 1rem;
  outline: none;
  width: 100%;
}

/* Remove webkit autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  color: #333333 !important;
}

input:disabled {
  background-color: #f6f8f9;
}

:not(.input-container) > input:focus,
.input-container:focus-within {
  border: 1px solid #486fdd;
  box-shadow: 0px 0px 0px 1px #486fdd inset;
}

form.error .input-container,
.error > input,
.error > input:focus {
  border: 1px solid #c84d4d;
  box-shadow: 0px 0px 0px 1px #c84d4d inset;
}

input::-moz-placeholder {
  color: #777777;
}

input::placeholder {
  color: #777777;
}

.field:not(:last-child) {
  margin-bottom: 30px;
}

/* OTP input */

#code-form .field {
  max-width: 280px;
  margin: auto;
}

#code-form.error .input-container {
  border: none;
  box-shadow: none;
}

.input-otp {
  text-align: center;
  position: relative;

  font-family: Arial, sans-serif;
  font-variant-numeric: tabular-nums;

  background-color: transparent;
  box-shadow: none;
  border: none;
}

.input-otp:focus-within {
  border: none;
  box-shadow: none;
}

.input-otp input {
  color: transparent !important;
  caret-color: transparent !important;
  opacity: 0.05; /* 0 will hide input, in many browsers, just make it very weak */
}

.input-otp input::-moz-selection {
  background: transparent;
}

.input-otp input::selection {
  background: transparent;
}

/* Don't show autofill highlight */
.input-otp input:-webkit-autofill,
.input-otp input:-webkit-autofill:hover,
.input-otp input:-webkit-autofill:focus {
  background-color: transparent !important;
  font-size: 0.375rem;
  color: transparent;
}

.input-otp .otp-digit {
  position: absolute;
  top: 0;
  border-radius: 50%;
  border: 2px solid #486fdd;
  background-color: white;
  pointer-events: none;
  width: 56px;
  height: 56px;
  line-height: 53px;
  font-size: 1.25rem;
  box-shadow: 10px 15px 30px 0 rgba(0, 0, 0, 0.09);
}

.input-otp:focus-within .otp-digit:empty:first-of-type,
.input-otp:focus-within .otp-digit:not(:empty) + .otp-digit:empty,
.input-otp:focus-within .otp-digit:not(:empty):last-of-type {
  box-shadow: 10px 15px 30px 0 rgba(72, 111, 221, 0.3);
}

/* Error style */
.error .input-otp .otp-digit {
  border-color: #c84d4d !important;
}

/* Position the digits */
.input-otp .otp-digit:nth-of-type(1) {
  left: 0;
}

.input-otp .otp-digit:nth-of-type(2) {
  left: 75px;
}

.input-otp .otp-digit:nth-of-type(3) {
  left: 150px;
}

.input-otp .otp-digit:nth-of-type(4) {
  left: 235px;
}

/* Errors */

.error-message {
  font-size: 0.75rem;
  color: #c84d4d;
  font-weight: 500;
  line-height: 1.25rem;
  text-align: left;
  margin-top: 5px;
}

form .error-message {
  display: none;
}

form.error .error-message {
  display: block;
}

#error-page .error-message,
#error-message-page .error-message {
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
}

button {
  cursor: pointer;
  border: none;
  margin: 0;
  padding: 0;
  width: auto;
  overflow: visible;

  background: transparent;

  /* inherit font & color from ancestor */
  color: inherit;
  font: inherit;

  /* Normalize `line-height`. Cannot be changed from `normal` in Firefox 4+. */
  line-height: normal;

  /* Corrects font smoothing for webkit */
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;

  /* Corrects inability to style clickable `input` types in iOS */
  -webkit-appearance: none;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

#close-x-button {
  line-height: 0;
  margin-left: auto;
}

#close-x-button:hover > svg {
  fill: #527df7;
  transition: fill 0.2s ease-in-out;
}

/* Hide X when in-app */
.in-app #close-x-button {
  display: none;
}

form button {
  padding: 8px 18px;
  background-color: #101e4a;
  border-radius: 25px;
  font-weight: 500;
  font-size: 1.125rem;
  color: #ffffff;
  letter-spacing: 0;
  text-align: center;
  line-height: 1.8125rem;
  transition: background-color 0.2s ease-in-out;
}

form button:hover {
  background-color: #182d70;
}

button.link-button {
  font-weight: 500;
  font-size: 1rem;
  color: #101e4a;
  text-align: center;

  background-image: linear-gradient(to top, transparent, transparent 0, #486fdd 0, #486fdd 2px, transparent 2px);
  padding-bottom: 0.15em;
  position: relative;
}

button.link-button:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #61e6b3;
  transform-origin: bottom right;
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

button.link-button:focus:before,
button.link-button:hover:before {
  transform-origin: bottom left;
  transform: scaleX(1);
}

h2 {
  font-size: 1.25rem;
  color: #101e4a;
  line-height: 1.875rem;
  font-weight: 500;
  margin: 0 0 8px;
}

.buttons h2 {
  font-size: 1.8rem;
  color: #486fdd;
  line-height: 2.625rem;
}

.block {
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 25, 94, 0.1);
  padding: 28px;
  background-color: white;
  margin: 20px 0;
  align-items: stretch;
  border: 2px solid white;
  transition: border-color 0.2s;
  width: 100%;
}

button.block,
a.block {
  width: 100%;
  color: inherit;
}

button.block:hover,
button.block:focus,
a.block:hover,
a.block:focus {
  border-color: #486fdd;
}

button.block:hover > div > svg,
button.block:focus > div > svg,
a.block:hover > div > svg,
a.block:focus > div > svg {
  fill: #486fdd;
}

button.block > div,
a.block > div {
  align-self: stretch;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  word-break: break-word;
  align-items: flex-start;
}

button.block > div > .content,
a.block > div > .content {
  flex-grow: 1;
}

button.block > div > svg,
a.block > div > svg {
  margin-left: 10px;
  flex-shrink: 0;
  align-self: center;
  transition: fill 0.2s;
}

/*
.block.person {
  position: relative;
  margin-top: 70px;
  padding-top: 80px;
}

@media (min-width: 768px) {
  .block.person {
    margin-top: 100px;
    padding-top: 90px;
  }
}
*/

.profile-image-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.profile-image {
  background-color: #ced6f5;
  height: 80px;
  width: 80px;
  border-bottom-right-radius: 100%;
  box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

@media (min-width: 768px) {
  .profile-image {
    height: 120px;
    width: 120px;
  }
}

.profile-image > img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
}

.profile-image > img[src*='/profile-image-placeholder.svg'] {
  padding: 17px 22px;
  -o-object-fit: fill;
     object-fit: fill;
  width: auto;
  height: auto;
}

@media (min-width: 768px) {
  .profile-image > img[src*='/profile-image-placeholder.svg'] {
    padding: 30px 40px;
  }
}

.profile-image-wrapper > button {
  position: absolute;
  top: 20px;
  right: -10px;
  height: 40px;
  width: 40px;
  border-radius: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0042fe;
}

@media (min-width: 768px) {
  .profile-image-wrapper > button {
    top: 40px;
    right: 0;
  }
}

.field > label {
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 0.33em;
  display: block;
}

@media (min-width: 768px) {
  .field > label {
    font-size: 1rem;
  }
}

input[type='checkbox'] {
  opacity: 0;
  width: 20px;
}

.checkbox-wrapper {
  display: inline-block;
  position: relative;
  line-height: 0;
}

.checkbox-wrapper:hover:after {
  position: absolute;
  content: ' ';
  display: block;
  width: 36px;
  height: 36px;
  z-index: 0;
  border-radius: 50%;
  top: -6px;
  left: -6px;
  background-color: #777777;
  opacity: 0.2;
}

.checkbox-wrapper > .check {
  background-color: white;
  border: 2px solid #486fdd;
  border-radius: 6px;
  height: 24px;
  width: 24px;
  position: absolute;
  left: 0;
  z-index: 1;
}

.checkbox-wrapper.error > .check {
  border-color: #c84d4d;
}

.checkbox-wrapper > input:focus ~ .check {
  box-shadow: 0px 0px 5px 2px #486fdd;
}

.checkbox-wrapper > .check path {
  stroke: #101e4a;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 50 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 0.2s linear;
}

.checkbox-wrapper > input:checked ~ .check path {
  stroke-dashoffset: 0;
}

.checkbox-wrapper > .label {
  padding-left: 15px;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

a {
  color: #486fdd;
  text-decoration: none;
}

form#profile button[type='submit'] {
  margin: 25px auto 0;
  display: block;
}

@media (min-width: 768px) {
  .block.person {
    flex-direction: row;
  }

  .block.person > .field {
    flex-grow: 1;
  }

  .block.person > .field:not(:last-child) {
    margin: 0 26px 0 0;
  }
}

@media (min-width: 768px) {
  .buttons {
    display: flex;
    align-items: stretch;
  }

  .buttons > button {
    flex-grow: 1;
  }

  .buttons > button:not(:last-child) {
    margin-right: 20px;
  }
}

.contact-info {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.contact-info:not(:last-child) {
  margin-bottom: 10px;
}

.contact-info > *:not(:last-child) {
  margin-right: 14px;
}

/* Bank ID styling */

#bank-id-frame-container {
  width: 100%;
}

#bank-id-frame-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Vibbo styling */
body.vibbo footer svg,
body.vibbo .logo.vibbo {
  display: block;
}

/* Styrerommet specific styling */
body.styrerommet .logo.styrerommet {
  display: block;
}

@media (min-width: 768px) {
  .logo.styrerommet {
    width: 202px;
  }
}

/* Vibbo styling */
body.nabolaget .logo.nabolaget,
body.nabolaget footer svg {
  display: block;
}

body.nabolaget .logo.nabolaget {
  width: 220px;
}

@media (max-width: 719px) {
  body.nabolaget .logo.nabolaget {
    width: 170px;
    position: relative;
    top: 3px;
  }
}

/* Fallback styling */
body.obos .logo.obos {
  display: block;
}

@media (max-width: 719px) {
  body.obos .logo.obos {
    width: 202px;
  }
}

