/**
 * Copyright © ToweringMedia. All rights reserved.
 */

.social-login-wrapper {
    margin: 25px 0 20px 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.social-login-title {
    margin-bottom: 15px;
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.social-login-title span:first-child {
    background: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    display: inline-block;
}

.social-login-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 0;
    width: 100%;
}

.social-login-buttons {
    display: flex !important;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 15px 0;
}

.social-login-buttons a.social-login-button,
a.social-login-button,
.social-login-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
    min-width: 150px !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.social-login-button:hover {
    text-decoration: none;
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-login-facebook {
    background-color: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.social-login-facebook:hover {
    background-color: #166FE5;
    color: #fff;
}

.social-login-buttons a.social-login-google,
a.social-login-google,
.social-login-google {
    background-color: #fff !important;
    color: #3c4043 !important;
    border: 1px solid #dadce0 !important;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1) !important;
}

.social-login-google:hover {
    background-color: #f8f9fa;
    color: #3c4043;
    border-color: #dadce0;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.15);
}

.social-login-icon {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.social-login-icon-facebook {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}

.social-login-icon-google {
    background-image: url("../../ToweringMedia_SocialLogin/images/google-logo.svg");
    background-size: contain;
    width: 20px;
    height: 20px;
    display: inline-block !important;
}

.social-login-apple {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.social-login-apple:hover {
    background-color: #333;
    color: #fff;
}

.social-login-icon-apple {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.88-3.08.4-1.09-.5-2.08-.48-3.24 0-1.44.62-2.2.44-3.06-.4C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E");
}

.social-login-text {
    font-size: 14px;
}

/* Social Accounts Block - Card Style to Match Account Information */
.box-social-accounts {
    margin: 0 0 20px 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.box-social-accounts .box-title {
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.box-social-accounts .box-title .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #666;
    flex-shrink: 0;
}

.box-social-accounts .box-title .icon svg {
    width: 100%;
    height: 100%;
}

.box-social-accounts .box-content {
    padding: 20px;
}

.social-accounts-list {
    margin: 0;
    padding: 0;
}

.social-account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.social-account-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.social-account-item:first-child {
    padding-top: 0;
}

.social-account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.social-account-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.social-account-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-account-status.linked {
    background-color: #d4edda;
    color: #155724;
}

.social-account-status.not-linked {
    background-color: #f8f9fa;
    color: #6c757d;
}

.social-account-actions {
    margin-left: auto;
}

.social-account-actions .action {
    padding: 6px 14px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    border: 1px solid transparent;
}

.social-account-actions .action.link {
    background-color: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.social-account-actions .action.link:hover {
    background-color: #166FE5;
    color: #fff;
    text-decoration: none;
    border-color: #166FE5;
}

.social-account-actions .action.unlink {
    background-color: transparent;
    color: #dc3545;
    border-color: #dc3545;
}

.social-account-actions .action.unlink:hover {
    background-color: #dc3545;
    color: #fff;
    text-decoration: none;
    border-color: #dc3545;
}
