/* ==========================================================================
   ETF UNSA Keycloak Login Theme CSS
   Autor: Ernedin Zajko <ezajko@root.ba>
   ========================================================================== */

.login-pf body {
    background: url("../img/sso-keycloak-back.png") no-repeat center center fixed;
    background-size: cover;
    height: 100%;
}

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

#kc-locale {
    position: relative;
    text-align: right;
    width: 100%;
}

#kc-locale-wrapper {
    position: relative;
    display: inline-block;
}

#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;
    z-index: 100;
}

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

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

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {
    background-image: url(../img/sso-keycloak-500.png);
    background-repeat: no-repeat;
    background-position: center;
    height: 89px;
    width: 500px;
    margin: 62px auto 0;
}

div.kc-logo-text {
    background-image: url(../img/sso-keycloak-500.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    resize: both;
    height: 89px;
    width: 500px;
    margin: 0 auto;
}

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

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

#kc-header-wrapper {
    background-image: url(../img/sso-keycloak-500.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    resize: both;
    height: 89px;
    width: 500px;
    margin: 0 auto;
}

#kc-content {
    width: 100%;
}

#kc-page-title {
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    color: #1e3a8a;
    margin-top: 15px;
    margin-bottom: 20px;
    line-height: 1.4;
}

#kc-attempted-username {
    font-size: 20px;
    font-family: inherit;
    font-weight: normal;
    padding-right: 10px;
}

#kc-username {
    text-align: center;
}

#kc-webauthn-settings-form {
    padding-top: 8px;
}

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

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

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

.card-pf {
    background: #fff;
    margin: 0 auto;
    padding: 20px 25px;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #1e3a8a;
}

.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;
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    font-weight: 600;
}

.login-pf-page .btn-primary:hover,
.login-pf-page .btn-primary:focus {
    background-color: #172554;
    border-color: #172554;
}

.login-pf-page .card-pf {
    margin-bottom: 10px;
}

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

.etf-reset-link {
    display: inline-block;
    color: #1e3a8a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s ease-in-out;
}

.etf-reset-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

@media (max-width: 500px) { 
    #kc-header-wrapper {
        background-image: url(../img/sso-keycloak-120.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        resize: both;
        height: 172px;
        width: 120px;
        margin: 0 auto;
    }
    #kc-logo-wrapper {
        background: none;
        margin: 62px auto 0;
    }
    div.kc-logo-text {
        background-image: url(../img/sso-keycloak-120.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        resize: both;
        height: 172px;
        width: 120px;
        margin: 0 auto;
    }
    .card-pf {
        margin: 0 15px;
    }
}
