/**
 * Modern Social Sign-In Buttons
 * iMindr - Enhanced Google & Social Login Design
 * Version: 2.0 - Matched to iMindr Design System
 */

/* Modern Social Sign Container */
.social-sign-modern {
    padding: 0;
    margin-top: 20px;
}

/* Base Social Button Styles - Matching iMindr Design */
.btn-social-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 260px;
    width: 100%;
    padding: 14px 30px;
    margin: 20px auto;
    border: 3px solid #d5d3d2;
    border-radius: 26px;
    background-color: #ffffff;
    color: #898585;
    font-family: 'ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.42857;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: all 0.5s ease-out 0s;
    -moz-transition: all 0.5s ease-out 0s;
    -o-transition: all 0.5s ease-out 0s;
    transition: all 0.5s ease-out 0s;
    box-shadow: none;
    overflow: hidden;
}

.btn-social-modern:hover {
    background-color: #eeebe9;
    border-color: #d5d3d2;
    box-shadow: none;
    transform: none;
    text-decoration: none;
    color: #898585;
}

.btn-social-modern:active {
    background-color: #e5e2e0;
    box-shadow: none;
    transform: none;
}

.btn-social-modern:focus {
    outline: none;
    box-shadow: none;
}

/* Icon Styles */
.btn-social-modern .social-icon {
    margin-right: 10px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.btn-social-modern span {
    flex: 1;
    text-align: center;
}

/* Google Button Specific - Matching iMindr Style */
.btn-google {
    border-color: #d5d3d2;
    color: #898585;
}

.btn-google:hover {
    background-color: #eeebe9;
    border-color: #d5d3d2;
    color: #898585;
}

.btn-google:active {
    background-color: #e5e2e0;
}

/* Alternative Google Button - Filled Style with iMindr Colors */
.btn-google-filled {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ff7c7d+0,f8457f+100 */
    background: #ff7c7d;
    /* Old browsers */
    background: -moz-linear-gradient(top, #ff7c7d 0%, #f8457f 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #ff7c7d 0%, #f8457f 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #ff7c7d 0%, #f8457f 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff7c7d', endColorstr='#f8457f', GradientType=0);
    /* IE6-9 */
    border-color: #ff7c7d;
    color: #ffffff;
    box-shadow: none;
}

.btn-google-filled:hover,
.btn-google-filled:focus {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ff7c7d+0,f8457f+100 */
    background: #ff7c7d;
    /* Old browsers */
    background: -moz-linear-gradient(45deg, #ff7c7d 0%, #f8457f 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(45deg, #ff7c7d 0%, #f8457f 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(45deg, #ff7c7d 0%, #f8457f 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff7c7d', endColorstr='#f8457f', GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
    color: #fff;
    border-color: #ff7c7d;
}

.btn-google-filled:active {
    background: #f8457f;
}

/* Ensure colored Google icon shows well on gradient background */
.btn-google-filled .social-icon {
    background-color: #ffffff;
    border-radius: 3px;
    padding: 2px;
}

/* Facebook Button - Matching Google Official Button Size */
.btn-facebook {
    border: 1px solid #dadce0 !important;
    background-color: #ffffff !important;
    color: #3c4043 !important;
    font-weight: 500 !important;
    font-family: 'Google Sans', 'ubuntu', arial, sans-serif !important;
    font-size: 14px !important;
    padding: 0 24px !important;
    height: 40px !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    letter-spacing: 0.25px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto 12px auto !important;
}

.btn-facebook:hover {
    background-color: #f8fafe !important;
    border-color: #d2e3fc !important;
    color: #3c4043 !important;
}

.btn-facebook:active {
    background-color: #e8f0fe !important;
}

/* Google Official Button Wrapper - Matching iMindr Style */
.google-signin-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    max-width: 260px;
    width: 100%;
}

.google-signin-wrapper .g_id_signin,
.google-signin-wrapper > div {
    width: 100% !important;
    display: flex;
    justify-content: center;
}

/* Style Google's button to match iMindr design */
.google-signin-wrapper iframe {
    border-radius: 26px !important;
}

/* Loading State */
.btn-social-modern.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-social-modern.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Responsive Design - Matching iMindr Breakpoints */
@media (max-width: 480px) {
    .btn-social-modern {
        max-width: 100%;
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-social-modern .social-icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }

    .google-signin-wrapper {
        max-width: 100%;
    }

    /* Keep Facebook button dimensions consistent on mobile */
    .btn-facebook {
        height: 40px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        border-radius: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Additional iMindr-specific adjustments */
.social-sign a img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

