/* ---------- Headlines and Buttons ---------- */
@font-face {
    font-display: swap;
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/source-sans-3-v15-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/source-sans-3-v15-latin-700.woff2') format('woff2');
}
/* ---------- Copytext ---------- */
@font-face {
    font-display: swap;
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/dm-sans-v14-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/dm-sans-v14-latin-700.woff2') format('woff2');
}
/* ---------- Icons ---------- */
@font-face {
    font-family: "FontAwesome";
    src: url('../../webfonts/fontawesome-webfont.eot#iefix');
    src: url('../../webfonts/fontawesome-webfont.eot#iefix') format('eot'), url('../../webfonts/fontawesome-webfont.woff') format('woff'), url('../../webfonts/fontawesome-webfont.ttf') format('truetype'), url('../../webfonts/fontawesome-webfont.svg#fontawesome-webfont') format('svg');
    font-weight: normal;
    font-style: normal;
}


:root {
    --border-radius: 6px;
    --body-bg-color: #201f25;
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--body-bg-color) !important;
    background-image: url('../../img/login-bg.webp');
    background-size: cover;
    font-family: 'DM Sans';
    font-weight: 400;
}

.center-container {
    width: 300px;
    /* height: 340px;*/
    text-align: center;
    position: fixed;
    left: calc(50vw - 150px);
    background: #2c2f35;
    top: calc(50vh - 170px);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    box-shadow: 2px 2px 40px rgba(0, 0, 0, 0.5);
    padding-bottom: 10px;
}

.logo-container {
    background: rgb(82, 86, 92);
    background: linear-gradient(90deg, rgba(82, 86, 92, 1) 0%, rgba(65, 69, 75, 1) 100%);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    height: 80px;
    width: 100%;
    margin: 0 0 10px 0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.logo {
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    padding-left: 45px;
    letter-spacing: 2px;
    font-family: 'Source Sans 3';
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
}

    .logo:before {
        position: absolute;
        left: 0;
        top: 30px;
        content: '';
        width: 42px;
        height: 42px;
        background-image: url('../../img/logo_wex-white.svg');
        background-repeat: no-repeat;
    }

form {
    width: calc(100% - 40px);
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

input {
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background-color: #22252a;
    color: #8da6e2;
    width: 100%;
    padding: 12.5px 10px;
    margin: 3px 0;
}

    input:focus {
        outline: 1px solid #8da6e2;
    }

    input:auto-fill {
        outline: 5px solid rgb(0 0 0 / .5);
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus {
        -webkit-text-fill-color: #8da6e2;
        -webkit-box-shadow: 0 0 0px 40rem #22252a inset;
    }

label {
    font-family: 'DM Sans';
    font-weight: 700;
    font-size: 12px;
    color: #dcdee0;
    text-transform: uppercase;
    margin-top: 10px;
    position: relative;
    padding-left: 25px;
}

button#b1 {
    align-self: center;
    margin-top: 20px;
}

button {
    font-family: 'Source Sans 3';
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    padding: 8.75px 20px;
    color: #201f25;
    background-color: #99b6df;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    align-items: center;
}

    button:focus, button:focus-visible, button:hover {
        background-color: #b2cff9;
        border: 0 none;
    }

.error-message {
    color: #d73b55;
    font-size: 15px;
    align-self: center;
    margin: 10px 0 0 0;
}

label[for=username]:before {
    position: absolute;
    left: 0;
    content: '';
    width: 22px;
    height: 22px;
    background-image: url(../../img/login-user.svg);
    background-repeat: no-repeat;
    margin-top: -5px;
    opacity: .5;
}

label[for=password]:before {
    position: absolute;
    left: 2px;
    content: '';
    width: 18px;
    height: 18px;
    background-image: url(../../img/login-lock.svg);
    background-repeat: no-repeat;
    margin-top: -5px;
    opacity: .5;
}
