@import '../../colors';

.social-login {
    width: 100%;
    height: calc(100vh - 50px);
    position: fixed;
    left: 0;
    top: 0;
    background-color: rgba(black, 0.5);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;

    &.active {
        pointer-events: all;
        opacity: 1;
    }

    .login-box {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        box-shadow: 0px 0px 5px $brand-blue;
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
        background-color: darken($brand-blue, 10%);
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: space-around;

        button {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 50px;
            font-size: 1rem;
            color: darken($blue-grey, 20%);
            font-weight: 500;
            background-color: lighten($light-grey, 45%);
            width: 100%;
            border-radius: 30px;
            flex-grow: 1;

            ion-icon {
                color: darken($brand-blue, 10%);
                margin-left: 10px;
                width: 30px;
                height: 30px;
            }

            &:nth-child(2) {
                margin-left: 20px;
                background-color: transparent;
                width: 60px;
                height: 60px;

                ion-icon {
                    color: white;
                    margin: 0;
                    width: 60px;
                    height: 60px;
                }
            }
        }
    }
}

.profile {
    position: absolute;
    top: 15px;
    right: 15px;
    
    img {
        width: 40px;
        height: 40px;
        display: block;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
        background-color: rgba($blue-grey, 0.6);
    }

    p {
        text-align: center;
        font-size: 12px;
        color: $blue-grey;
        margin-top: 5px;
        letter-spacing: 0.5px;
    }
}