.translationNotFound::before {
  content: "No translation->";
  color: red;
  display: inline-block;
}

/************/

/* latin */
@font-face {
  font-family: "Muli";
  font-style: normal;
  font-weight: 300;
  src: local("Muli Light"), local("Muli-Light"),
    url("../res/fonts/Muli-Light.ttf") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: "Muli";
  font-style: normal;
  font-weight: 400;
  src: local("Muli Regular"), local("Muli-Regular"),
    url("../res/fonts/Muli-Regular.ttf") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: "Muli";
  font-style: normal;
  font-weight: 700;
  src: local("Muli Bold"), local("Muli-Bold"),
    url("../res/fonts/Muli-Bold.ttf") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Share Tech Mono";
  font-style: normal;
  font-weight: 700;
  src: local("Share Tech Mono"), local("Share-Tech-Mono"),
    url("../res/fonts/ShareTechMono-Regular.ttf") format("woff2");
}

/************/

/**
 * Everything!
 */
html,
body {
  /* Mobile Safari fix */
  touch-action: auto;
  /* overflow-y: scroll; */
}

body {
  color: rgb(30, 30, 30);
  font-family: "Muli", Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  margin: 0;
  padding: 20px 36px 120px 36px;
}

a {
  color: black;
}

/**
 *****************
 * Generic, re-occuring components.
 */
/* Buttons / links */
button,
a.button {
  background: linear-gradient(to bottom, rgb(132, 132, 132), rgb(80, 80, 80));
  border: 0;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  color: white;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 6px;
  padding: 12px 40px;
  position: relative;
  text-decoration: none;
}

button:hover,
a.button:hover {
  background: linear-gradient(to bottom, rgb(148, 148, 148), rgb(96, 96, 96));
}

button:active,
a.button:active {
  background: linear-gradient(to bottom, rgb(100, 100, 100), rgb(50, 50, 50));
  outline: none;
}

button.secondair,
a.button.secondair {
  background: transparent;
  border: 2px solid rgb(30, 30, 30);
  box-shadow: none;
  color: rgb(30, 30, 30);
  padding: 10px 36px;
}

button.secondair:hover,
a.button.secondair:hover {
  background: linear-gradient(to bottom, white, rgb(235, 235, 235));
}

button.tertiair:active,
a.button.tertiair:active {
  opacity: 0.5;
}

button.tertiair,
a.button.tertiair {
  background: transparent;
  border: 2px solid #b1b1b1;
  box-shadow: none;
  color: rgb(128, 128, 128);
  padding: 10px 19px;
}

button.tertiair:hover,
a.button.tertiair:hover {
  background: linear-gradient(to bottom, white, rgb(245, 245, 245));
}

button.tertiair:active,
a.button.tertiair:active {
  opacity: 0.5;
}

a.button.left {
  float: left;
}

a.button.right {
  float: right;
}

/* Authenticator */
img.qr_2fa {
  float: right;
  height: 180px;
  margin-left: 20px;
}

a.open-auth {
  display: inline-block;
  background: transparent;
  border: 2px solid rgb(30, 30, 30);
  border-radius: 5px;
  text-decoration: none;
  box-shadow: none;
  color: rgb(30, 30, 30);
  margin-top: 2px;
  padding: 8px 36px 10px 36px;
  height: 20px;
  font-size: 1rem;
  font-weight: normal;
  width: auto;
}

a.open-auth:hover {
  background: linear-gradient(to bottom, white, rgb(235, 235, 235));
}

.mobile {
  display: block;
}

.authcode {
  color: gray;
  font-weight: bold;
}

.msgcode {
  color: gray;
}

.center {
  text-align: center;
}

/* Input fields (texts, email, etc) */
input[type="email"],
input[type="password"],
input[type="text"] {
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid black;
  border-radius: 0;
  box-sizing: border-box;
  display: block;
  font-size: 1rem;
  padding: 14px 0;
  transition: background-color 250ms, color 250ms, padding-left 250ms ease-out;
  width: 100%;
}

div[class^='m_set_password'] input[type="password"] {
  width: calc(100% - 40px);
}

.check-password.ok input {
  border-bottom: 1px solid #6aa84f;
}

.check-password.ok::after {
  background: url("../res/images/icon_ok.svg") no-repeat;
  content: "";
  display: block;
  height: 40px;
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 40px;
}

.check-password.nok input {
  border-bottom: 1px solid #cc0000;
}

.check-password.nok::after {
  background: url("../res/images/icon_nok.svg") no-repeat;
  content: "";
  display: block;
  height: 40px;
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 40px;
}

