@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Semibold.woff2') format('woff2');
    font-weight: 600;
}

body {
    font-family: "Calibri-Regular", "Helvetica Neue","Open Sans" ,sans-serif;
}

.diamos-header {
    padding: 60px 100px 45px 100px;
    height: 26%;
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
}
.diamos-header a.logo {
    position: absolute;
    bottom: 0;
    margin: auto;
}

.diamos-header .language-selection-container {
    position: absolute;
    top:40px;
    right: 40px;
    font-size: 20px;
}

.pull-right {
    float: right !important;
}

.pull-left {
    float: left !important;
}

.diamos-lang, .diamos-lang:hover {
    color: #999 !important;
}

.diamos-lang.selected{
    color: #565558;
    font-weight: 600;
}

.diamos-wrapper .line-light {
    height: 10px;
    background-color: #DDDDDE;
    width: 100%;
    display: inline-block;
}

.ai-wrapper {
    padding: 0 40px !important;
    margin-top: -10px;
    display: flex;
    justify-content: center;
}

.ai-container-wrapper {
    display: flex;
    align-items: flex-end;
}

.area-logo {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;
    cursor: default;
    background-color: black;
    margin-top: -10px;
    opacity: 0.8;
}

 #area-text {
    font-size: calc(12px + 13vw);
    line-height: 1.0;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
}

.area-details {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;
    cursor: default;
    font-family: "Open Sans",sans-serif !important;
    font-weight: 400 !important;
    color: #000000;
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 5px;
    margin-top:10px;

}
.area-details p {
    margin-bottom: 0;
}

.diamos-wrapper {
    height: 100%;
    width: 100%;
}

.flex-row {
    display: flex;
}
.form-control:hover, .form-control:focus {
    outline: none;
    outline-style:none;
    box-shadow:none;
}

.diamos-form-group {
    padding: 0.5em 0.5em;
    width: 500px;
    display: flex;
    justify-content: center;
}
.diamos-form-group-options {
    padding: 0;
}
.diamos-forgot-password {
    margin: 0;
}

.diamos-label {
    color: #999;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    top: 8px;
    left:4px;
    font-size: 14px;
    transition: 0.3s ease all;
    -moz-transition: 0.3s ease all;
    -webkit-transition: 0.3s ease all;
}

.diamos-input {
    height: 36px;

}

.diamos-input, .diamos-input:hover {
    padding-left: 10px;
    font-size: 18px;
    color: #565558;
    font-weight: initial !important;
    border-width: 0 0 1px 0 !important;
    padding: 2px 2px 1px 2px;
    border-color: #cccccc;
    border-style: solid;
    border-radius: 3px 0 0 0;
    background-color: #f2f2f2 !important;
    box-shadow: none ;
}

.diamos-input:focus ~ .diamos-label, .diamos-state-filled ~ .diamos-label,
.always-on-top ~ .diamos-label, select[multiple] ~ .diamos-label, input[type="date"] ~ .diamos-label  {
    position: absolute;
    top: -16px;
    font-weight: initial !important;
    font-size: 11px;
    color: black;
    box-shadow: none;
}

.diamos-input:focus {
    border-color: black;
}

.diamos-checkbox-label {
    vertical-align: middle;
}

#password:-webkit-autofill, #username:-webkit-autofill,#password:-webkit-autofill:focus, #username:-webkit-autofill:focus {
    -webkit-box-shadow:0 0 0 50px #f2f2f2 inset; /* Change the color to your own background color */
    -webkit-text-fill-color: #333;
}
.checkbox {
    padding-left:1em;
}

.btn-primary,.btn-primary:focus, .btn-primary:active, .btn-primary:focus:active, .btn-primary:hover {
    background-color: black;
    color: white;
    font-size: 14px;
    background-image: none !important;
    border: none;
    border-radius: 3px;
    height: 36px;
    width: 100%;
    box-shadow: 0 1px 2.5px 0 rgba(0,0,0,.26), 0 1px 5px 0 rgba(0,0,0,.16);
}

.btn-default,.btn-default:focus, .btn-default:active, .btn-default:focus:active, .btn-default:hover {
    background-color: #DDDDDE;
    color: black;
    font-size: 14px;
    background-image: none !important;
    border: none;
    border-radius: 3px;
    height: 36px;
    width: 100%;
    box-shadow: 0 1px 2.5px 0 rgba(0,0,0,.26), 0 1px 5px 0 rgba(0,0,0,.16);
    /* Secondary buttons are always right from the primary ones, so this should be ok*/
    margin-left: 12px;
}

#kc-form-buttons {
    display: flex;
}

.diamos-wrapper footer {
    background-color: #FFFFFF;
    height: 18%;
    width: 100%;
    display: block;
    position: static;
    bottom: 0;
    right: 0;
    padding-bottom: 120px;
}

/**
  * The patternfly lib sets the marging to 0 for the last element, that looks bad, so let's set it to 20
 */
.login-pf .container .form-horizontal .form-group:last-child, .login-pf .container .form-horizontal .form-group:last-child .help-block:last-child {
    margin-bottom: 20px;
}

.diamos-wrapper footer p {
    color: #999;
    font-weight: 500;
    font-size: 13px;
}

.diamos-wrapper footer a, .diamos-wrapper footer a:hover {
    color: #999;
}

