:root {
  /* movos vars */
  --movos-primary-color: #399eac;
  --movos-primary-light-color: #65c0cc;
  --movos-primary-dark-color: #3da9b7;
  --movos-accent-color: #f7d93d;
  --movos-white-color: #ffffff;
  --movos-bg-color: #fbfaf9;
  --movos-primary-font-size: 16px;
  --movos-text-primary-color: #3c3d46;
  --movos-text-secondary-color: #a8a8a8;
  --movos-font-family: 'Mulish', sans-serif;
  --movos-border: solid 1px #cccccc;
  --movos-panel-bg-color: var(--movos-bg-color);
  --movos-sm-space: 16px;
  --movos-lg-space: 36px;

  /* kc vars */
  --pf-global--primary-color--100: var(--movos-primary-light-color);
}

/*
  MAIN LAYOUT
*/

* {
  outline-color: var(--movos-primary-color);
}

body {
  background: var(--movos-bg-color) !important;
}

.login-pf body {
  background-image: none;
  font-family: var(--movos-font-family);
  font-size: var(--movos-primary-font-size);
  color: var(--movos-text-primary-color);
}

.login-pf a {
  color: var(--movos-primary-color);
  text-decoration: underline;
  font-weight: 600;
  outline: none;
}

.login-pf a:hover {
  color: var(--movos-primary-color);
  text-decoration: none;
}

.login-pf-page {
  position: relative;
  display: grid;
  grid-template-rows: max-content 1fr;
  grid-gap: 30px;
  height: 100%;
  padding: 0;
  margin: 0;
}

.login-pf-page-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.movos-illustration {
  display: none;
}

#kc-error-message, #kc-info-message {
  margin: 0 0 var(--movos-lg-space) 0;
}

/*
  HEADER
*/

#kc-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  height: 78px;
}

.movos-logo-wrapper {
  padding: 6px 0;
  position: fixed;
  background: var(--movos-bg-color);
  width: 100%;
  z-index: 3;
}

.movos-logo {
  max-height: 66px;
}

/*
  FORM BLOCK
*/

#kc-form {
  overflow-y: auto;
}

.login-pf-page .card-pf {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0 var(--movos-sm-space);
  background-color: var(--movos-panel-bg-color);
}

#kc-content {
  display: flex;
  height: 100%;
  min-height: 0;
}

#kc-content-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.movos-page-content-wrapper {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.movos-card-wrapper {
  height: 100%;
}

.movos-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: var(--movos-lg-space);
  flex: 1;
}

.login-pf-page .login-pf-header {
  margin-bottom: 0;
}

h1#kc-page-title {
  font-size: 24px;
  font-weight: 800;
  text-align: start;
}

#kc-info-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--movos-white-color);
  font-size: var(--movos-primary-font-size);
  color: var(--movos-text-primary-color);
  font-weight: 600;
  border-top: var(--movos-border);
  min-height: 64px;
}

#kc-info {
  margin: 40px -16px 0;
}

/*
  ALERT
*/
.pf-c-alert.pf-m-inline {
  margin-top: 20px;
}

/*
  FORM ELEMENTS
*/

.pf-c-form__label {
  font-weight: 600;
}

/*
  CHECKBOX
*/

.movos-checkbox label {
  display: flex;
  flex-flow: row-reverse;
  color: var(--movos-text-primary-color);
  font-weight: 600;
  display: flex;
  padding: 0;
  user-select: none;
}

.movos-checkbox label span {
  width: 16px;
  height: 16px;
  background-color: var(--movos-white-color);
  border: 1px solid var(--movos-primary-color);
  margin: 5px 10px 0 0;
}

.movos-checkbox [type=checkbox] {
  visibility: hidden;
}

.movos-checkbox [type=checkbox]:checked + span {
  background-color: var(--movos-primary-color);
  background-image: url('../img/checkmark.svg');
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

#kc-form-buttons {
  margin-top: 40px;
}

.pf-c-button {
  border-radius: 24px;
  padding: 13px 0;
  font-size: var(--movos-primary-font-size);
  font-weight: 600;
}

