* {
    box-sizing: border-box;
}

html {
    font-size: 10px;
    -webkit-tap-highlight-color: transparent;
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.66666667;
    color: #363636;
    margin: 0;
}

ol, ul {
    margin-top: 0;
    margin-bottom: 10px;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 400;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button, input, optgroup, select, textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}
input[type=button].btn-block, input[type=reset].btn-block, input[type=submit].btn-block {
    width: 100%;
}

button, html input[type=button], input[type=reset], input[type=submit] {
    -webkit-appearance: button;
    cursor: pointer;
}

:after, :before {
    box-sizing: border-box;
}

.form-control {
    display: block;
    width: 100%;
    height: 36px;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.66666667;
    color: #363636;
    background-color: #fff;
    background-image: none;
    border: 1px solid #bbb;
    border-radius: 1px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

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

.login-pf body {
/*    background: url("../img/dhc-bg.jpg") no-repeat center center fixed; 
    background-size: cover;
*/
    background: #00292E;
    height: 100%;
}
.login-pf {
    height: 100%;
    background: #030303 url(../img/bg-login.jpg) repeat-x 50% 0;
    background-size: auto;
}

.login-pf a {
    color: #EB5757;
    text-decoration: none;
}

.login-pf-page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #00292E;
    padding-top: 0;
}
.login-pf-page .form-control {
    height: 36px;
}

.login-pf-page .login-pf-settings {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.login-pf-page .login-pf-header h1 {
    display: none;
}

.login-pf-page .card-pf {
 /**   margin: auto; **/
    padding: 0;
    border-radius: 0 0 4px 4px;
    width: 400px;
    /** box-shadow: 0px 10px 10px #fafafa; **/
}

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

p.instruction {
    color: #FFFFFF;
}

#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;
    max-height: 300px;
    overflow-y: scroll;
}

#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:hover {
 *     background-color: rgba(0,0,0,0.2);
 *     } */

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

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

.login-pf a:hover {
    color: #530202;
}

.login-pf-page .form-control {
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #000;
}

.btn {
    box-shadow: 0 2px 3px rgba(3, 3, 3, .1);
}
.btn-block {
    display: block;
    width: 100%;
}
.btn-group-lg>.btn, .btn-lg {
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.3333333;
    border-radius: 1px;
}
.btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.66666667;
    border-radius: 1px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-primary{
    background-color: #EB5757;
    background-image: linear-gradient(to bottom,#EB5757 0,#EB5757 100%);
    border-color: #df2a2a;
    font-weight: 400;
    text-transform: uppercase;
    padding: 9px;
    border-radius: 3px;
    margin-bottom: 10px;
    color: #fff;
}

.btn-primary:hover{
    background-color: #f8c3c3;
    background-image: none;
    border-color: #df2a2a;
    color: #EB5757;
}

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {
    background-image: url(../img/sabidu_logo.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 400px;
    margin: 62px auto 0;
}

div.kc-logo-text {
    background-image: url(../img/SJ_LogoSchriftzug_farbig-transp.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 250px auto;
    height: 93px;
    width: 400px;
    margin-bottom: 0;
    background-color: #FFF;
    border-radius: 4px 4px 0 0;
    border: 1px solid #eee;
    border-bottom: 0;
}

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

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

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    /** padding: 22px 10px 10px; **/
    white-space: normal;
    /** background-color: #fff; 
    margin-top: 10px;
    **/
}

#kc-content {
    width: 100%;
    padding: 0 20px;
    border: 1px solid #eee;
    border-top: 0;
    border-radius: 0 0 4px 4px;
}

#kc-info-wrapper {
    font-size: 13px;
}

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

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

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

#kc-registration {
    margin-bottom: 15px;
}

