
html {}

p {
  font-size: 9pt
}

#bx--dialog {
  z-index: 2000;
  box-sizing: initial;
  display: block;
}

.bx--dialog-window {
  z-index: 2000;
}

.bx--text__input {
  width: inherit;
  min-width: 300px;
}

#warning {
  color: red;
  position: absolute;
  top: 0;
}

@font-face {
  font-family: 'GjensidigeDisplay';
  font-style: normal;
  font-weight: 400;
  src: url('https://cdn.gjensidige.no/builders/core/fonts/GjensidigeDisplay-Medium.woff2') format('woff2');
  font-display: swap;
}

/* GjensidigeSans - normal */
@font-face {
  font-family: 'GjensidigeSans';
  font-style: normal;
  font-weight: 400;
  src: url('https://cdn.gjensidige.no/builders/core/fonts/GjensidigeSans-Regular.woff2') format('woff2');
  font-display: swap;
}

/* GjensidigeSans - medium  */
@font-face {
  font-family: 'GjensidigeSans';
  font-style: normal;
  font-weight: 500;
  src: url('https://cdn.gjensidige.no/builders/core/fonts/GjensidigeSans-Medium.woff2') format('woff2');
  font-display: swap;
}

/* GjensidigeSans - bold */
@font-face {
  font-family: 'GjensidigeSans';
  font-style: normal;
  font-weight: 700;
  src: url('https://cdn.gjensidige.no/builders/core/fonts/GjensidigeSans-Bold.woff2') format('woff2');
  font-display: swap;
}

/* GjensidigeSans - italic */
@font-face {
  font-family: 'GjensidigeSans';
  font-style: italic;
  font-weight: 400;
  src: url('https://cdn.gjensidige.no/builders/core/fonts/GjensidigeSans-Italic.woff2') format('woff2');
  font-display: swap;
}

/* GjensidigeSans - medium italic */
@font-face {
  font-family: 'GjensidigeSans';
  font-style: italic;
  font-weight: 500;
  src: url('https://cdn.gjensidige.no/builders/core/fonts/GjensidigeSans-MediumItalic.woff2') format('woff2');
  font-display: swap;
}

/* GjensidigeSans - bold italic */
@font-face {
  font-family: 'GjensidigeSans';
  font-style: italic;
  font-weight: 700;
  src: url('https://cdn.gjensidige.no/builders/core/fonts/GjensidigeSans-BoldItalic.woff2') format('woff2');
  font-display: swap;
}

body {
  margin: 0;
  font-family: GjensidigeSans, GjensidigeDisplay, GjensidigeSans-Regular, sans-serif;
  display: flex;
  flex-direction: column;
  font-feature-settings: 'liga' off, 'clig' off;
  padding-bottom: 150px;
}

.login-container {
  background-color: #EBF0FA;
  border-radius: 2px;
  width: 560px;
  margin-top: 150px;
  margin-bottom: 150px;
  box-sizing: border-box;

}

.login-form {
  padding: 80px;
}

.login-form .title {
  margin-top: 0;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  margin-bottom: 40px;
  color: #090C33;
  font-family: GjensidigeSans-Display, sans-serif;
}

