* {
    font-family: "Lato", sans-serif;
    color: #34394E;
    box-sizing: border-box;
}

.login-pf {
    display: grid;
    overflow: auto;
    height: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background: #FFFFFF;
}

.login-pf body {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .login-pf,
    .login-pf body {
        background: #F5F5F8;
    }
}

@media (min-width: 1240px) {
    .login-pf body {
        flex-direction: row;
    }
}

/* Buttons */
#banner-link-btn,
.kc-social-item,
.pf-c-button.pf-m-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    outline: none;
    box-shadow: none;
    vertical-align: middle;
    background-color: #1D2030;
    padding: 12px 20px;
    border-radius: 20px;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 14px;
    height: 44px;
    border: none;
    margin-top: 16px;
    cursor: pointer;
    transition: .2s all;
}

a:focus-visible,
#banner-link-btn:focus-visible,
.kc-social-item:focus-visible,
.pf-c-button:focus-visible {
    outline: 2px solid #4F3BE9;
    outline-offset: 2px;
    transition: none;
    border-radius: 4px;
    border-radius: 20px;
}

#banner-link-btn:disabled,
.kc-social-item:disabled,
.pf-m-primary:disabled {
    opacity: .5;
    pointer-events: none;
}

.pf-m-primary:hover {
    background-color: #3b3f55;
}

.kc-social-item {
    justify-content: flex-start;
    background-color: #FFFFFF;
    color: #34394E;
    border: 1px solid #E1E2E9 !important;
    height: 62px !important;
    border-radius: 8px;
    margin: 0 0 16px 0;
}

.kc-social-item:before {
    display: inline-block;
    content: url('../img/login.svg');
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.kc-social-item:after {
    display: none;
}

.kc-social-item .kc-social-provider-name {
    color: #34394E !important;
    top: 0;
}

.kc-social-item:hover {
    border-color: #ADB2CB !important;
}

#banner-link-btn {
    background-color: #FFFFFF;
    color: #34394E;
}

#banner-link-btn:focus,
#banner-link-btn:hover {
    background-color: #ECEDF2;
    text-decoration: none;
    color: #34394E !important;
}

/* Label and inputs */

.pf-c-form__label {
    font-size: 14px;
    margin-bottom: 4px;
}

.pf-c-form-control {
    outline: none;
    box-shadow: none;
    height: 42px !important;
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 12px !important;
    border: 1px solid #949494;
    font-size: 14px;
    color: #34394E;
    transition: .2s all;
}

.pf-c-form-control[aria-invalid=true] {
    border-width: 1px;
}

.pf-c-form-control:hover {
    border-color: #34394E;
}

.pf-c-form-control:focus,
.pf-c-form-control:active {
    background-color: #FFFFFF;
    border: 1px solid #4F3BE9;
    box-shadow: 0 0 0 1px #4F3BE9;
}

.pf-c-form-control:autofill {
    background-color: #FFFFFF;
}

.pf-c-input-group {
    position: relative;
}

.pf-c-input-group .pf-c-button {
    border-radius: 4px;
    border: 1px solid #949494;
}

.pf-c-button.pf-m-control:after {
    border: none;
}

#password {
    z-index: 1;
    padding-right: 50px !important;
}

.pf-c-input-group #password + .pf-c-button {
    position: absolute;
    top: 3px;
    right: 3px;
    border: none;
    border-radius: 8px;
    border-left: none;
    z-index: 2;
}

.pf-c-input-group #password + .pf-c-button:hover {
    background-color: #ECEDF2;
}

/* Banner */

#banner-wrapper {
    position: relative;
    display: none;
    align-items: center;
    flex-direction: column;
    padding: 20px 28px;
    width: 100%;
    max-width: 840px;
    background-color: transparent;
    order: 2;
}

.link-logo {
    display: inline-block;
    position: relative;
    width: 90px;
    transition: .2s all;
    cursor: pointer;
}

.link-logo:hover {
    opacity: 1;
}

.banner-content {
    display: none;
    position: relative;
    margin-top: auto;
    margin-bottom: 12%;
}

.banner-content h1 {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.25;
    color: #FFFFFF;
    margin: 20px 0;
}

.banner-content p {
    font-size: 16px;
    color: #FFFFFF;
    opacity: 0.95;
    line-height: 1.6;
}

.social-media-block {
    display: none;
    align-items: center;
    position: relative;
    height: 48px;
    margin-top: auto;
    padding: 8px 0 0 0;
}

.social-media-link {
    display: flex;
    align-items: center;
    opacity: .45;
    transition: .2s all;
    margin: 0 4px;
    font-size: 14px;
}