/* 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: block;
}

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

.zocial,
a.zocial  {
    width: 100%;
    font-weight: normal;
    font-size: 14px;
    text-shadow: none;
    border: 0;
    background: #f5f5f5;
    color: #72767b;
    border-radius: 0;
    white-space: normal;
}
.zocial:before {
  border-right: 0;
  margin-right: 0;
}
.zocial span:before {
    padding: 7px 10px;
    font-size: 14px;
}
.zocial:hover {
    background: #ededed !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; }


@media (min-width: 768px) {

    .login-pf-page .login-pf-header {
        border-radius: 4px 4px 0 0;
        border: 1px solid #eee;
        border-top: 0;
        border-bottom: 0;
        margin-bottom: 0;
    }

    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }

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

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

@media (max-width: 767px) {

    .login-pf-page {
        padding-top: 0;
        min-height: 100%;
        background: #FFF;
/**        display: block; **/

    }

    .login-pf-page .login-pf-header{
        display: none;
    }

    .login-pf body {
      background: white;
    }

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

    #kc-content{
        padding-top: 10px;
        border: none
    }

    #kc-header-wrapper {
      font-size: 16px;
      font-weight: bold;
      padding: 20px 60px 0 0;
      color: #72767b;
      letter-spacing: 0;
    }

    div.kc-logo-text {
        margin: 10px auto;
        width: 100%;
        height: 62px;
        background-size: 90%;
        display: none;
    }

    #kc-form {
        float: none;
    }
    
    #kc-info-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 15px;
        padding-top: 15px;
        padding-left: 0px;
        padding-right: 15px;
    }

    #kc-social-providers li {
        display: block;
        margin-right: 5px;
    }

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

    #kc-locale {
        /* position: absolute; */
        /* width: 200px; */
        /* top: 20px; */
        z-index: 9999;
        display: inline;
        text-align: right;
        padding-top: 20px;
    }

    #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;
}

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

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

.card-pf {
  background: #FFF;
  color: #444444;
/**  background: #fff; **/
  margin: 0 auto;
/**  padding: 0 20px; **/
  max-width: 400px;
  border-top: 0;
  box-shadow: 0 0 0;
}

/*tablet*/
@media (max-width: 840px) {
    .login-pf-page .card-pf{
      max-width: none;
      margin-left: 20px;
      margin-right: 20px;
      padding: 20px 20px 30px 20px;
      width: 100%;
    }
    #kc-info {
      margin-bottom: 0;
    }
    .btn-primary {
      background-color: #EB5757;
      background-image: linear-gradient(to bottom,#EB5757 0,#EB5757 100%);
      border-color: #df2a2a;
      padding: 11px;
      color: #fff;
    }
    label {
      font-size: 1.4em;
      font-weight: 400;
    }
    .login-pf-page .login-pf-signup a {
      display: block;
      margin-left: 10px;
      color: #FFF;
      background: #EB5757;
      font-size: 1.1em;
      padding: 8px;
      margin-top: 10px;
      border-radius: 3px;
      text-transform: uppercase;
    }
    #kc-registration {
      font-size: 1.1em;
    }
    .login-pf a {
      font-size: 1.2em;
    }
    .login-pf-page .form-control {
      font-size: 1.3em;
    }
}
@media (max-width: 767px) {
    .login-pf-page .card-pf{
      max-width: none;
      margin-left: 0;
      margin-right: 0;
      padding-top: 0;
    }
    .card-pf.login-pf-accounts{
      max-width: none;
    }
}

.login-pf-page .login-pf-signup {
    margin: 40px 0 0;
    font-size: 15px;
    text-align: center;
}
#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 #d1d1d1;
    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: 25px;
}
.login-pf-page .login-pf-social-link a {
  padding: 2px 0;
}

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

.login-pf-page .btn-primary {
    margin-top: 0;
}

#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;
}

div.social-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

div.social-container > ul.login-pf-social > a {
    margin-top: 8px;
    border: 1px solid #EB5757;
    border-radius: 4px;
    padding: 8px 24px;
    color: #EB5757;
    display: flex;
    order: 2;
}
.fa {
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
ul.login-pf-social > a > i.fa {
    font-size: 1.2em;
    line-height: 1.2em;
    margin-right: 8px;
}
.fa-google:before {
    content: "\f1a0";
}

.fa-apple:before {
    content: "\f179";
}

.fa-facebook-f:before, .fa-facebook:before {
    content: "\f09a";
}