
@font-face {
    font-family: 'KnockoutHTF51Middleweight';
    src: url('../fonts/KnockoutHTF51Middleweight.eot');
    src: url('../fonts/KnockoutHTF51Middleweight.eot') format('embedded-opentype'),
    url('../fonts/KnockoutHTF51Middleweight.woff2') format('woff2'),
    url('../fonts/KnockoutHTF51Middleweight.woff') format('woff'),
    url('../fonts/KnockoutHTF51Middleweight.ttf') format('truetype'),
    url('../fonts/KnockoutHTF51Middleweight.svg#KnockoutHTF51Middleweight') format('svg');
}
#mainBody {
    background: white;
    height: 100%;
    background-image: none;
}

.form-horizontal .control-label {
    text-align: left;
    padding-bottom: 10px;
}

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

.btn-default {
    background-image: none;
    background-color: #919191 !important;
    background-image: linear-gradient(to bottom,#d5d5d5 0,#d5d5d5 100%);
    transition: background-color .25s;
    transition-property: background-color;
    transition-duration: 0.25s;
    transition-timing-function: ease;
    transition-delay: 0s;
}

#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 {
    display: block;
    padding: 0 5px;
}

.select2-container {
    width: 100%;
}

/** Select2 

.select2-container {
    height: 50px;
    width: 100%;
    border: none !important;
    background: #e9e9e9;
    line-height: 50px;
    padding: 5px 15px;
    font-size: 16px;
    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;
}

.select2-choice {
    background: none !important;
    border: none !important;
    height: 100% !important;
    padding: 8px 0 0 8px !important;
}
**/


/* 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: #0099d3;
}

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {
    background-image: url(../img/keycloak-logo-2.png);
    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-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    padding: 62px 10px 20px;
    white-space: normal;
}

#kc-content {
    width: 100%;
}

/* #kc-content-wrapper {
    overflow-y: hidden;
} */

#kc-info {
    padding-bottom: 200px;
    margin-bottom: -200px;
}

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

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

#kc-form-buttons {
  margin: 0;
}

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

.input-error {
    color: rgb(192, 63, 63);
}

.card-pf {
  background: #fff;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 500px;
  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;
    }
}
@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 {
  font-size: 15px;
  color: #72767b;
}
#kc-content-wrapper .row {
  margin-left: 0;
  margin-right: 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;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    width: 50%;
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#btnResetPassword {
    margin: 10px auto;
}

#resetSent {
    display: none;
}


#mainBody {
    background-image: url('../img/pentagon-shape.png');
    background-repeat: no-repeat;
    background-position: top right;
}
.easl-container {
    color: #72767b;
    font-size: 16px;
}
.login-pf-page {
    margin: 0;
    padding: 0;
}
.easl-container {
    width: calc(100% - 50px);
    max-width: 1150px;
    margin: 0 auto;
}
.easl-container p {
    margin: 0 0 25px;
}
.easl-container p:last-child {
    margin-bottom: 0;
}
.easl-container ul {
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}
.easl-container ul li {
    position: relative;
    padding-left: 20px;
}
.easl-container ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    display: block;
    background: #004B87;
    border-radius: 50%;
}

.form-control-textarea {
    border: 0 none;
    background: #e9e9e9;
    line-height: 50px;
    padding: 5px 15px;
    font-size: 16px;
    width: 100%;
}

.easl-container p:last-child {
    margin-bottom: 0;
}
.easl-color-blue {
    color: #004B87;
}
.easl-btn {
    border: 0 none;
    background-color: #80C4E5;
    color: #fff;
    display: block;
    font-size: 16px;
    font-family: "KnockoutHTF51Middleweight", Helvetica;
    padding: 15px 45px 15px 20px;
    position: relative;
    width: 100%;
    text-align: left;
    text-decoration: none;
    transition: background-color .25s;
}
.easl-btn .fa {
    font-size: 2em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.easl-btn:hover,
.easl-btn:active {
    color: #fff;
    background-color: #004B87;
    text-decoration: none;
}
.easl-buttons-grid {
    display: flex;
    justify-content: space-between;
    max-width: 540px;
}
.easl-buttons-grid .easl-btn {
    width: calc( (100% - 30px)/2 );
}
.btn-primary {
    background-image: none !important;
}

/* Header */
.easl-login-page-header {
    margin-bottom: 55px;
}
.easl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 25px;
}
.easl-logo {
    width: 190px;
}
.easl-header-text a {
    color: #004B87;
    font-family: "KnockoutHTF51Middleweight", Helvetica;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4em;
    text-decoration: none;
    white-space: normal;
}
/*EASL cards*/
#easl-cards-section {
    padding-bottom: 50px;
}
.easl-cards {
    align-items: stretch;
    justify-content: space-between;
    display: flex;

}
.easl-card {
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 0px 20px 0 rgba(0,0,0,.2);
    margin: 30px;
    flex-grow: 1;
}
.easl-section-title {
    color: #004B87;
    font-family: "KnockoutHTF51Middleweight", Helvetica;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.4em;
    margin: 0 0 25px;
}
/*#easl-bottom*/
#easl-bottom {
    background-color: #f5f5f5;
    padding: 45px 0;
}
.easl-text-image-block {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.easl-tib-image {
    width: calc((100% - 30px) * 3 / 8);
    order: 2;
}
.easl-tib-image img {
    max-width: 100%;
    height: auto;
}
.easl-tib-text {
    width: calc((100% - 30px) * 5 / 8);
    order: 0;
}
/*EASL form*/
.screen-reader-text {
    display: none;
}
.easl-form-wrap ::placeholder {
  color: inherit;
  font-size: inherit;
  font-style: inherit;
}
.easl-form-wrap .form-control {
    border: 0 none;
    background: #e9e9e9;
    height: 50px;
    line-height: 50px;
    padding: 5px 15px;
    font-size: 16px;
}
.easl-form-wrap .easl-forgot-password {
    color: #004B87;
    font-family: "KnockoutHTF51Middleweight", Helvetica;
}
.easl-form-wrap  .form-row {
    margin-bottom: 50px;
}
div#resetPasswordForm {
    max-width: 540px;
}
@media (min-width: 1024px) {
    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }

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

    #kc-locale {
        position: relative;
        text-align: right;
        z-index: 9999;
    }
    .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;
    }
}




@media (max-width: 1023px) {

    .login-pf body {
      background: white;
    }

    #kc-header {
        padding: 0;
        float: none;
        text-align: left;
    }

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

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

    #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;
        right: 20px;
        text-align: right;
        z-index: 9999;
    }

    #kc-logo-wrapper {
        background-size: 100px 21px;
        height: 21px;
        width: 100px;
        margin: 20px 0 0 20px;
    }
    .easl-header-inner {
        display: block;
    }
    .easl-logo {
        margin: 0 auto 25px;
    }
    .easl-header-text {
        text-align: center;
    }
    .easl-header-text a {
        font-size: 24px;
    }
    .easl-cards {
        display: block;
    }
    .easl-card {
        width: 100%;
        margin: 0 0 35px 0;
    }
    .easl-text-image-block {
        display: block;
    }
    .easl-tib-image {
        margin-bottom: 30px;
        width: 100%;
    }
    .easl-tib-text {
        width: 100%;
    }
    .easl-buttons-grid {
        width: 100%;
    }
}
@media (max-width: 645px) {
    .easl-buttons-grid {
        display: block;
        width: 100%;
    }
    .easl-buttons-grid .easl-btn {
        width: 100%;
        margin-bottom: 15px;
    }
}

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

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