.login-pf body {
  background: #f9fafb;
  background-size: cover;
  height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.login-pf{
  height: auto;
}

.login-pf-page {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100vh;
  justify-content: center;
  background: #f9fafb;
  padding-bottom: 20px;
  padding-top: 20px;
}

.login-pf-page .login-pf-social {
  margin: 0;
}

.form-group.login-pf-settings {
  margin-bottom: 0;
}

.kc-header-locale{
  align-items: flex-end;
}

#kc-locale{
  width: min-content;
  position: relative;
  text-align: right;
  z-index: 9999;
}

#kc-locale ul {
  display: none;
  position: absolute;
  background-color: #fff;
  list-style: none;
  right: 0;
  bottom: 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 {
  display: block;
  padding: 0 5px;
}

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

.login-pf .container {
  padding-top: 40px;
}

#kc-logo {
  width: 100%;
}

#kc-logo-wrapper {
  background-repeat: no-repeat;
  height: 63px;
  width: 300px;
  margin: 62px auto 0;
}

div.kc-logo-text {
  background-image: url(../img/keycloak-logo-text.png);
  background-repeat: no-repeat;
  height: 63px;
  width: 300px;
  margin: 0 auto;
}

div.kc-logo-text span {
  display: none;
}

#kc-header {
  color: #ededed;
  overflow: visible;
  white-space: nowrap;
}

#kc-header.login-pf-page-header {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

#kc-header-wrapper {
  font-size: 29px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2em;
  padding: 0;
  white-space: normal;
  width: 300px;
}

#kc-content {
  width: 100%;
}

#kc-form-options span {
  display: block;
}

#kc-form-options .checkbox {
  margin-top: 0;
  color: #666666;
}

#kc-terms-text {
  margin-bottom: 20px;
}

/* TOTP */

ol#kc-totp-settings {
  margin: 0;
  padding-left: 20px;
}

ul#kc-totp-supported-apps {
  margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
  max-width: 150px;
  max-height: 150px;
}

#kc-totp-secret-key {
  background-color: #fff;
  color: #333333;
  font-size: 16px;
  padding: 10px 0;
}

/* OAuth */

#kc-oauth h3 {
  margin-top: 0;
}

#kc-oauth ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#kc-oauth ul li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
  border-top: 0;
}

#kc-oauth .kc-role {
  display: inline-block;
  width: 50%;
}

/* Code */
#kc-code textarea {
  width: 100%;
  height: 8em;
}

/* Social */

#kc-social-providers ul {
  padding: 0;
}

#kc-social-providers li {
  display: flex;
  justify-content: center;
}

#kc-social-providers li:first-of-type {
  margin-top: 0;
}

.zocial,
a.zocial {
  width: 100%;
  height: 50px;
  font-weight: normal;
  font-size: 16px !important;
  text-shadow: none;
  border: 0;
  border-radius: 8px !important;
  white-space: normal;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.zocial:before {
  border-right: none;
  float: none;
  margin-right: 0;
  box-shadow: none;
  padding: 0 0.5em 0 0;
}

.zocial span:before {
  padding: 7px 10px;
  font-size: 14px;
}

.zocial:hover, .btn-outlined a:hover {
  background: #f5f5f5 !important;
  opacity: .9;
  box-shadow: 0 8px 23px -18px rgba(0, 0, 0, 0.75) !important;
}

.zocial.facebook,
.zocial.github,
.zocial.google,
.zocial.microsoft,
.zocial.stackoverflow,
.zocial.linkedin,
.zocial.twitter {
  background-image: none;
  border: 0;
  box-shadow: none;
  text-shadow: none;
}

/* Copy of zocial windows classes to be used for microsoft's social provider button */
.zocial.microsoft:before {
  content: "\f15d";
}

.zocial.stackoverflow:before {
  color: inherit;
}

.zocial.facebook {
  background: #3b5998 !important;
  color: #ffffff !important;
}

.zocial.google {
  color: #335d6b !important;
  border: 1px solid #335d6b;
}

.zocial.google:before {
  content: url("../img/icons-google.svg");
}


#zocial-apple:before {
  content: "\f106";
}

#zocial-apple{
  box-shadow: none;
  background-color: #000;
  color: #fff;
}

#zocial-apple:focus, #zocial-apple:active, #zocial-apple:hover  {
  color: #fff;
  background-color: #000 !important;
  -webkit-box-shadow: 0 8px 23px -17px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0 8px 23px -17px rgba(0, 0, 0, 0.75);
  box-shadow: 0 8px 23px -17px rgba(0, 0, 0, 0.75);
}

._3z32r {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 10px;
  width: 100%;
  color: #335d6b;
  text-transform: lowercase;
  font-size: 14px;
}

._1yioG {
  flex-grow: 1;
  margin-right: 11px;
  margin-left: 11px;
  border-bottom: 1px solid #e1e2e4;
}

._1yioG:first-child {
  margin-left: 0;
}

._1yioG:last-child {
  margin-right: 0;
}

.custom-tab--login{
  display: none;
}

