/* Can't use because of IE11
:root {
  --black: #212121;
  --gray: #959595;
  --gray2: #e0e0e0;
  --yolean-blue: #5FA9DD;
  --alert-red: #F75065;
  --alert-green: #53C4AB;
  --bg: #f9f9f9;
  --white: #ffffff;
  --size-small: 13px;
} */

#kc-locale {
  display: none;
}

/* kc-locale copied from default Keycloak 9 theme, works with 1 option */
#kc-locale ul {
  display: none;
  position: absolute;
  background-color: #fff;
  list-style: none;
  right: 0;
  top: 20px;
  min-width: 100px;
  padding: 2px 0;
  border: solid 1px #bbb;
}

#kc-locale:hover ul {
  display: block;
  margin: 0;
}

#kc-locale ul li a {
  display: block;
  padding: 5px 14px;
  color: #000 !important;
  text-decoration: none;
  line-height: 20px;
}

#kc-locale ul li a:hover {
  color: #4d5258;
  background-color: #d4edfa;
}

#kc-locale-dropdown a {
  color: #4d5258;
  background: 0 0;
  padding: 0 15px 0 0;
  font-weight: 300;
}

#kc-locale-dropdown a:hover {
  text-decoration: none;
}

a#kc-current-locale-link {
  color: #959595;
  display: block;
  padding: 0 5px;
}

/* a#kc-current-locale-link:hover {
  background-color: rgba(0,0,0,0.2);
} */

a#kc-current-locale-link::after {
  content: "\2c5";
  margin-left: 4px;
}

/* Needed to avoid iOS override styleing */
/* https://www.daretothink.co.uk/stop-ios-styling-your-input-fields-and-buttons/ */
textarea,
input.text,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="button"],
input[type="submit"],
.input-checkbox {
  -webkit-appearance: none;
}

body, html {
  font-family: 'Open Sans', sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #212121;
  font-size: 16px;
}

label {
  font-size: 13px;
}

input {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 8px 8px;
  margin: 4px 0px;
  font-size: inherit;
}

input[type="text"], input[type="password"], input[type="email"]{
  /* 300 - padding (282px) */
  /* TODO: calcualte this in a better way? */
  width: calc(100% - 18px);
}

a {
  color: #5FA9DD;
  text-decoration: none;
}


#kc-logo {
  height: 75px;
  width: 180px;
  margin: 40px auto;
}

#kc-logo-wrapper {
    background: url("../img/yolean-logo.png") no-repeat center;
    height: 75px;
    background-size: 180px;
}

#kc-header-wrapper h1 {
  font-size: 26px;
  margin: 0px;
}

#kc-header-wrapper .subtitle {
  color: #959595;
  font-size: 14px;
  margin-bottom: 20px;
}

#kc-container {
  max-width: 300px;
  margin: auto;
  text-align: center;

  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px 0 rgba(0,0,0, 0.18);
  padding: 20px 40px 40px 40px;

  /* Make sure that there is room for "New user.." and "Go back" buttons */
  margin-bottom: 130px;
}

#kc-info-wrapper {
  display: flex;
  flex-direction: column;
  /* Make the content appear outside the box */
  position: absolute;
  margin-top: 80px;
  margin-bottom: 60px;
  width: 300px;
}

#kc-form-buttons, #kc-form-wrapper {
  display: flex;
  flex-direction: column;
}

#kc-footer {
  height: 4px;
  background: #5FA9DD;
  position: fixed;
  bottom: 0px;
  right: 0px;
  left: 0px;
}

.divider {
  color: #959595;
  margin: 5px 0 15px 0px;
  font-size: 14px;
}

.divider-line {
    border-bottom: 1px solid rgba(0,0,0,.15);
    margin-bottom: 3px;
    padding: 2px 0;
}

.sso-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.sso-list .sso-btn {
  margin:0 0 10px 0;
}

.btn {
  text-decoration: none;
  color: white;
  background-color: #5FA9DD;
  cursor: pointer;
  padding: 8px 22px;
  font-weight: 500;
  border-color: transparent;
  border-radius: 4px;
  text-align: center;
}

.btn-admin {
  color: #212121;
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

.login-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hidden {
  display: none;
}


.margin-bottom {
  margin-bottom: 10px;
}

.margin-top {
  margin-top: 20px;
}

.forgot-password {
  text-align: center;
  margin-top: 15px;
}

.checkbox {
  margin: 8px 0px;
}

#kc-reset-password {
  text-align: center;
}

.alert {
  margin-top: 10px;
  margin-bottom: 10px;
}

.alert-error {
  color: #F75065;
  font-size: 13px;
  text-align: left;
  margin-bottom: 0px;
}

.alert-warning {
  margin-top: 8px;
  margin-bottom: 20px;
}

.alert-success {
  color: #53C4AB;
  font-weight: bold;
}

.alert-description {
  color: #212121;
  font-size: 13px;;
  font-weight: normal;
}

.left-align {
  text-align: left;
}

/* OTP pages need denser, left-aligned content for readability and viewport fit. */
#kc-otp-login-form,
#kc-totp-settings,
#kc-totp-settings-form,
#kc-otp-help {
  text-align: left;
}

#kc-otp-login-form {
  gap: 8px;
}