.social-media-link svg {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.social-media-link svg path {
    fill: #FFFFFF;
}

.social-media-block a span {
    color: #FFFFFF;
    margin-top: 2px;
}

.social-media-block a span:hover {
    color: #FFFFFF;
    margin-top: 2px;
    text-decoration: underline;
}

.social-media-link:hover {
    color: #FFFFFF;
    opacity: 1;
    text-decoration: none;
}



@media (min-width: 1240px) {
    #banner-wrapper {
        display: flex;
        order: initial;
        align-items: flex-start;
        padding: 40px;
        height: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        animation: show .4s forwards;
        border-radius: 0 40px 40px 0;
    }

    #banner-wrapper:before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        border-radius: 0 40px 40px 0;
        background: linear-gradient(0deg, rgb(9 11 18 / 60%) 0%, rgb(24 26 39 / 0%) 90%);
    }

    .banner-img {
        background-image: url('../img/banner-img.jpg');
    }
 
    .link-logo {
        width: 120px;
        align-self: flex-start;
    }

    .banner-content {
        display: block !important;
    }

    .social-media-block {
        display: flex;
        margin-top: initial;
    }

    .social-media-link {
        margin: 0 12px 0 0;
    }

    .social-media-link svg {
        width: 30px;
        height: 30px;
    }
}

/* Login section */

.login-pf-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Page header */

#kc-header-wrapper {
    font-size: 16px;
    letter-spacing: initial;
    line-height: 1.2em;
    white-space: normal;
    color: #757575;
    text-transform: none;
    text-align: left;
    font-weight: normal;
    padding: 0;
}

div.kc-logo-text {
    background-image: none;
    height: auto;
    margin: 0;
}

div.kc-logo-text span {
    display: none;
}

#kc-header {
    padding: 0;
    margin: 12px 0 0 0;
}

/* Card */

.card-pf {
    box-shadow: none;
    border: none;
    border-radius: 16px;
    background-color: #FFFFFF;
    padding: 0 32px 40px 32px !important;
    color: #34394E;
    width: 100%;
    margin: 0;
    animation: show .7s forwards;
}

@media (min-width: 768px) {
    .card-pf {
        padding: 20px 40px 30px 40px !important;
    }
}

/* Lang choice  */

#kc-locale {
    position: initial;
    min-width: 100px;
    padding: 0;
    align-self: flex-end;
}

#kc-locale-dropdown {
    position: relative;
    padding: 8px;
    border-radius: 20px;
    cursor: pointer;
    transition: .2s all;
}

#kc-locale-dropdown:hover {
    background-color: #ECEDF2;
}

#kc-locale-dropdown #kc-current-locale-link:hover {
    text-decoration: none;
}

#kc-locale-dropdown .pf-c-dropdown__menu .pf-c-dropdown__menu-item:hover {
    background-color: #ECEDF2;
}

#kc-current-locale-link::after {
    content: '\25BE' !important;
    margin-left: 8px !important;
}

#kc-locale .pf-c-dropdown__menu {
    top: 36px;
    overflow: auto;
    max-height: 300px;
    border-radius: 8px;
    transition: .2s all;
}

/* Login card header */

#kc-page-title {
    text-align: left;
    font-size: 24px;
    font-weight: bold;
    margin: 8px 0 0 0 !important;
}

/* Login card form */

#kc-content-wrapper {
    display: flex;
    flex-direction: column;
}

#kc-form {
    display: flex;
    flex-direction: column;
    order: 3;
}

#kc-social-providers {
    order: 1;
    display: flex;
    flex-direction: column;
}

#kc-social-providers hr {
    display: none;
}

#kc-social-providers h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    order: 2;
    font-size: 12px;
    font-weight: bold;
    margin: 20px 0;
    width: 100%;
    white-space: nowrap;
}

#kc-social-providers h2:after {
    content: '';
    display: block;
    height: 1px;
    background-color: #e2e2e2;
    margin-left: 12px;
    width: 100%;
}

#kc-social-providers h2:before {
    content: '';
    display: block;
    height: 1px;
    background-color: #e2e2e2;
    margin-right: 12px;
    width: 100%;
}

#kc-social-providers .kc-social-links {
    order: 1;
    margin-top: 12px;
}

/* Forgot password  */

.kc-reset-password-form {
    padding: 16px 0
}

.login-pf-settings {
    margin-top: -8px;
}

/* Button wrapper on form */

#kc-form-buttons {
    margin-top: 0;
    margin-bottom: 20px !important;
}

/* Forgot password page */

#kc-info {
    margin: 0;
    order: 5;
}

#kc-info-wrapper {
    font-size: 12px;
    padding: 16px 20px;
    margin-top: 8px;
}

@media (min-width: 768px) {
    #kc-info-wrapper {
        background-color: #e3dfff;
        margin: 0 -40px -40px -40px;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .login-pf-page {
        padding: 20px 0;
    }
}

/* New user block */

#kc-registration {
    display: flex;
    justify-content: center;
}

#kc-registration a {
    font-weight: bold;
    color: #1D2030;
    margin-left: 0;
}

/* Validation texts */

.required {
    color: #DA302A !important;
}

/* Text links */

#backToApplication {
    font-size: 14px;
}

.instruction a,
#backToApplication,
.form-group span a {
    color: #4F3BE9;
}

.instruction a,
.form-group span a:hover {
    color: #4F3BE9;
}

.login-pf-page .card-pf .instruction {
    color: #34394E;
    font-size: 14px;
}

/* Time out notification */

.alert-error {
    border: none;
    border-radius: 8px;
}

.pf-c-alert__icon {
    display: none;
}

/* Animations */

@keyframes show {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}
