
:root {
    --font-primary: 'Lexend Deca', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-bankid: 'Roboto', sans-serif;

    --font-size-base: 16px;
    --font-size-xl: 24px;

    --color-text-primary: #1E1E1E;
    --color-link-primary: #2FB6F9;
    --color-link-hover: #2FB6F9;
    --color-body-background-default: #F8FAFC;
    --color-border-default: #E2E8F0;
    --color-text-placeholder-default: #94A3B8;
    --color-button-background-primary: #00407F;
    --color-button-background-hover: #003367;

    --border-radius-default: 8px;
    --border-default: 1px solid var(--color-border-default);
}


html, body {
    height: 100%;
    min-height: 100vh;
    position: relative; /* Good practice if using absolute positioning on children */
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    background-repeat: no-repeat;
    background-position: right 0 top 1.25rem;
    background-color: var(--color-body-background-default);
    background-image: url('../images/geomatikk-g.svg');

}


a, a:visited {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: var(--color-link-primary);
    text-decoration: none;
}
a:hover {
    color: var(--color-link-hover);
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
}


.form-group {
    margin-bottom: 1rem;

    .form-label {
        color: var(--color-text-primary);
        font-family: var(--font-primary);
        font-size: var(--font-size-base);
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .form-control {
        display: flex;
        padding: 12px 16px;
        align-items: center;
        gap: 16px;
        align-self: stretch;

        border-radius: var(--border-radius-default);
        border: var(--border-default);
        background: #FFF;

        color: #535760;
        font-family: var(--font-primary);
        font-size: var(--font-size-base);
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

}

.desktop-row {
    height: auto;
    background: #004c97;
}

.desktop-header-row {
    height: 64px;
    background: white;
    padding: 0 24px;

    .geomatikk-logo {
        width: 134px;
        height: 21px;
        margin-top: auto;
        margin-bottom: auto;
    }

}

.full-width {
    width: 100%;
}

.centered-text {
    text-align: center;
}

.centered-div {
    margin: 0 auto;
}

.loginform {
    margin: 20px 0;
}

.app-body {
    background-image: url("../images/appbgwide.jpg");
    background-size: cover;
}

.app-body-content {
}

.head-col, .body-col {
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 50px;
    display: block;
    max-width: 500px;
}

.desktop-body-content h5.client-text {
    padding-bottom: 20px
}

.desktop-body-content div.panel-heading {
    height: 40px;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.desktop-body-content div.panel-heading h4 {
    margin-bottom: 0px;
    line-height: 1.5
}

.app-body-content div.panel-heading {
    display: none;
}

.app-body-content input.form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid white;
    border-radius: 0px;
}

.app-body-content input.form-control::placeholder {
    color: white;
}


.solid-blue-button {
    margin: 20px auto;
    display: flex;
    height: 42px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    background-color: var(--color-button-background-primary);
    border: solid 1px var(--color-button-background-primary);
    border-radius: var(--border-radius-default);
    color: white !important;
    overflow: hidden;

    &:hover {
        background-color: var(--color-button-background-hover);
    }

    &:active {
        background-color: var(--color-button-background-primary) !important;
        box-shadow: inset 0 0 0 2px var(--color-button-background-primary);,
        inset 0 0 0 4px #fff;
    }
}

.login-button {
    align-self: stretch;
    width: stretch;
}

.link-btn {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: var(--color-link-primary);
    text-decoration: none;

    &:hover {
        text-decoration: none;
        color: var(--color-link-hover);
    }
}


.register-button {
    display: inline-block;
    width: 250px
}

.login-button.no-margin, .register-button.no-margin {
    margin: 0;
    width: auto;
}

.bankID-button {
    font-size: 18px;
    font-family: var(--font-bankid);
    line-height: 24px;
    height: 48px;
    width: 450px;
    background-color: #39134C;
    border-color: #39134C;
    border-radius: 24px;
    border-style: solid;
    color: white;
    padding: 0 24px;
    margin-top: 20px;

    &:hover {
        background-color: #470D70;
        border-color: #39134C;
    }

    img {
        width: 30px;
        height: 30px;
        margin-right: 14px;
    }
}

.desktop-head img {
    width: 80%;
    margin: 0 auto;
    display: block;
}


.geomatikk-backgroundlogo {
    position: absolute;
    top: 5px;
    right: 0;
    color: #001637;
}


.app-head {

}

.app-head img {

    width: 100%;
}

.nav-back {
    background: rgba(255, 255, 255, 0.1);
}

.page-head img {
    margin: 5% 5% auto;
}

.redcolor {
    color: red;
}

.whitecolor {
    color: white;
}

.geocolor {
    color: #004c97;

}

div.full-width div.language-bar {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 15px

}

div.full-width div.language-bar button {
    font-size: 14px;
    text-align: center;
    padding-left: 5px;
    padding-right: 5px;
    display: inline-block
}

/*white color on app*/
div.app-body-content div.language-bar button {
    color: white

}

/*black color on desktop*/
div.desktop-body-content div.language-bar button {
    color: black

}

div.full-width div.language-bar button.active-lang,
div.desktop-body-content div.language-bar button:hover,
div.desktop-body-content div.full-width div.forgotten-bar button:hover {
    color: #004c97;
    font-weight: bold;
    cursor: pointer
}

div.full-width div.forgotten-bar {
    display: flex;
    justify-content: right;
    align-items: center

}

div.full-width div.forgotten-bar button {
    font-size: 12px;
    text-align: center;
    display: block;
}

/*white color on app*/
div.app-body-content div.full-width div.forgotten-bar button {
    color: white

}

/*black color on desktop*/
div.desktop-body-content div.full-width div.forgotten-bar button {
    color: black;
}

.desktop-body-content button.login-button, .desktop-body-content a.register-button, .desktop-body-content .twofa-button-container button, .desktop-body-content .twofa-button-container a {
    color: #004c97;
    border-color: #004c97
}

.twofa-button-container {
    display: flex;
    justify-content: center;
    align-items: center
}

.twofa-button-container button, .twofa-button-container a {
    display: block;
    margin: 10px 5px 0 0;
    width: 150px
}

.twofa-cancel {
    margin: 0 auto;
    display: block;
    color: red;
    width: 80px;
}

.changed-back {
    margin: 0 auto;
    display: block;
    color: #004c97;
    width: 80px
}

.padding {
    padding: 10px;
}

.nav-pills a {
    color: #004c97;
}

.nav-pills .nav-link.active {
    background-color: #004c97;
}

@media only screen and (max-width: 400px) {
    .desktop-body-content div.panel-heading {
        background: #004c97;
        height: max-content;
        padding: 2px;
    }
}

.field-validation-error {
    white-space: pre-line;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.separator:not(:empty)::before {
    margin-right: .5em;
}

.separator:not(:empty)::after {
    margin-left: .5em;
}

.separator span {
    padding: 0 0.5em;
    background-color: transparent;
}
