﻿.oauthProviderList {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: -4px -6px;
}
.oauthProviderList li {
    margin: 0;
    padding: 0;
    min-width: 50%;
    max-width: 50%;
}
.oauthProviderList.link > div {
    display: flex;
    width: 100%;
    align-items: center;
}
    .oauthProviderList.link > div > div:nth-child(1) {
        max-width: 60%;
        min-width: 60%;
    }
    .oauthProviderList.link > div > div:nth-child(2) {
        max-width: 40%;
        min-width: 40%;
    }
.oauthProviderList.link > div + div {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #c0c0c0;
}
.oauthProviderList.link > div > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.oauthProviderList.link > div > div:nth-child(2) {
    padding-left: 16px;
}
.oauthProviderList.link > div > div:nth-child(2) a {
    margin: 0;
    line-height: 100%;
    text-align: center;
}
.oauthProviderList a.provider {
    position: relative;
    margin: 4px 6px;
    display: block;
    border-radius: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    box-shadow: rgba(9, 30, 66, 0.25) 0 1px 1px, rgba(9, 30, 66, 0.13) 0 0 1px 1px;
    color: #fff;
    -webkit-user-select: none;
    font-weight: 500;
    font-size: 1rem;
    background: red;
    padding: 4px 0;
    padding-left: 8px;
    height: 34px;
}
.oauthProviderList a.provider:hover {
    text-decoration: none;
    box-shadow: rgba(0, 0, 0, 0.4) 0 2px 4px, rgba(0, 0, 0, 0.3) 0 7px 13px -3px, rgba(0, 0, 0, 0.2) 0 -3px 0 inset;
}
.oauthProviderList a.provider.logoOnly {
    padding-left: 0;
}
.oauthProviderList a.provider.logoOnly img {
    height: 60% !important;
    margin: 0 auto;
}
.oauthProviderList a.provider img {
    height: 100% !important;
    margin-right: 12px;
}
.oauthProviderList a.provider:hover img {
    animation: tada;
    animation-duration: 1s;
}
    

.oauthProviderList a.provider.google {
    background: #F1F3F4;
    color: #202124;
}
.oauthProviderList a.provider.discord {
    background: #7289da;
}
.oauthProviderList a.provider.discord img {
    filter: brightness(0) invert(1);
}

.oauthProviderList a.provider.steam {
    background: #171a21;
}
.oauthProviderList a.provider.steam img {
    filter: brightness(0) invert(1);
}
    .oauthProviderList a.provider.facebook {
        background: #1877f2;
    }
.oauthProviderList a.provider.facebook img {
    filter: brightness(0) invert(1);
}
.oauthProviderList a.provider.github {
    background: #101411;
}
.oauthProviderList a.provider.github img {
    filter: brightness(0) invert(1);
}
.oauthProviderList a.provider.yandex {
    background: #f8604a;
}
.oauthProviderList a.provider.yandex img {
    filter: brightness(0) invert(1);
}
.oauthProviderList a.provider.microsoft {
    background: #fff;
    color: #202124;
}

.oauthProviderList a.provider.itchio {
    background: #FF2449;
}
.oauthProviderList a.provider.itchio img {
    filter: brightness(0) invert(1);
}

    .oauthProviderList a.provider.clever {
        background: rgb(67, 108, 242);
    }

    .oauthProviderList a.provider.clever img {
        filter: brightness(0) invert(1);
    }

.linkedAccountUsername {
    line-height: 100%;
    font-size: 0.75rem;
    text-align: center;
    font-weight: 500;
    display: inline-block;
    background: #efefef;
    width: 85%;
    padding: 4px 2px;
    margin: 0 auto;
    margin-top: -4px;
    overflow: hidden;
    -webkit-border-bottom-right-radius: 3px;
    -webkit-border-bottom-left-radius: 3px;
    -moz-border-radius-bottomright: 3px;
    -moz-border-radius-bottomleft: 3px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    box-shadow: rgba(9, 30, 66, 0.25) 0 1px 1px, rgba(9, 30, 66, 0.13) 0 0 1px 1px;
}

.oAuthFormWrap {
    position: relative;
}
.oAuthOverlay {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #c0c0c0;
    background: rgba(0, 0, 0, 0.85);
    width: 100%;
    height: 100%;
    z-index: 5;
}
.oAuthOverlay:hover {
    cursor: pointer;
}
.oAuthOverlay.fixed {
    position: fixed;
}
    .oAuthOverlay a {
        color: #fff !important;
        text-decoration: none;
        border: 2px solid #fff;
        border-radius: 16px;
        display: inline-block;
        line-height: 100%;
        padding: 16px;
        font-weight: 500;
        -webkit-user-select: none;
        user-select: none;
    }
.oAuthOverlay a:hover {
    text-decoration: underline;
}




    .overlaySpinner {
        --color-1: #fff;
        --color-2: #dc0d8a;
        --size: 1px;
        width: calc(48 * var(--size));
        height: calc(48 * var(--size));
        border-radius: 50%;
        position: relative;
        animation: oauthSpinner 1s linear infinite;
    }

    .overlaySpinner::before,
    .overlaySpinner::after {
        content: '';
        box-sizing: border-box;
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: calc(5 * var(--size)) solid var(--color-1);
        animation: oauthSpinner2 2s linear infinite;
    }

.overlaySpinner::after {
        inset: calc(8 * var(--size));
        transform: rotate3d(90, 90, 0, 180deg);
        border-color: var(--color-2);
    }

@keyframes oauthSpinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes oauthSpinner2 {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
    }

    75%, 100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
    }
}
