/* This file was adapted by XiTrust - Changes are CSS variables and at the Bottom of this File */
/* Change Variables below */

@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/PublicSans-VariableFont_wght.ttf');
}

:root {
    --main-color-light: #d0e096;
    --main-color: #97be0d;
    --main-color-dark: #668009;
    --error-color: #b95437;
    --text-color: #515151;
    --button-text-color: #fff;
    --background-image: url("../img/moxis-keycloak-login.png");
    --header-logo: url("../img/moxis-logo.svg");
    --font-family: "Public Sans";
}

body {
    font-family: var(--font-family), "Arial", sans-serif;
}

.login-pf {
    background-image: var(--background-image) !important;
    background-position: right;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    height: 100%;
    background-color: #ffffff;
}

.login-pf body {
    background-color: unset;
    background-image: none;

}

.alert-error {
    background-color: #ffffff;
    border-color: var(--error-color);
    color: #333333;
}

#kc-locale ul {
    display: none;
    position: absolute;
    background-color: #f5f5f5;
    list-style: none;
    right: 0;
    top: 20px;
    min-width: 100px;
    padding: 0;
    border: solid 1px #bbb;
}

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

.login-pf-page .form-control {
    border-radius: 3px;
    font-size: 1.2em;
}

a#kc-current-locale-link {
    display: block;
    padding: 0 5px;
    color: var(--text-color);
    text-decoration: none;
}

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

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

.login-pf a:hover {
    color: var(--main-color);
}

#kc-logo {
    width: 100%;
}

#kc-moxis-logo{
    content: var(--header-logo);
    max-height: 75px;
    max-width: 550px;
}

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

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

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

#kc-header {
    color: var(--main-color);
    overflow: visible;
    white-space: nowrap;
}

a{
    color: var(--main-color);
}

#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-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: var(--text-color);
}

#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: var(--button-text-color);
    color: var(--error-color);
    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-color: red;
    border-color: #000;
    border-radius: 2px;
    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) {
    #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 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: 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: 0;
        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;
    }

}

@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 {
    background: none;
    background-color: var(--main-color) !important;
    float: right;
    margin-left: 10px;
}

#kc-form-buttons {
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    line-height: 20px;
    width: 100%;
    display: inline-block;
}

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

.card-pf {
    background: whitesmoke;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 650px;
    border-top: 0;
    box-shadow: 0 0 0;
    border-radius: 8px;
}

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

@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-page-accounts {
    margin-left: auto;
    margin-right: auto;
}

.login-pf-page .btn-primary {
    background-color: var(--main-color) !important;
    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: 0;
}

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

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

.btn-primary {
    background-color: var(--main-color) !important;
    background-image: linear-gradient(to bottom,var(--main-color) 0,var(--main-color) 100%) !important;
    background-repeat: repeat-x !important;
    border-color: var(--main-color) !important;

}

/* -------------------------------------------------------------- XITRUST LOGIN-PAGE CHANGES -------------------------------------------------------------- */

/*  styled login wrapper -------------------------------------------------------------- */

#kc-content-wrapper .row {
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* override spacing on large screens from patternfly.css -------------------------------------------------------------- */

@media (min-width: 768px) {
    .login-pf-page .login-pf-social-section:last-of-type {
        padding-left: 0;
        border-left: 0;
    }
}

/* styled TOTP button -------------------------------------------------------------- */

#saveTOTPBtn:hover {
    background: var(--main-color-dark) !important;
}

/* styled login buttons -------------------------------------------------------------- */

#kc-login {
    border-radius: 3px;
    border: 1px solid var(--main-color);
    width: 30%;
    font-size: 1em;
    font-weight: normal;
    text-transform: none;
    background-image: linear-gradient(45deg, var(--main-color) 0%, var(--main-color-dark) 100%);
    transition: 0.5s;
    background-size: 200% auto;
    color: var(--button-text-color);
}

.login-pf-page .login-pf-social {
    margin: 4px 0 0 0 !important;
}

.login-pf-page .login-pf-social-section:first-of-type {
    padding:0;
    margin:0;
}

.login-pf-page .login-pf-social-link a {
    padding: 10px;
    background-image: linear-gradient(45deg, var(--main-color) 0%, var(--main-color-dark) 100%) !important;
    background-size: 200% auto;
    color: var(--button-text-color);
    border: 1px solid var(--main-color);
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    border-radius: 3px;
    font-size: 1.5em;
    touch-action: manipulation;
    transform: translateY(0);
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    will-change: transform;
    margin-top: 5px !important;

}

.login-pf-page .login-pf-social-link a:hover, #kc-login:hover {
    text-decoration: none;
    background-position: right center;
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
    color: var(--button-text-color) !important;
}

.login-pf-page .login-pf-social-link a:active, #kc-login:active {
    box-shadow: none;
    transform: translateY(0);
}

/* styled bookmark info -------------------------------------------------------------- */

.xi-bookmark-info {
    text-align: center;
    width: 100%;
}

.xi-moxis-link {
    color: var(--main-color) !important;
}

/* styled title and label -------------------------------------------------------------- */

.form-login-header {
    font-weight: 600;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 20px;
}

.control-label {
    font-size: 1.2em;
}

/* styled divider between socials + moxis login -------------------------------------------------------------- */

.login-divider {
    margin: 25px 0;
    border: 1px solid #d1d1d1;
    width: 50%;
}

/* input styling -------------------------------------------------------------- */

input {
    padding: 5px;
    margin: 5px 0;
    outline: none;
}

input:focus, input:active {
    border-color: var(--main-color-dark) !important;
    box-shadow:  inset 0 0 1px var(--main-color-dark),0 0 8px var(--main-color-dark) !important;
}

input:hover {
    border-color: var(--main-color-dark) !important;
}

/* styled locale dropdown -------------------------------------------------------------- */

.kc-dropdown ul {
    border-radius: 3px;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
}

.kc-dropdown-item {
    border-bottom: 1px solid #bbb;
}

.kc-dropdown-item:last-child {
    border: none;
}

.kc-dropdown ul .kc-dropdown-item a {
    display: block;
    padding: 5px 14px;
    color: var(--text-color) !important;
    text-decoration: none;
    line-height: 20px;
}

.kc-dropdown ul .kc-dropdown-item a:hover {
    background-color: var(--main-color-light);
    text-decoration: none;
}
