/* Social Login Auth Plugin Styles */

.social-login-container {
    margin: 20px 0;
    max-width: 400px;
}

.social-login-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.social-login-separator::before,
.social-login-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.social-login-separator::before {
    left: 0;
}

.social-login-separator::after {
    right: 0;
}

.social-login-separator span {
    background: #fff;
    padding: 0 10px;
    color: #666;
    font-size: 14px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-login-btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.social-login-btn img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Facebook Button */
.facebook-btn {
    background-color: #1877f2;
    color: #ffffff;
}

.facebook-btn:hover {
    background-color: #0d65d9;
    color: #ffffff;
}

/* Google Button */
.google-btn {
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
}

.google-btn:hover {
    background-color: #f8f9fa;
    color: #3c4043;
    border-color: #c6c6c6;
}

/* LINE Button */
.line-btn {
    background-color: #00b900;
    color: #ffffff;
}

.line-btn:hover {
    background-color: #00a000;
    color: #ffffff;
}

/* Twitter Button (ถ้าต้องการเพิ่ม) */
.twitter-btn {
    background-color: #1da1f2;
    color: #ffffff;
}

.twitter-btn:hover {
    background-color: #0c8bd9;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 480px) {
    .social-login-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .social-login-btn img {
        width: 18px;
        height: 18px;
    }
}

/* Login Form Integration */
#login .social-login-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Loading state */
.social-login-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.social-login-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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