/** Font rules */

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Regular.woff2') format('woff2'),
        url('../fonts/Barlow-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-SemiBold.woff2') format('woff2'),
        url('../fonts/Barlow-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: 'Barlow', sans-serif;
}

/** Base styles */

h2 {
    color: var(--dpa-blue-primary);
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;

    @media (min-width: 1024px) {
        font-size: 21px;
    }
}

p, a {
    color: var(--text-color);
    font-size: 14px;

    @media (min-width: 1024px) {
        font-size: 17px;
    }
}

a {
    display: block;
}

/** Reset the default style of the submit input. This will allow us to easily apply button styles to elements later on. */
input[type="submit"] {
    background: none;
    border: none;
}

/** Page background  */

.login-pf, .login-pf body {
    background: none;
    background-color: var(--app-background-color);

    @media (min-width: 1024px) {
        margin-top: 44px;
    }
}

/** Component styles */

.separator {
    border-left: 0.5px solid var(--text-color);
}

input.kc-input {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 0.5px solid var(--text-color);
    height: 44px;
}

.kc-button {
    font-size: 14px;
    text-align: center;
    height: 44px;
    line-height: normal;
    display: flex;
    justify-content: center;
    align-items: center;

    &.kc-button--primary {
        color: white;
        background-color: var(--dpa-blue-primary);
        padding: 10px 30px;
        border-radius: 6px;
    }
}

a.kc-button {
    &:hover, 
    &:visited, 
    &:focus {
        text-decoration: none;
    }

    &.kc-button--primary:hover {
        color: white;
    }
}

header.kc-header-text {
    margin-bottom: 17px;
}

/** Styles for the authentication pages */

/** 1. App footer */

.kc-footer {
    margin-top: 35px;
}

#kc-footer-links {
    display: flex;
    flex-direction: column;
    row-gap: 7px;

    @media (min-width: 1024px) {
        flex-direction: row;
        justify-content: end;
        column-gap: 7px;;
    }
}

/** Login page specific styles */

.login-pf-page {
    padding: 0;
    height: 100%;

    .card-pf {
        border: none;
        padding: 48px 24px;
        width: 100%;
        height: 100%;
        margin: 0;

        .separator {
            display: none;
        }

        @media (max-width: 1024px) {
            max-width: 100%;
        }

        @media (min-width: 1024px) {
            display: flex;
            flex-direction: column;
            justify-content: center;
            border-radius: 9px;
            max-width: 1093px;
            margin: auto;
            padding: 45px 100px;
            height: 545px;
        }

        @media (min-width: 768px) {
            .separator {
                display: block;
            }

            .cols {
                display: flex;
                flex-direction: row;
                column-gap: 40px;
            }

            .cols .col {
                flex-grow: 2;
            }
        }
    }

    .kc-page-header {
        margin-bottom: 42px;
    }

    .login-pf-brand {
        display: flex;
        column-gap: 14px;
        margin-top: 0;
        width: 100%;
        align-items: center;

        .paula-logo > img {
            width: 74px;
            height: 24px;
        }

        .pts-logo > img {
            width: 164px;
            height: 14px;
        }

        @media (min-width: 768px) {
            .paula-logo > img {
                width: 138px;
                height: 45px;
            }

            .pts-logo > img {
                width: 294px;
                height: 26px;
            }
        }
    }

    .kc-cta-form__wrapper {
        margin-top: 35px;

        .kc-button {
            width: 340px;
        }
    }
    
    .form-group > .kc-input {
        width: 100%;
    }

    .kc-form-footer {
        display: flex;
        flex-direction: row-reverse;
        column-gap: 67px;
        width: 100%;
        justify-content: space-between;
        margin-top: 17px;

        .kc-reset-password-button {
            color: var(--dpa-blue-primary);
        }
    }
}

:root {
    --dpa-blue-primary: #004884;
    --text-color: #53515B;
    --app-background-color: #EBF4F4;
}
