@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,100,0,0&icon_names=face,fiber_pin,lock,visibility');

* {
    box-sizing: border-box;
    outline: none;
}

#kc-page-title {
    margin: 0;
    padding: 0;
    padding-bottom: 5px;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}

#kc-current-locale-link {
    display: none;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

#kc-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;

    #kc-info {
        order: 1;
    }

    form {
        order: 2;
    }
}

#kc-passwd-update-form #kc-form-options {
    margin-bottom: 20px;
}

.subtitle {
    display: none;
}

.error {
    color: #d0021b;
    font-size: small;
    display: block;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background: #eaeaea;
    color: #364862;
    font-size: 15px;
}

.header {
    /* background-image: url('logo.png'); -- Via script.js */
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    height: 38px;
    width: 100%;
    flex: 0 0 auto;
}

.header #kc-header-wrapper {
    display: none;
}

.card {
    width: 400px;
    border-radius: 10px;
    box-shadow: 5px 5px 25px 0 rgb(46 61 73 /2%);
    background-color: #fff;
    padding: 20px 30px;
    display: flex;
    flex-flow: column nowrap;
    gap: 20px;
    max-width: 90vw;

    &:has(#kc-totp-settings) {
        width: 800px;
    }
}


.login {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.input {
    border-radius: 6px;
    border: 1px solid #738091;
    background-color: #fff;
    color: #364862;
    font-weight: 500;
    padding: 10px;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
    font-size: 15px;
    margin: 0;
    outline: none;
    height: 50px;
    width: 100%;
    transition: background .2s ease-out, border .2s ease-out, color .2s ease-out;
}

.input:hover {
    border-color: #0f10ba;
}

.input:active, .input:focus {
    background-color: #e5f2fa;
    color: #0f10ba;
}

.input::placeholder {
    color: #738091;
    font-weight: 400;
}

label[for=username], label[for=password], label[for=otp], .label {
    display: none;
}

input#username, input#password, input#password-confirm, input#password-new, input#otp {
    position: relative;
    padding-left: 55px;
}

.group:has(input)::before {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 30px;
    line-height: 1;
    color: #738091;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    z-index: 1;
    width: 32px;
    height: 32px;
    left: 12px;
    top: 10px;
}

.group:has(#username)::before {
    position: absolute;
    content: "face";
}

.group:has(#password)::before, .group:has(#password-new)::before, .group:has(#password-confirm)::before {
    position: absolute;
    content: "lock";
}

.group:has(#otp)::before {
    position: absolute;
    content: "fiber_pin";
}

.show-password {
    position: absolute;
    width: 32px;
    height: 32px;
    right: 15px;
    top: 8px;
    border: none;
    background: transparent;
    color: #364862;
}

.show-password i::before {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 30px;
    content: "visibility";
}

.button {
    line-height: 38px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #0f10ba;
    border-radius: 6px;
    color: #0f10ba;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    outline: none;
    padding: 0 20px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    transition: background .2s ease-out, border .2s ease-out, color .2s ease-out, transform .2s ease-out;

    &:active {
        transform: scale(.97);
    }

    &:hover, &:active {
        background-color: #edf0f3;
    }

    &.primary {
        background-color: #0f10ba;
        color: #fff;

        &:hover, &:active {
            background-color: #4f50de;
            border-color: #4f50de;
        }
    }
}

.locales {
    flex: 1 1 auto;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0 0 20px;
    justify-content: center;
    align-items: center;

    & li {
        list-style: none;
        width: 20px;
        text-overflow: clip;
        overflow: hidden;
    }

    a {
        outline: none;
        color: #738091;
        text-decoration: none;
        text-transform: uppercase;
        font-size: 13px;
    }
}

.footer-links {
    a {
        font-size: 16px;
        color: #364862;
        text-decoration: none;
        outline: none;

        &:visited {
            color: #364862;
        }

        &:hover, &:active {
            color: #4f50de;
        }
    }
}


ins {
    position: relative;
    background: #fff;
    height: 20px;
    width: 20px;
    left: 0;
    top: 3px;
    border: 1px solid #4956d1;
    cursor: pointer;
    display: inline-block;
    transition: background .2s ease-out, border .2s ease-out, color .2s ease-out;
    border-radius: 2px;
}

label.check span {
    margin-left: 5px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
}

label.check input:checked + ins {
    border-color: #4956d1;
    background-color: #4956d1;
}

label.check input:checked + ins:before {
    background-clip: padding-box;
    border-color: #fff;
    border-style: solid;
    border-width: 0 2px 2px 0;
    content: "";
    height: 9px;
    left: 50%;
    margin-left: -3px;
    margin-top: -6px;
    position: absolute;
    top: 50%;
    transform: rotate(45deg) scale(0.8);
    width: 5px;
}

label.check input, label.radio input {
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

[type=checkbox], [type=radio] {
    box-sizing: border-box;
    padding: 0;
}

.alert-error, #kc-error-message {
    color: #d0021b;
    font-size: 15px;
    display: block;
}

.alert-success {
    text-align: center;
    font-size: 15px;
    display: block;
    color: green;
}

.alert-warning {
    text-align: center;
    font-size: 15px;
    display: block;
    color: #ff7700;
}

.instruction {
    line-height: 1.35;
    font-size: 14px;
}

br + a {
    display: inline-block;
    margin-top: 15px;
}
