@font-face {
    font-family: "Proxima Nova";
    font-weight: 400;
    src: url(https://static.empori.se/font/proxima-nova/Proxima-Nova-Regular.woff) format("woff"),
         url(https://static.empori.se/font/proxima-nova/Proxima-Nova-Regular.otf) format("opentype");
}

@font-face {
    font-family: "Proxima Nova";
    font-weight: 600;
    src: url(https://static.empori.se/font/proxima-nova/Proxima-Nova-Semibold.woff) format("woff"),
         url(https://static.empori.se/font/proxima-nova/Proxima-Nova-Semibold.otf) format("opentype");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Proxima Nova", sans-serif;
}

:root {
    --accent-color: #9dc237;
    --negative-color: #ffc2c2;
    --border-color: #ccc;
    --border-radius: 3px;
}

body {
    background: linear-gradient(135deg, rgb(228, 247, 255) 21.9%, rgb(255, 216, 194) 92.2%);
    height: 100vh;
    font-size: 16px;
}

h4 {
    text-align: center;
    margin-bottom: 20px;
}

main, .login-form {
    padding: 30px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 5px;
    width: 100%;
}

main {
    max-width: 600px;

    details {
        background-color: #f0f2ff;
        width: 100%;
        padding: 10px;
        margin: 20px 0;
        border-radius: var(--border-radius);

        summary {
            cursor: pointer;
        }

        &[open] {
            summary {
                margin-bottom: 10px;
            }
        }

        aside {
            display: grid;
            grid-template-columns: auto 1fr;
            column-gap: 20px;
            row-gap: 10px;

            p {
                display: contents;
            }
        }
    }
}

.login-form {
    max-width: 400px;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;

    label {
        width: 100%;
    }

    span {
        display: block;
    }

    input[type=text], input[type=password] {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
}

.form-check {

    label {
        display: flex;
        cursor: pointer;
    }

    span {
        display: inline-block;
    }

    input[type=checkbox] {
        width: 20px;
        height: 20px;
        accent-color: var(--accent-color);
        margin-right: 10px;
        cursor: pointer;
        border: 1px solid var(--border-color);
    }
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    border: 0;
    width: 100%;
    height: 40px;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: #000;
    text-decoration: none;
}

.login-button {
}

.logout-button {
    background-color: var(--negative-color);
}

.provider-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;

    &:before {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        content: ' ';
        display: block;
        border-top: 1px solid #ccc;
        z-index: 0;
    }

    span {
        background-color: #fff;
        padding: 0 10px;
        position: relative;
        text-transform: uppercase;
        z-index: 1;
    }
}

.providers {

    form {
        margin-bottom: 10px;

        &:last-child {
            margin-bottom: 0;
        }
    }
}

.provider {
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 10px;
    font-size: 1em;

    .provider-logo {
        display: inline-block;
        width: 20px;
        height: 20px;

        &.microsoftentraid {
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21'%3E%3Cpath fill='%23f25022' d='M1 1h9v9H1z'/%3E%3Cpath fill='%2300a4ef' d='M1 11h9v9H1z'/%3E%3Cpath fill='%237fba00' d='M11 1h9v9h-9z'/%3E%3Cpath fill='%23ffb900' d='M11 11h9v9h-9z'/%3E%3C/svg%3E");
        }

        &.google {
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cpath id='a' d='M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z'/%3E%3C/defs%3E%3CclipPath id='b'%3E%3Cuse xlink:href='%23a' overflow='visible'/%3E%3C/clipPath%3E%3Cpath clip-path='url(%23b)' fill='%23FBBC05' d='M0 37V11l17 13z'/%3E%3Cpath clip-path='url(%23b)' fill='%23EA4335' d='M0 11l17 13 7-6.1L48 14V0H0z'/%3E%3Cpath clip-path='url(%23b)' fill='%2334A853' d='M0 37l30-23 7.9 1L48 0v48H0z'/%3E%3Cpath clip-path='url(%23b)' fill='%234285F4' d='M48 48L17 24l-4-3 35-10z'/%3E%3C/svg%3E");
        }
    }
}

.provider-error, .validation-summary-errors ul {
    padding: 10px;
    background-color: #fff3f3;
    outline: 1px solid #ebc2c2;
    border-radius: var(--border-radius);
}

.provider-error {
    margin-top: 20px;
}

.validation-summary-errors ul {
    list-style: none;
    margin: 0;
}