.check-warning {
  color: #cc0000;
  line-height: 20px;
  padding-top: 30px;
  display: none;
}

.check-warning.show {
  display: block;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder {
  font-style: italic;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  background-color: rgba(0, 0, 0, 0.05);
  outline: none;
}

input:not(:focus):invalid {
  color: red;
}

/* Form */
form {
  position: relative;
}

form.busy {
  opacity: 0.6;
  pointer-events: none;
}

form.busy::after {
  content: "";
  display: block;
  height: 50px;
  width: 50px;
}

fieldset {
  border: 0;
  font-weight: lighter;
  padding: 10px 0;
}

fieldset legend {
  padding: 0;
}

fieldset legend span {
  padding: 10px 0;
}

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

/* Inputs in a stylized row. */
div.input-row {
  margin: 10px 0;
  position: relative;
}

div.domain-input {
  position: relative;
}

div.domain-input span.domain {
  font-weight: bold;
  padding: 10px 0;
  pointer-events: none;
  position: absolute;
  right: 4px;
  top: 0;
}

div.domain-input input[type="email"] {
  padding-right: 106px;
}

div.domain-input span.domain:empty {
  display: none;
}

div.code-row input[type="text"] {
  background-color: transparent;
  background-image: url("../res/images/code_input_bg.gif");
  background-position: 0 100%;
  background-repeat: no-repeat;
  border: 0;
  font-family: "Share Tech Mono", monospace;
  font-size: 50px;
  letter-spacing: 18px;
  margin: 10px 0;
  padding: 10px 0 10px 10px;
  -moz-appearance: textfield;
}

div.code-row input[type="text"]::-webkit-outer-spin-button,
div.code-row input[type="text"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* Dropdown / select */
div.select-row {
  margin: 10px 0;
}

div.select {
  position: relative;
  /* border-bottom: 1px solid lightgray; */
  box-sizing: border-box;
  position: relative;
}

div.select::after {
  pointer-events: none;
  position: absolute;
  background: url("../res/images/dropdown_expand.svg") no-repeat 50% 50% / 20px 14px;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
}

select {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: block;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.1rem;
  overflow: hidden;
  padding: 8px 0;
  text-overflow: ellipsis;
  white-space: normal;
  width: 100%;
  -webkit-appearance: button;
}

/* Message box */
div.msg {
  margin-top: 10px;
  background-color: rgb(245, 245, 245);
  border-radius: 6px;
  margin-bottom: 14px;
  padding: 10px 18px;
}

div.msg.error {
  background-color: rgb(247, 220, 220);
  /*box-shadow: 0 4px 10px rgb(251, 227, 227);*/
}

div.msg.info {
  background-color: rgb(237, 237, 248);
  /*box-shadow: 0 4px 10px rgb(228, 239, 253);*/
}

div.buttons {
  background-color: transparent;
  border-top: 1px solid rgb(240, 240, 240);
  bottom: 0;
  box-sizing: border-box;
  height: auto;
  left: 0;
  padding: 10px 36px;
  position: fixed;
  width: 100%;
}

div.buttons::after {
  clear: both;
  content: "";
  display: block;
}

/**
 * Component / method specific styling.
 */
div.instructions {
  font-size: 0.8em;
  line-height: 1.6em;
}

ul.requirements {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.requirements li::before {
  background: url("../res/images/icon_check.svg") no-repeat 50% / 14px 14px;
  content: "";
  display: inline-block;
  height: 14px;
  margin-right: 6px;
  width: 14px;
  vertical-align: middle;
}

button[type="submit"] {
  float: right;
  padding-right: 60px;
}

button[type="submit"]::after {
  background: url("../res/images/icon_next.svg") no-repeat 0 50% / 10px 16px;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
}

button.resend[type="submit"]::after {
  background: none;
}

.m_set_sms select {
  display: inline-block;
  width: 50px;
}

.m_set_sms input {
  display: inline-block;
  width: calc(100% - 60px);
}

/* Mobile version */
@media (max-width: 500px) {
  body {
    padding: 20px 18px 80px 18px;
  }

  div.buttons {
    position: initial;
    max-width: 100%;
  }

  button[type="submit"] {
    float: none;
    width: 100%;
  }

  button.secondair {
    width: 100%;
  }

  button.tertiair {
    width: 100%;
  }

  div.code-row {
    padding: 10px 0 10px 5px;
    background-size: contain;
  }
}

@supports (position: sticky) {
  body {
    padding-bottom: 0;
  }

  div.buttons {
    /* background-color: transparent; */
    margin-top: 20px;
    padding: 10px 0;
    position: sticky;
  }
}