:root {
    --ntn-blue: #61c2ef;
    --ntn-alternate-blue: #00668d;
    --ntn-darkgrey: #282828;
    --ntn-text-color: #4c4c4c;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
    background-color: #fff;
    color: var(--ntn-text-color);

    .kc-login {
        flex: 1 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;

        #footer-enlarger {
            height: 2.5rem;
        }
    }
}

#ntn-construction {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -7.5rem;
    > img {
        width: 7.5rem;

    }
}

#ntn-sub-header {
    height: 60px;
    border-bottom: 2px solid var(--ntn-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;

    .ntn-logo {
        height: 56px;
        margin-top: 7px;
    }

    .ntn-sub-header-language {
        width: 3.25rem;
        height: 1.5rem;
        padding: .5rem 0;
        text-align: center;
        position: relative;

        > img {
            height: 1.5rem;
        }

        &:hover {
            background-color: #f2fafe;
        }

        #kc-locale-dropdown {
            display: none;
            position: absolute;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            background-color: #fff;
            right: 0;

            ul {
                text-align: left;
                list-style: none;
                margin: .5rem 0;
                padding: 0;

                li {
                    white-space: nowrap;
                }
            }

            a {
                display: block;
                color: var(--ntn-text-color);
                text-decoration: none;
                text-align: left;
                padding: 0.5rem 1rem;
                font-size: smaller;

                &:hover {
                    background-color: #f2fafe;
                    text-decoration: underline;
                    color: var(--ntn-blue);
                }
            }
        }

        &:hover #kc-locale-dropdown {
            display: block;
        }
    }
}

.ntn-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: calc(100% - 2rem);
    height: 2.5rem;
    bottom: 0;
    padding: 0 1rem;
    background-color: var(--ntn-darkgrey);
    color: white;
    font-size: 1rem;

    .ntn-footer-right {
        display: flex;
        gap: 4rem;
    }

    a {
        color: white;
        text-decoration: none;
        transition: color 0.2s;

        &:hover {
            color: var(--ntn-blue);
            text-decoration: underline;
        }

    }
}
#kc-page-title {
    margin: 0;
}

#kc-content {
    width: 30rem;
}

.kc-container {
    margin-top: 2.5rem;
}

form {

    > div > div:has(label) {
        display: flex;
        align-items: baseline;
    }

    > div:has(input[type="text"]), > div:has(input[type="password"]), > div:has(input[type="email"]) {

        label {
            margin-top: 1.5rem;
            padding-bottom: .5rem;
            display: block;
        }

        input {
            display: block;
            width: calc(100% - 8px);
            height: 2rem;
        }

    }

    .input-error {
        color: red;
        font-size: smaller;
        font-weight: 300;
    }

    .kc-form-options-wrapper {
        text-align: right;

        a {
            color: unset;
            text-decoration: none;
            font-size: smaller;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    #kc-form-options {
        font-size: smaller;

        a {
            color: unset;
            text-decoration: none;
            font-size: smaller;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    #kc-form-buttons {
        text-align: center;
    }

    button[type="submit"], input[type="submit"] {
        background-color: var(--ntn-blue);
        color: #fff;
        border: none;
        padding: .5rem 1rem;
        border-radius: .5rem;
        font-size: 1rem;
        cursor: pointer;
        margin: .5rem 0;

        &:hover {
            background-color: var(--ntn-alternate-blue);
        }
    }


    .kc-register-form-pw-group {
        display: flex;
        gap: 1rem;

        input[type="password"] + button > img.hidePW {
            display: none;
        }

        input[type="text"] + button > img.showPW {
            display: none;
        }

        button {
            cursor: pointer;

            > img {
                height: 1.5rem;
                vertical-align: middle;
            }
        }
    }

}


#kc-social-providers {
    text-align: center;
    font-size: smaller;
    font-weight: 300;

    margin: 1rem 0;

    a {
        color: unset;
    }
}

#kc-help-container {
    text-align: center;

    #kc-help {

        display: flex;
        justify-content: space-around;
        align-items: center;

        .kc-help-question {
            border-radius: 100%;
            background: var(--ntn-alternate-blue);
            color: #fff;
            font-weight: bold;
            width: 1.5rem;
            height: 1.5rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        > a {
            font-size: smaller;
            font-weight: 500;
            color: unset;
            text-decoration: none;
            width: fit-content;

            &:hover {
                text-decoration: underline;
            }
        }
    }

}

#kc-registration-container {
    background-color: var(--ntn-alternate-blue);
    color: #fff;

    #kc-registration {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;

        > a {
            background-color: #fff;
            color: var(--ntn-blue);
            text-decoration: none;
            padding: .5rem 1rem;
            border-radius: .5rem;
            white-space: nowrap;

        }
    }
}