.pf-c-button:disabled, .pf-c-button:focus, .pf-c-button:hover {
  background-color: var(--movos-primary-dark-color);
}

.pf-c-button:disabled {
  color: var(--movos-white-color);
  background-color: var(--movos-primary-light-color);
}

.pf-c-form-control {
  border: var(--movos-border);
  background-color: var(--movos-white-color);
}

.pf-c-form-control:focus-visible, .pf-c-form-control:hover {
  border: var(--movos-border);
}

.pf-c-form-control[aria-invalid="true"] {
  border: var(--movos-border);
}

/*
  BACK LINK
*/

#kc-form-options {
  text-align: center;
}

.movos-back-link {
  position: relative;
}

.movos-back-link:before {
  position: absolute;
  content: '';
  background-image: url('../img/back.svg');
  width: 16px;
  height: 16px;
  left: -18px;
  top: 3px;
  color: var(--movos-primary-color);
}

/*
  RESET PASSWORD SCREEN
*/

.movos-password-reset-disclaimer {
  margin-bottom: 20px;
}

/*
  LOCALE SWITCHER
*/

#kc-locale {
  margin-right: 10px;
  z-index: 2;
}

#kc-locale #kc-current-locale-link {
  display: flex;
  align-items: center;
  color: var(--movos-text-secondary-color);
  font-family: var(--movos-font-family);
  font-size: var(--movos-primary-font-size);
  text-decoration: none;
}

#kc-locale-dropdown:hover #kc-current-locale-link {
  color: var(--movos-text-primary-color);
}

#kc-locale #kc-current-locale-link:after {
  position: relative;
  display: block;
  content: '';
  border-right: 4px solid transparent;
  border-top: 4px solid var(--movos-text-secondary-color);
  border-left: 4px solid transparent;
  left: 3px;
  margin: 0;
}

#kc-locale-dropdown:hover #kc-current-locale-link:after {
  border-top-color: var(--movos-text-primary-color);
}

#kc-locale-dropdown .pf-c-dropdown__menu-item {
  color: var(--movos-text-primary-color);
  text-decoration: none;
  padding: 10px;
  font-weight: 400;
  font-size: var(--movos-primary-font-size);
  font-family: var(--movos-font-family);
  text-align: center;
}

#kc-locale-dropdown .pf-c-dropdown__menu {
  width: 85px;
  top: 25px;
  right: -20px;
}

@media screen and (min-width: 767px) {
  :root {
    --movos-panel-bg-color: var(--movos-white-color);
    --movos-sm-space: 40px;
  }

  body {
    overflow-y: hidden;
  }

  .login-pf-page {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-gap: 40px;
  }

  .movos-logo {
    max-height: 100%;
  }

  #kc-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 40px;
  }

  h1#kc-page-title {
    margin: var(--movos-lg-space) 0 0 0;
    font-size: 32px;
  }

  .card-pf {
    min-width: 420px;
  }

  #kc-info {
    margin: 20px -16px 0 -16px;
  }

  .login-pf-page .card-pf {
    display: flex;
    margin: 60px var(--movos-lg-space) 60px 0;
    border-top: 2px solid;
    border-color: var(--movos-accent-color);
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.08), inset 0 4px 0 0 var(--movos-accent-color);
    height: auto;
  }

  #kc-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #kc-header {
    height: 100%;
  }

  .movos-logo-wrapper {
    width: auto;
    top: 0;
  }

  .movos-page-content-wrapper {
    min-height: auto;
    height: 100vh;
  }

  .movos-card-wrapper {
    overflow-y: auto;
  }

  #kc-content-wrapper {
    margin: 0;
    min-height: 0;
  }

  #kc-register-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .movos-form-fields {
    min-height: 0;
    overflow-y: auto;
  }

  .movos-illustration {
    display: block;
    flex: 1;
    width: 100%;
    min-width: 300px;
    background-image: url('../img/illustration.svg');
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
  }

  #kc-locale {
    position: absolute;
    top: -35px;
    right: 0;
  }
}

@media screen and (min-width: 991px) {
  .login-pf-page .card-pf {
    margin: 60px 100px 60px 0;
  }
}