/* Main Popup Styles */
.social-login-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.social-login-popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 420px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-login-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Form Elements */
.social-login-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    text-align: center;
}

.social-login-form p {
    margin-bottom: 20px;
    text-align: center;
    color: #555;
}

.social-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.social-login-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.social-login-newsletter {
    margin: 15px 0;
}

.social-login-newsletter label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 13px;
}

.social-login-newsletter input[type="checkbox"] {
    margin-right: 8px;
}

/* Buttons */
.social-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.social-login-primary-button {
    background-color: #e83e8c;
    color: white;
}

.social-login-primary-button:hover {
    background-color: #d03278;
}

.social-login-google {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

.social-login-google:hover {
    background-color: #f8f8f8;
}

.social-login-facebook {
    background-color: #3b5998;
    color: white;
}

.social-login-facebook:hover {
    background-color: #344e86;
}

.social-login-linkedin {
    background-color: #0077b5;
    color: white;
}

.social-login-linkedin:hover {
    background-color: #006396;
}

/* Icons */
.social-login-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.google-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="%23EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/><path fill="%234285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/><path fill="%23FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"/><path fill="%2334A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/></svg>');
}

.facebook-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="white" d="M42,37c0,2.762-2.238,5-5,5H11c-2.761,0-5-2.238-5-5V11c0-2.762,2.239-5,5-5h26c2.762,0,5,2.238,5,5V37z"/><path fill="%233b5998" d="M34.368,25H31v13h-5V25h-3v-4h3v-2.41c0.002-3.508,1.459-5.59,5.592-5.59H35v4h-2.287C31.104,17,31,17.6,31,18.723V21h4L34.368,25z"/></svg>');
}

.linkedin-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="white" d="M42,37c0,2.762-2.238,5-5,5H11c-2.761,0-5-2.238-5-5V11c0-2.762,2.239-5,5-5h26c2.762,0,5,2.238,5,5V37z"/><path fill="%230077b5" d="M12,19h5v17h-5V19z M14.485,17h-0.028C12.965,17,12,15.888,12,14.499C12,13.08,12.995,12,14.514,12c1.521,0,2.458,1.08,2.486,2.499C17,15.887,16.035,17,14.485,17z M36,36h-5v-9.099c0-2.198-1.225-3.698-3.192-3.698c-1.501,0-2.313,1.012-2.707,1.99C24.957,25.543,25,26.511,25,27v9h-5V19h5v2.616C25.721,20.5,26.85,19,29.738,19c3.578,0,6.261,2.25,6.261,7.274L36,36L36,36z"/></svg>');
}

/* Divider */
.social-login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #777;
}

.social-login-divider::before,
.social-login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.social-login-divider span {
    padding: 0 10px;
    font-size: 14px;
}

/* Terms */
.social-login-terms {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 15px;
}

.social-login-terms a {
    color: #e83e8c;
    text-decoration: none;
}

.social-login-terms a:hover {
    text-decoration: underline;
}

/* Provider section */
.social-login-providers {
    margin-top: 20px;
}

body.dark .social-login-google {
    background-color: #5a5b5c;
    color: #ffffff;
    border: 1px solid #989898;
}
body.dark .social-login-google:hover {
    background-color: #f8f8f8;
    color: #333;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .social-login-popup-content {
        margin: 20% auto;
        padding: 20px;
        max-width: 90%;
    }
}