.login-form p {
  color: #090C33;
  font-family: GjensidigeSans-Medium, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.HelpText {
  display: block;
  font-weight: 400;
  color: #090C33;
  font-family: GjensidigeSans-Regular, sans-serif;
  font-size: 16px;
  font-style: normal;
  line-height: 150%;
}

.login-form .errorMessage {
  display: block;
  font-weight: 400;
  color: #090C33;
  font-family: GjensidigeSans-Regular, sans-serif;
  font-size: 20px;
  font-style: normal;
  line-height: 150%;
  margin-top: 16px;
}

.login-form label {
  display: block;
  font-weight: 400;
  color: #090C33;
  font-family: GjensidigeSans-Medium, sans-serif;
  font-size: 20px;
  font-style: normal;
  line-height: 150%;
}

.login-form input {
  width: 100%;
  padding-left: 16px;
  align-items: center;
  gap: 20px;
  flex: 1 0 0;
  align-self: stretch;
}

.login-form a {
  color: #090C33;
  font-family: GjensidigeSans, sans-serif;
  display: inline-block;
  font-size: 20px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.login-form .bx--text__input {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.125rem;
  letter-spacing: 0.16px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  width: 100%;
  height: 56px;
  padding: 1.5rem;
  color: #171717;
  transition: background-color 70ms cubic-bezier(.2,0,.38,.9),outline 70ms cubic-bezier(.2,0,.38,.9);
  box-sizing: border-box;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  border: 3px solid #090C33;
  border-radius: 4px;
  background: #FFF;
  font-family: GjensidigeSans-Regular, sans-serif;

}

.login-form .bx--text__input:focus {
  border: 2px solid #090C33;
}

.login-form .bx--text__input:invalid {
  border: 3px solid #8C0008;
  outline: none;
}

button.bx--button-primary:hover, button.bx--button-primary:focus {
  background-color: #7C55FF;
}

button.bx--button-primary:disabled {
  background-color: #bebebe;
  color: #8c8c8c;
  cursor: default;
}

button.bx--button-primary {
  margin-top: 56px;
  width: 100%;
  padding: 13px 20px;
  background-color: #6325E7;
  border-color: transparent;
  color: #FFFFFF;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center; /* center text & icon horizontally */
  gap: 8px; /* space between icon and text */
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-family: GjensidigeSans-Regular, sans-serif;
  font-size: 20px;
  font-style: normal;
  line-height: 150%;
  stroke: none;
}

button.bx--button-primary::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('../../icons/lock.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

button.bx--button-primary:hover {
  background-color: #7C55FF;
}


button.bx--button-secondary {
  width: 100%;
  padding: 13px 20px;
  background-color: #6325E7;
  color: #FFFFFF;
  border-radius: 4px;
  justify-content: center; /* center text & icon horizontally */
  margin-bottom: 0.5rem;
  font-family: GjensidigeSans-Regular, sans-serif;
}

button.bx--button-secondary:hover {
  background-color: #4b00b5;
}



.bx--button-text {
  margin-top: 16px;
  padding: 5px 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-family: GjensidigeSans-Medium, sans-serif;
  background-color: transparent;
  color: #090C33;
  font-size: 20px;
  font-style: normal;
  line-height: 150%;
  border-bottom: 2px solid #090C33;
  width: fit-content;
}

.bx--button-text:hover {
  border-color: #7C55FF;
  background-color: transparent;
}

.bx--button-text::before {
  all: initial;
}


.new-user {
  margin-top: 16px;
  display: flex;
  align-items: center;
}

.new-user div {
  color: #090C33;
  font-size: 20px;
  font-family: GjensidigeSans-Medium, sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;

  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-underline-offset: auto;
  text-underline-position: from-font;
  display: inline;
}

.new-user span {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('../../icons/question-mark.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  margin-bottom: -5px;
  margin-left: 6px;
}
.new-user span.active {
  background-image: url('../../icons/close.svg');
}

#help-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

#help-text.show {
  max-height: 500px;
  font-family: GjensidigeSans-Regular, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  opacity: 1;
}

#warning {
  position: inherit;
}

.error-box {
  display: none;
  align-items: center;
  gap: 8px;
  background-color: #FFE2E2;
  color: #8C0008;
  border: 2px solid #8C0008;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: GjensidigeSans-Regular, sans-serif;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  margin-bottom: 1px;
  margin-top: 4px;
}
.error-box.show {
  display: flex;
}


.error-box::before {
  display: inline-block;
  content: '';
  width: 16px;
  height: 16px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('../../icons/error-icon.svg');
}

.space p {
  margin-top: 32px;
}