// Login & Register

.login-area:not(.hidden) + #page-wrapper {
    display: none;
}

.login-register {
    background: transparent !important;

    .login-box {
        background: transparent;
        width: 480px;
        height: initial;
        right: initial;
        position: fixed;

        @extend %center;
    }

    h1 {
        color: $white;
        font-weight: 700;
        text-transform: none;
        width: 320px;
        margin: 0;
    }

    .white-box {
        background: $black30a;
        margin: 0;
        padding: 0;
    }

    form {
        width: 320px;
        margin: auto;
        padding: 30px 0;
    }

    .form-group {
        margin: 15px 0;
        overflow: visible;

        .col-xs-12,
        .col-md-12 {
            padding: 0;
        }

        &.m-t-40,
        &.m-b-0 {
            margin: 0 !important;
        }

        &.m-b-0 {
            color: #a8a8ab;

            p {
                margin: -10px 0 20px;
            }
        }
    }
}

body[data-active-tab=''] .panel #plex-login-collapse .panel-body {
    padding: 30px 0 0 0;
}

// Needs to not apply to register form, so we don't group with above
#loginform {
    .form-group {
        .btn {
            margin: -10px 0 30px !important;

            &.login-button {
                margin: 15px 0 0 0 !important;

                @include button($theme, $theme-light, $theme-dark, $white);
            }
        }
    }

    .m-t-10 {
        margin-top: -20px !important;
    }
}

#tfa-div {
    margin: 0;
}

@media screen and (max-width: 320px) {
    .login-register {
        h1,
        form {
            width: 288px;
        }
    }
}

@media screen and (min-width: 350px) {
    .login-register {
        width: 480px;
        height: 300px;

        .white-box {
            width: 480px;
        }
    }
}

// Login Logo

#login-logo {
    display: block !important;
    height: 0;
    position: absolute;
    top: -70px;
}

.loginLogo {
    max-width: 320px;
    border: 0;
    margin-top: 35px;
    transform: translateY(-100%);
}

@media screen and (max-width: 320px) {
    .loginLogo {
        max-width: 288px;
    }
}

// Registration form

#registerForm .form-group {
    margin: 15px 0 !important;

    &:first-of-type {
        margin: 0 0 15px !important;
    }

    &:last-of-type {
        margin: 15px 0 0 !important;
        padding: 0 0 30px;
    }
}

// Password recovery form

#recoverform {
    .form-group {
        &:first-of-type {
            margin: 0 0 15px !important;
        }

        &:last-of-type {
            margin: 15px 0 0 !important;
            padding: 0 0 30px;
        }
    }

    h3 {
        margin: 0;
    }
}

#to-recover span {
    color: $white45a;
    transition: color 0.2s ease;

    &:hover {
        color: $white;
    }
}

// Invite Modal

body[data-active-tab=''] #invite-area {
    .panel {
        max-width: 480px;
        margin: auto;
    }

    .panel-body {
        padding: 35px;
    }

    .invite-step-1 {
        max-width: 210px;

        .input-group:last-of-type {
            margin: 0 !important;
        }
    }

    .form-group {
        margin: 0 auto;
    }

    .input-group {
        margin: 15px 0;

        &:first-of-type {
            margin: 0 0 15px !important;
        }

        &:last-of-type {
            margin: 15px 0 0 !important;
        }

        .form-control:last-child {
            border-radius: 3px;
        }
    }

    h4 {
        text-transform: none;
        font-weight: 600;
        margin: 0;
    }
}

#inviteCodeInput {
    font-family: $monospace-font-stack;
    font-size: 50px !important;
    font-weight: 400;
}

@media screen and (min-width: 768px) {
    body[data-active-tab=''] #invite-area {
        .invite-step-1 {
            max-width: 350px;
            margin: auto;
        }

        .input-group .form-control:last-child {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }
    }

    #inviteCodeInput {
        font-size: 64px !important;
    }
}

// Login overlay

.blockOverlay {
    background: $black50a !important;
}

.blockMsg {
    background: transparent !important;
    border: 0 !important;
    width: 90% !important;

    h5 {
        color: transparent;

        &:after {
            @extend %circular-loader;
            content: '';
            display: block;
            top: 50%;
            left: 50%;
        }
    }

    img {
        display: none;
    }
}