@media (min-width: 768px) {
  #go-to-login{
    display: none;
  }
  .custom-tab--login{
    display: block;
  }

  .btn-outlined{
    width: 44% !important;
  }

  #kc-info-register #kc-registration .btn-outlined{
    width: 100% !important;
  }
  #kc-container-wrapper {
    position: absolute;
    width: 100%;
  }

  .login-pf .container {
    padding-right: 80px;
  }

  .login-pf-page .card-pf.login-pf-accounts {
    width: auto;
  }

  .login-pf-page .card-pf {
    padding: 20px 20px 30px 20px;
  }
}

@media (max-width: 767px) {
  .login-pf body {
    background: white;
  }

  #kc-header {
    padding-left: 15px;
    padding-right: 15px;
    float: none;
    text-align: left;
  }

  #kc-header-wrapper {
    font-size: 16px;
    font-weight: bold;
    padding: 0 27px;
    color: #666666;
    text-align: center;
    letter-spacing: 0;
  }

  div.kc-logo-text {
    margin: 0;
    width: 150px;
    height: 32px;
    background-size: 100%;
  }

  #kc-form {
    float: none;
    display: flex;
    flex-direction: column;
  }

  #kc-social-providers li {
    /*display: block;*/
    display: flex;
    justify-content: center;
    margin-right: 5px;
    transition: all .3s;
  }

  .login-pf .container {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  #kc-logo-wrapper {
    background-size: 100px 21px;
    height: 21px;
    width: 100px;
    margin: 20px 0 0 20px;
  }
}

@media (min-height: 646px) {
  #kc-container-wrapper {
    bottom: 12%;
  }
}

@media (max-height: 645px) {
  #kc-container-wrapper {
    padding-top: 50px;
    top: 20%;
  }
}

.card-pf form.form-actions .btn {
  float: right;
  margin-left: 10px;
}

.login-pf-page .login-pf-brand {
  margin-top: 20px;
  max-width: 360px;
  width: 40%;
}

.card-pf {
  background: #fff;
  border-radius: 6px;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 500px;
  width: 50%;
  -webkit-box-shadow: 03px 4px 2px rgb(240, 241, 242);
  -moz-box-shadow: 0 3px 4px 2px rgb(240, 241, 242);
  box-shadow: 0 3px 4px 2px rgb(240, 241, 242);
}

/*tablet*/
@media (max-width: 840px) {
  .card-pf {
    width: auto;
  }

  .login-pf-page .card-pf {
    /*max-width: none;*/
    /*margin-left: 20px;*/
    /*margin-right: 20px;*/
    padding: 20px 20px 30px 20px;
  }
}

@media (max-width: 767px) {
  .login-pf-page .card-pf {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
    background: transparent;
    box-shadow: none;
  }

  .card-pf.login-pf-accounts {
    max-width: none;
  }
}

#kc-page-title span#emailInstruction {
  font-size: 14px;
  color: #666666;
}

#kc-error-message{
  text-align: center;
  font-size: 14px;
}

#kc-error-message p.instruction, #kc-content-wrapper p.instruction{
  text-align: center;
  font-size: 14px;
  color: #666666;
}

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

#backToLogin .fa-arrow-left{
  position: absolute;
  top: 55px;
  left: 22px;
  font-size: 30px;
  color: #c70139;
}

#backToLoginTwo .fa-arrow-left{
  position: absolute;
  top: 20px;
  left: 22px;
  font-size: 30px;
  color: #c70139;
}

#kc-content-wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 768px) {
  .login-pf-page .login-pf-social-section:first-of-type {
    padding-right: 39px;
    border-right: 1px solid #e1e2e4;
    margin-right: -1px;
  }

  .login-pf-page .login-pf-social-section:last-of-type {
    padding-left: 40px;
  }

  .login-pf-page .login-pf-social-section .login-pf-social-link:last-of-type {
    margin-bottom: 0;
  }
}

.login-pf-page .login-pf-social-link {
  margin-bottom: 15px;
}


.login-pf-page .login-pf-social-link a {
  padding: 2px 0;
}

.login-pf-page.login-pf-page-accounts {
  margin-left: auto;
  margin-right: auto;
}

#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type {
  margin-bottom: 0px;
}

#kc-back {
  margin-top: 5px;
}

form#kc-select-back-form div.login-pf-social-section {
  padding-left: 0px;
  border-left: 0px;
}

/* ***************************** */
/*ADD*/
/* ***************************** */
.login-pf-page .btn-block, .login-pf-page button, #kc-back {
  border-color: transparent !important;
  color: #fff !important;
  text-transform: none;
  margin-top: 0;
  background-image: none;
  border-radius: 8px !important;
  background-repeat: repeat-x;
  padding: 1px;
  border: none;
  font-size: 16px;
}

.login-pf-page .btn-block, .login-pf-page button, #kc-back {
  background-color: #c70139;
}

.btn-block:focus, .btn.btn-block:focus, button:focus, #kc-back:focus {
  outline: none !important;
}

