html body {
    font-family: "ProximaNovaRegular";
    margin: 0px;
    padding: 0px;
    font-size: 10px;
    color: #666666;
    background: #202020;
    background-image: url(../images/bgHome.jpg);
    background-size: cover;
    background-position: top center;
    position: relative;
}

.container-box.not-connected {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 0 50px 0;
}

.container-box.not-connected .inner-box {
    padding: 60px 30px;
}

.container-box.not-connected .inner-box img {
    margin-bottom: 10px;
}

.container-box.not-connected .inner-box {
    font-size: 16px;
}

/*login*/
.container-box.not-connected .container-form-element input:not([type="submit"]) {
    font-size: 1em;
    height: 40px;
    padding: 0 10px;
}

.container-box.not-connected .container-form-element label {
    margin-bottom: 3px;
}

body.post-login-livegame-choice .choice-buttons {
    margin-top: 10px;
}

body.post-login-livegame-choice .choice-buttons .btn-custom {
    margin-top: 12px;
    color: #ffffff;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 20px;
    cursor: pointer;
}

body.post-login-livegame-choice .choice-buttons .btn-custom:hover,
body.post-login-livegame-choice .choice-buttons .btn-custom:focus {
    color: #ffffff;
    text-decoration: none;
    background-color: #2f6ea3;
}

body.post-login-livegame-choice .choice-buttons .btn-custom-secondary {
    background-color: #5a6875;
}

body.post-login-livegame-choice .choice-buttons .btn-custom-secondary:hover,
body.post-login-livegame-choice .choice-buttons .btn-custom-secondary:focus {
    background-color: #4a5661;
}

/* OAuth league switcher */
body.oauth-switch-league .container-box {
    width: min(560px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0;
    box-sizing: border-box;
    text-align: left;
}

body.oauth-switch-league .inner-box {
    max-width: 560px;
    padding: 28px;
    box-sizing: border-box;
    border-radius: 14px;
    text-align: left;
}

.oauth-switch-header {
    margin-bottom: 20px;
    text-align: left;
}

.oauth-switch-header h2 {
    margin: 0 0 6px;
    color: #252b33;
    font-size: 22px;
    font-weight: 600;
}

.oauth-switch-header p {
    margin: 0;
    color: #79818b;
    font-size: 14px;
    line-height: 1.4;
}

.oauth-switch-form {
    margin: 0;
}

.oauth-membership-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(510px, 58vh);
    overflow-y: auto;
    padding: 2px;
}

.oauth-membership-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    margin: 0;
    padding: 14px 46px 14px 14px;
    box-sizing: border-box;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.oauth-membership-card:hover {
    border-color: #8bbbe1;
    box-shadow: 0 3px 12px rgba(45, 105, 155, 0.12);
}

.oauth-membership-card:has(input:checked) {
    border-color: #3a83bf;
    background: #f4f9fd;
    box-shadow: 0 0 0 2px rgba(58, 131, 191, 0.12);
}

.oauth-membership-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.oauth-membership-avatar {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #eaf3fa;
    color: #2f75ad;
    font-size: 18px;
    font-weight: 700;
}

.oauth-membership-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.oauth-membership-title {
    overflow: hidden;
    color: #303740;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oauth-membership-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #66717d;
    font-size: 12px;
    text-align: left;
}

.oauth-membership-role {
    padding: 2px 7px;
    border-radius: 10px;
    background: #edf1f4;
}

.oauth-membership-email {
    overflow: hidden;
    color: #8a929b;
    font-size: 12px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oauth-membership-check {
    position: absolute;
    right: 16px;
    width: 19px;
    height: 19px;
    box-sizing: border-box;
    border: 2px solid #c9d0d6;
    border-radius: 50%;
}

.oauth-membership-card:has(input:checked) .oauth-membership-check {
    border: 6px solid #3a83bf;
}

.oauth-membership-current {
    position: absolute;
    top: 8px;
    right: 44px;
    color: #2f75ad;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.oauth-switch-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e8ebee;
}

.oauth-switch-actions .btn-custom {
    width: auto;
    min-width: 150px;
    margin: 0;
}

.oauth-switch-cancel {
    padding: 10px 14px;
    color: #69737d;
    font-size: 14px;
    text-decoration: none;
}

.oauth-switch-cancel:hover {
    color: #303740;
    text-decoration: underline;
}

@media (max-width: 600px) {
    body.oauth-switch-league .container-box {
        width: calc(100% - 24px);
    }

    body.oauth-switch-league .inner-box {
        padding: 20px 16px;
    }

    .oauth-membership-card {
        padding-left: 10px;
    }

    .oauth-membership-avatar {
        display: none;
    }

    .oauth-switch-actions {
        flex-direction: column-reverse;
    }

    .oauth-switch-actions .btn-custom,
    .oauth-switch-cancel {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}