.otp-help-heading {
  margin: 6px 0 2px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: #1f2a37;
}

#kc-otp-help {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
}

#kc-otp-help p {
  margin: 2px 0 8px;
  max-width: 60ch;
}

#kc-otp-login-form #kc-form-buttons {
  text-align: center;
}

#kc-totp-settings-form #input-error-otp-code {
  display: block;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#kc-otp-login-form #kc-login,
#kc-totp-settings-form #saveTOTPBtn {
  display: block;
  max-width: 240px;
  margin: 8px auto 0;
}

.otp-qr-subtext {
  text-align: center;
  font-size: 13px;
}

.otp-help-link {
  text-align: center;
  font-size: 13px;
  margin: 0;
}

.otp-help-link-top-wrap {
  margin-top: 8px;
  margin-bottom: 12px;
}

.otp-help-link a {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #b6d3ea;
  border-radius: 999px;
  background: #eef7ff;
  color: #2c6c97;
  font-weight: 600;
}

.otp-help-link .otp-help-symbol {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  margin-right: 6px;
  vertical-align: -1px;
}

body.otp-setup-page #kc-header-wrapper h1,
body.otp-login-page #kc-header-wrapper h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 8px;
}

.otp-setup-intro {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.otp-setup-list > li:first-child > p:first-child {
  font-size: 15px;
}

#kc-totp-secret-qr-code {
  display: block;
  margin: 0 auto;
  max-width: 210px;
  width: 100%;
}

#kc-otp-login-form #otp,
#kc-totp-settings-form #totp {
  display: block;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.otp-input-label-wrap {
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.otp-setup-list {
  margin: 0 0 10px 20px;
  padding: 0;
}

.otp-setup-list li {
  margin-bottom: 10px;
}

.otp-setup-list > li > p {
  margin: 0 0 6px;
  line-height: 1.35;
  width: 100%;
}

.otp-setup-list > li > p:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #1f2a37;
}

#kc-totp-supported-apps {
  margin: 2px 0 0 18px;
  padding: 0;
}

#kc-totp-supported-apps li {
  margin-bottom: 2px;
}

.otp-secret-key {
  display: inline-block;
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  background: #f3f7fb;
  border: 1px solid #d8e2ec;
  border-radius: 4px;
  padding: 6px 8px;
  word-break: break-all;
}

.otp-setup-form {
  margin-top: 4px;
}

.otp-step3-list {
  margin: 0 0 8px 18px;
  padding: 0;
  text-align: left;
}

.otp-step3-list li {
  margin-bottom: 4px;
}

.otp-step3-list li p {
  margin: 0;
  line-height: 1.35;
  max-width: 42ch;
}

.otp-step3-list li p:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #1f2a37;
}

@media only screen and (min-width: 980px) {
  body.otp-setup-page #kc-container {
    max-width: 860px;
    padding-left: 48px;
    padding-right: 48px;
  }

  .otp-login-layout {
    display: block;
  }

  .otp-login-layout #kc-otp-help {
    margin-top: 8px;
    border-right: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .otp-login-layout #kc-otp-help .divider-line {
    display: block;
  }

  .otp-setup-layout {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr);
    gap: 18px;
    align-items: start;
  }

  .otp-setup-actions {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-left: 1px solid rgba(0, 0, 0, .12);
    padding-left: 14px;
    padding-top: 2px;
  }

  .otp-setup-actions .otp-setup-form {
    margin-top: auto;
  }

  .otp-setup-actions .otp-help-link {
    margin-top: 8px;
  }
}

@media only screen and (min-width: 760px) and (max-height: 920px) {
  #kc-logo {
    margin: 18px auto 14px;
  }

  body.otp-setup-page #kc-container {
    padding-top: 16px;
    padding-bottom: 24px;
    margin-bottom: 72px;
  }

  .otp-setup-list li {
    margin-bottom: 8px;
  }

  #kc-otp-help p {
    margin-bottom: 6px;
  }
}

@media only screen and (min-width: 1280px) and (max-width: 1390px) and (max-height: 790px) {
  #kc-logo {
    margin: 12px auto 10px;
  }

  body.otp-setup-page #kc-container {
    max-width: 820px;
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .otp-login-layout,
  .otp-setup-layout {
    gap: 16px;
  }
}

@media only screen and (min-width: 1400px) and (max-width: 1520px) and (max-height: 930px) {
  body.otp-setup-page #kc-container {
    max-width: 900px;
    padding-top: 14px;
    padding-bottom: 20px;
  }

  .otp-login-layout,
  .otp-setup-layout {
    gap: 18px;
  }
}

.reset-password-header-image {
  background: url("../img/fallback-circle.png") no-repeat center;
  background-image: url("../img/ecology-globe.svg");
  background-size: contain;
  height: 160px;
}

.error-page-header-image {
  background: url("../img/fallback-circle.png") no-repeat center;
  background-image: url("../img/programmer-male.svg");
  background-size: contain;
  height: 160px;
}


@media only screen and (max-width: 500px) {
  /* Insert code for mobile phones: */
}

#input-error-email,
#input-error-password,
#input-error-firstName,
#input-error-lastName,
#input-error-phone,
#input-error-terms-accepted,
#input-error-company {
  color: #ff3333;
}