.btn-block:hover, .btn-block:active, .btn-block:focus{
  background-color: #c70139 !important;
  opacity: .9;
  -webkit-box-shadow: 0 8px 23px -17px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0 8px 23px -17px rgba(0, 0, 0, 0.75);
  box-shadow: 0 8px 23px -17px rgba(0, 0, 0, 0.75);
}

.form-group,
.form-group-register{
  margin-bottom: 15px;
}

button{
  margin-bottom: 10px
}

.btn-block, .btn.btn-block {
  border: none;
}

.form-control{
  border-radius: 10px;
  color: #335d6b;
  height: 50px !important;
  box-shadow: none;
  background: #eff0f1;
  border: none;
  font-size: 16px;
}

.form-control:active,
.form-control:focus,
.form-control:hover{
  box-shadow: none;
  border-color: #eff0f1;
}

 a,
 a:active,
 a:focus,
 a:hover {
  outline: none;
  color: #3FC1CE;
}

.form-control {
  padding: 0 20px;
}

.login-pf-settings > div > span {
  color: #335D6B;
  font-size: 14px;
  font-weight: 400;
}

#kc-form-options > div.checkbox > label {
  color: #335D6B;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
}

#kc-form-options > div.checkbox > label > input {
  margin-top: 0;
  margin-right: 7px;
}

.checkbox input[type=checkbox],
.checkbox-inline input[type=checkbox],
.radio input[type=radio],
.radio-inline input[type=radio] {
  position: relative;
  /*margin: 0;*/
}

#kc-form-buttons{
  display: flex;
  justify-content: center;
}

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

#kc-register-form .form-group, #kc-select-back-form .form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="button"].btn-block,
input[type="reset"].btn-block,
input[type="submit"].btn-block,
button{
  height: 50px;
}

.alert {
  border-radius: 14px;
}

.alert-error {
  background-color: #ffffff;
  border-color: #cc0000;
  color: #333333;
}

.login-pf-page .login-pf-social-section:last-of-type {
  border-left: none;
}

.mx-0{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#kc-form-login .form-forgot {
  text-align: center;
  font-size: 13px;
}

#kc-form-login .form-forgot span {
}

#kc-page-title{
  color: #335d6b;
  font-size: 22px;
  font-weight: 400;
  line-height: 27px;
  margin-top: 0;
  margin-bottom: 5px;
}

#kc-form-buttons.kbButtonRegister{
  padding-left: 0;
  padding-right: 0;
}

#kc-form-buttons.kbButtonLogin{
  margin-bottom: 10px;
}

#kc-register-form .form-group .btn-default.reviewBTN{
  margin-bottom: 15px !important;
}

#kc-back-to-login{
  font-size: 14px;
  padding-top: 15px;
  color: #335D6B;
}

#kc-registration {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  font-size: 14px;
  color: #335D6B;
  border-top: 1px solid #e1e2e4;
  margin-top: 15px;
}

.btn-outlined{
  width: 100%;
  cursor: pointer;
}

#kc-registration .btn-outlined a{
  text-decoration: none;
  width: 100%;
  height: 50px;
  background: #f5f5f5;
  color: #335d6b !important;
  border: 1px solid #335d6b;
  border-radius: 8px !important;
  font-weight: normal;
  font-size: 16px !important;
  text-shadow: none;
  white-space: normal;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

#kc-registration .btn-outlined {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

#kc-form button#go-to-login:hover{
  /*background: #f5f5f5 !important;*/
  opacity: .9;
  box-shadow: 0 8px 23px -18px rgba(0, 0, 0, 0.75) !important;
}

#kc-back-to-login, #termsAndCondition{
  text-align: center;
}

#termsAndCondition p{
  color: #335d6b;
  font-size: 12px;
}

#termsAndCondition{
  margin-top: 20px;
}

#termsAndCondition p a{
  margin-left: 0 !important;
}

.card-pf.login-pf-accounts #kc-info-wrapper,
#kc-info-register #kc-info-wrapper,
.kcInfoAreaWrapperClass #kc-info-wrapper{
  border-top: 1px solid #e1e2e4;
}

#kc-info.login-pf-signup{
  margin: 20px 0 10px !important;
}

.card-pf.login-pf-accounts #kc-page-title{
  margin-bottom: 0;
}

.relative{
  position: relative;
}

span.field-icon {
  position: absolute;
  cursor: pointer;
  right: 1.5rem;
  top: 50%;
  transform: translate(0, -50%);
  font-size: 17px;
  z-index: 2;
}

#kc-info-message p{
  display: flex;
  justify-content: center;
}

#kc-info-message p a{
  text-decoration: none;
  width: 70%;
  height: 50px;
  /*background: #c70139;*/
  /*color: white !important;*/
  /*border-color: transparent;*/
  /*border-radius: 8px !important;*/
  /*font-weight: normal;*/
  /*font-size: 16px !important;*/
  /*text-shadow: none;*/
  /*white-space: normal;*/
  display: flex !important;
  justify-content: center;
  align-items: center;
}