.login {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.diamos-error {
    padding: 0 83px;
}

.clear {
    clear: both;
    height: 60px;
}
.input {
    padding: 0;
}
.submit {
    text-align: left !important;
    padding: 0;
}

.diamos-link {
    margin-left: 10px;
}

.diamos-link > span > a, .diamos-link > span > a:hover, .control-label {
    color: #999;
}

.info-wrapper {
    padding-left: 10px;
    padding-right: 0;
}

.login-pf body {
    background: #FFFFFF;
}
.login-pf {
    background: #FFFFFF;
}

#kc-error-message {
    color: #cc0000;
}

.alert-error {
    background-color: #ffffff;
    border:none;
    color: #cc0000;
    margin-bottom: 0;

}

.kc-feedback-text, #kc-info-message {
    color: #cc0000;
}

#kc-locale ul {
    display: none;
    position: absolute;
    background-color: #fff;
    list-style: none;
    right: 20px;
    width: 200px;
    padding: 2px;
}

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

#kc-locale ul li a {
    display: block;
    padding: 1px 11px;
    color: #000 !important;
    border: 1px solid #fff;
    text-decoration: none;
    display:block;
    line-height: 20px;
}

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

#kc-locale-dropdown a {
    color: #fff;
}

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

a#kc-current-locale-link {
    display: block;
    padding: 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;
    color: #000000;
}

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

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {
    background-image: url("../img/fnz.svg");
    background-size: contain;
    background-repeat: no-repeat;
    height: 76px;
    width: 200px;
}

div.kc-logo-text {

    height: 38px;
}

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

#kc-header {
    color: #fff;
    overflow: visible;
    padding-left: 80px;
    white-space: nowrap;
}

#kc-header-wrapper {
    font-size: 26px;
    text-transform: uppercase;
    line-height: 1.2em;
    margin-bottom: 15px;
}

#kc-content {
    position: relative;
    align-self: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

#kc-content-wrapper {
    overflow-y: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

#kc-info {


}


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

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

.form-horizontal {
    padding-top: 0.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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


/* TOTP */

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

ol#kc-totp-settings li {
    margin-top: 1em;
}

ol#kc-totp-settings li:first-of-type {
    margin-top: 0;
}

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

/* 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 30px;
}

#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;
    margin: 0;
}

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

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

.zocial {
    width: 150px;
}

.zocial:hover {
    color: #fff !important;
}

.zocial.facebook,
.zocial.github,
.zocial.google,
.zocial.microsoft,
.zocial.stackoverflow,
.zocial.linkedin,
.zocial.twitter {
    background-image: none;
    border-radius: 2px;

    font-family: "Open Sans", sans-serif;
    font-weight: normal;

    box-shadow: none;
    text-shadow: none;
}

.zocial.google {
    background-color: #dd4b39 !important;
}

.zocial.facebook:hover,
.zocial.github:hover,
.zocial.google:hover,
.zocial.microsoft:hover,
.zocial.stackoverflow:hover,
.zocial.linkedin:hover,
.zocial.twitter:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%) !important;
}

/* Copy of zocial windows classes to be used for microsoft's social provider button */
.zocial.microsoft {background-color: #0052a4; color: #fff;}
.zocial.microsoft:before { content: "\f15d"; }

@media (max-width: 992px) {
    .area-logo {
        margin: 0 auto;
    }


}

@media (min-width: 768px) {
    #kc-container-wrapper {
        position: relative;
        width: 100%;
    }
/*
    #kc-logo-wrapper {
        position: absolute;
        top: 50px;
        left: 50px;
    }*/

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

    #kc-locale {
        position: relative;
        width: 200px;
        left: -230px;
        text-align: right;
        z-index: 9999;
    }
}

@media (max-width: 767px) {


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

    #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: inline-block;
        margin-right: 5px;
    }

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

    #kc-locale {
        position: absolute;
        width: 200px;
        top: 10px;
        right: 0px;
        text-align: right;
        z-index: 9999;
    }

    .diamos-header {
        padding: 0 !important;
    }
    .area-details {
        padding: 0 !important;
        font-size: 20px;
        width: 100% !important;
    }
    .ai-wrapper{
        padding:0!important;
    }
    .diamos-wrapper footer p {
        font-size:10px;
    }

}
@media(max-width: 500px){
    .diamos-form-group {
        width: 400px;
    }
    .diamos-header .language-selection-container{
        top:10px;
        right: 10px;
    }

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

}
@media (max-height: 640px) {
    .diamos-wrapper footer {
        height: 10%;
        padding-bottom:5px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .diamos-header .language-selection-container{
        top:5px;
        right: 5px;
        font-size: 15px;
    }
}
@media (max-width: 340px){
    .area-details{
        font-size: 16px !important;
    }
}
@media (max-height: 500px) {
    .area-details {
        font-size: 16px !important;
        margin: 0 !important;
    }

    .form-horizontal {
        margin-top: 5px !important;
    }

    .diamos-form-group {
        padding: 0 !important;
    }

    #kc-logo-wrapper {
        height: 56px;

    }
}
@media (max-height: 570px) {
    .diamos-wrapper footer p {
        font-size:10px;
        padding: 0;
        margin-bottom: 0;
    }
}
@media(max-height: 400px) {
    .diamos-wrapper footer {
        justify-content: center;
        padding-top:15px;
    }
    .diamos-header a.logo {
        top:20px;
    }
}
#kc-social-providers li {
    display: flex;
}

.idp-section {
    h3 {
        margin-top: 0;
    }

    a {
        background-color: white;
        border: 2px solid black;
        border-radius: 3px;
        font-size: 14px;
        height: 36px;
        display: flex;
        color: black;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }

    a:hover {
        color: black;
        text-decoration: none;
    }
}
