/**
 * TME Social Login Styles
 */

/* TME Social Login Buttons */
.tme-social-login {
    margin: 10px 0;
}

.tme-facebook-btn button {
    background-color: #1877F2 !important;
    border-color: #1877F2 !important;
    color: #ffffff !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.tme-facebook-btn button:hover {
    background-color: #166fe5 !important;
    border-color: #166fe5 !important;
}

.tme-facebook-btn .icon-facebook {
    margin-right: 10px;
    font-size: 18px;
}

/* Fallback if icon-facebook doesn't exist */
.tme-facebook-btn .icon-facebook:before {
    content: "f";
    font-family: "FontAwesome", "icomoon", sans-serif;
}

/* If no icon font, use text fallback */
.tme-facebook-btn button:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 3px;
    margin-right: 10px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    color: #1877F2;
    font-weight: bold;
}

.tme-facebook-btn button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Google signin button adjustments */
#tme_google_signin {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

#tme_google_signin div[role="button"] {
    width: 100% !important;
    max-width: 400px;
}

/* Loading states */
.tme-social-login .loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #tme_google_signin div[role="button"] {
        max-width: 100%;
    }
    
    .tme-facebook-btn button {
        font-size: 14px;
        min-height: 45px;
    }
}

/* Integration with existing theme styles */
.tu-main-login .tme-social-login,
.tu-main-signup .tme-social-login {
    width: 100%;
}

/* Spacing adjustments */
.form-group + .tme-social-login {
    margin-top: 15px;
}

.tme-social-login + .form-group {
    margin-top: 15px;
}